Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bitbucket backup

Cameron Weeks
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 1, 2019

bitbucket backup client wont run with a Groovy error.

 

Exception in thread "main" java.lang.NoClassDefFoundError: groovy/lang/GroovyObject

at java.base/java.lang.ClassLoader.defineClass1(Native Method)

at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)

at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)

at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)

at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

at java.base/java.lang.Class.forName0(Native Method)

at java.base/java.lang.Class.forName(Class.java:315)

at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:64)

at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85)

at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.access$000(JavaVersionCheckingShim.java:14)

at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim$BackupMain.main(JavaVersionCheckingShim.java:32)

Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyObject

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)

at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

2 answers

0 votes
Joel Chapman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 5, 2019

I had a similar error and reverted to using the backup version 3.5.0 and the backup proceeded as normal.

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 3, 2019

Hello Cameron and welcome to the Community!

To ensure we’re discussing the same products and steps we want to confirm you’re using Marketplace “Bitbucket Server Backup Client.” Without further information on the steps which lead up to this error, we can reference a few items which may assist.

Your error is similar to a previous post which had an issue with not all items within the download being moved over. This post may be found at Stash backup client failed with Java exception.

Additionally, ensure you’re grabbing the latest version of the client at Bitbucket Server Backup Client. This client also has reference documentation located at; Data recovery and backups.

If you’re still having issues with the client, please verify the following so we may assist further:

  • Version of Java
  • Steps leading up to this error

We look forward to hearing back so ensure you’re able to backup Bitbucket.

Regards,
Stephen Sifers

Cameron Weeks
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 3, 2019

Hi I had found that post but not sure the issue is the same / wasn't able to use it to solve the problem.

 

ubuntu@host:~/bitbucket-backup-client-3.5.1$ java -version

openjdk version "11.0.3" 2019-04-16

OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)

OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)

Steps: 

Downloaded the current version (3.5.1) of the backup client, setup the 'backup-config.properties' file then ran: 

java -jar bitbucket-backup-client.jar

Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 3, 2019

Hello again Cameron,

Thank you for providing the requested information. I tested the backup client with Oracle JRE and OpenJDK using Bitbucket 6.3 and was unable to recreate the issue you’re seeing.

Additional items to check would be as follows:

If we’re still having the issue after confirming the above, please let us know.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events