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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

678 views 5 9
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