stash throwing error while restoring


I have used backup client to take backup of my stash data and used the backup to restore onto another server. Im getting the below error, please help.

bash $ java -Dstash.home=/db/stash_home -jar stash-restore-client.jar /devops/stage/stah
2014-05-30 07:12:35,207 INFO Initializing
2014-05-30 07:12:36,141 INFO Unpacking stash-20140530-053836-815.tar to /db/stash_home
2014-05-30 07:21:12,281 INFO Validating database before restore
2014-05-30 07:21:13,428 INFO Examining structure of source database
2014-05-30 07:21:14,932 ERROR stash-20140530-053836-815.tar could not be restored. Reason: The target database contains tables whose.
com.atlassian.stash.internal.backup.client.RestoreException: The target database contains tables whose names collide with Stash's tables. P.
at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.validateDataSource(DefaultRestoreClient.groovy:247) ~[stash-rest]
at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.withDataSource(DefaultRestoreClient.groovy:254) ~[stash-restore-]
... 5 more frames available in the log file

1 answer

0 votes

Hi Kishore,

This error happens because the restore expects an empty database with a minimum config in order to be successfull. Please refer to the document below for a detailed description on the process:

Restoring Stash into a newly created DB

Best regards,

Thiago Bomfim

Atlassian Support

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

267 views 0 12
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