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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.