issues with Bitbucket restore - "archive is not a ZIP archive"

I've been attempting to restore Bitbucket to another server and I get this error when using the Bitbucket Backup Client to do the restore:

[root@test /home/bitbucket-backups/bitbucket-backup-client-3.3.3]# java -jar ./bitbucket-restore-client.jar backups/bitbucket-20171029-211520-441.tar
2017-10-31 15:35:40,087 DEBUG        Adding jar ojdbc7-12.1.0.1.jar to the classpath
2017-10-31 15:35:40,111 DEBUG        Adding jar sqljdbc-6.0.7507.jar to the classpath
2017-10-31 15:35:40,111 DEBUG        Adding jar hsqldb-2.2.4.jar to the classpath
2017-10-31 15:35:40,112 DEBUG        Adding jar postgresql-9.4.1211.jar to the classpath
2017-10-31 15:35:40,593 INFO         Initializing
2017-10-31 15:35:43,620 INFO         Unpacking bitbucket-20171029-211520-441.tar to /var/atlassian/application-data/bitbucket
2017-10-31 15:42:36,818 DEBUG        Unpacking system backup to /var/atlassian/application-data/bitbucket/shared
2017-10-31 15:42:36,884 ERROR        bitbucket-20171029-211520-441.tar could not be restored
java.util.zip.ZipException: archive is not a ZIP archive
        at org.apache.commons.compress.archivers.zip.ZipFile.positionAtEndOfCentralDirectoryRecord(ZipFile.java:772)
        at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:702)

 

original o/s is RHEL 6u6. new o/s is RHEL 7u3

The original has a local postgres 9.2 database. new system has postgres 9.5

 backup was produced using the same Bitbucket Backup Client version.

can anyone help?

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

715 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot