Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

stash throwing error while restoring

Kishore Nandikatla May 29, 2014

Hi,

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
ThiagoBomfim
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2014

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
TAGS
AUG Leaders

Atlassian Community Events