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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

70 views 2 3
Join discussion

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