Can not restore Stash backup (system.zip missing)

We have created a Stash 3.0.1 backup using stash backup client 1.9.0 on Windows. When we tried to restore it on a CentOS machine, the restore failed with 

stash-20150519-104526-716.tar could not be restored. Reason: /data/stash-data/system.zip (No such file or directory)

(/data/stash-data/ is my home directory, where I try to restore to)

I enabled DEBUG logging for the backup client, but it did not provide anything additional that seems useful.

Full log:

2015-05-28 17:40:25,859 DEBUG        Adding jar sqljdbc-4.0.2206.jar to the classpath
2015-05-28 17:40:25,869 DEBUG        Adding jar postgresql-9.4-1201-jdbc41.jar to the classpath
2015-05-28 17:40:25,870 DEBUG        Adding jar hsqldb-2.2.4.jar to the classpath
2015-05-28 17:40:25,870 DEBUG        Adding jar ojdbc6-11.2.0.2.0.jar to the classpath
2015-05-28 17:40:25,896 INFO         Initializing
2015-05-28 17:40:27,019 INFO         Unpacking stash-20150519-104526-716.tar to /data/stash-data
2015-05-28 17:42:38,105 DEBUG        Unpacking system backup to /data/stash-data
2015-05-28 17:42:38,133 ERROR        stash-20150519-104526-716.tar could not be restored. Reason: /data/stash-data/system.zip (No such file or directory)
java.io.FileNotFoundException: /data/stash-data/system.zip (No such file or directory)
        at java.io.RandomAccessFile.open(Native Method) ~[na:1.7.0_79]
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241) ~[na:1.7.0_79]
        ... 12 more frames available in the log file

 

I have checked the backup file, and it indeed does not contain any system.zip, despite being huge (27GB). What is this system.zip file and what could be reason for it gone missing?

1 answer

0 vote

Hi Regius,

We've seen this problem happening on this bug report:

It surprises me though you said the backup is from a 3.0.1 instance.

If you backup an instance that is 2.7.5+ or 2.8.3+ with the latest backup tool, that shouldn't happen.

Can you make sure of that and, in case you can't solve it, raise an issue with us? https://support.atlassian.com.

Best,
Thiago
DevTools

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,908 views 1 5
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