Stash Backup gives string index out of range

I'm getting the following error when trying to use the 1.6.0 backup client. It's installed on Ubuntu 64-bit with a MySql database.

 

2014-11-25 10:19:47,150 INFO [main] c.a.s.i.b.client.spring.SpringMain Initializing
2014-11-25 10:19:48,787 INFO [main] c.a.s.i.b.client.RestStashService Using Stash 3.1.3
2014-11-25 10:19:48,910 INFO [main] c.a.s.i.b.client.DefaultBackupClient Contacting Stash
2014-11-25 10:19:49,203 INFO [main] c.a.s.i.b.client.RestStashService Stash has been locked for maintenance. It may be unlocked with token: a11fed95edda90d215699fa38a50e5975996521d
2014-11-25 10:19:49,553 INFO [main] c.a.s.i.b.client.RestStashService Starting database backup on Stash. It may be cancelled with token: 11ee7ae0d96664b6300d0d11d41bc3bdcae0d182
2014-11-25 10:19:55,744 INFO [main] c.a.s.i.b.c.layout.DefaultStashHome Verifying files in Stash home "../stash-home"
2014-11-25 10:20:31,991 INFO [main] c.a.s.i.b.c.layout.DefaultStashHome Verifying Stash home
2014-11-25 10:20:33,854 INFO [main] c.a.s.i.b.client.RestStashService Cancelling database backup with code: 11ee7ae0d96664b6300d0d11d41bc3bdcae0d182
2014-11-25 10:20:34,002 INFO [main] c.a.s.i.b.client.RestStashService Unlocking Stash using token: a11fed95edda90d215699fa38a50e5975996521d
2014-11-25 10:20:34,022 ERROR [main] c.a.s.i.backup.client.BackupMain A backup could not be created. Reason: String index out of range: -26

java.lang.StringIndexOutOfBoundsException: String index out of range: -26
at java.lang.String.substring(String.java:1875) ~[na:1.7.0_65]
at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.archiveEntryFor(DefaultStashHome.groovy:237) ~[stash-backup-core-1.6.0.jar:na]
at com.atlassian.stash.internal.backup.client.util.Profiler.measure(Profiler.groovy:20) ~[stash-backup-core-1.6.0.jar:na]
at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.addDirEntries(DefaultStashHome.groovy:163) ~[stash-backup-core-1.6.0.jar:na]
at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.archive(DefaultStashHome.groovy:90) ~[stash-backup-core-1.6.0.jar:na]
at com.atlassian.stash.internal.backup.client.DefaultBackupClient.archiveHome(DefaultBackupClient.groovy:68) ~[stash-backup-client.jar:1.6.0]
at com.atlassian.stash.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34) ~[stash-backup-client.jar:1.6.0]
at com.atlassian.stash.internal.backup.client.RestStashService.backup(RestStashService.groovy:62) ~[stash-backup-client.jar:1.6.0]
at com.atlassian.stash.internal.backup.client.RestStashService.lock(RestStashService.groovy:170) ~[stash-backup-client.jar:1.6.0]
at com.atlassian.stash.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:47) ~[stash-backup-client.jar:1.6.0]
at com.atlassian.stash.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28) [stash-backup-core-1.6.0.jar:na]
at com.atlassian.stash.internal.backup.client.spring.SpringMain.run(SpringMain.groovy) [stash-backup-core-1.6.0.jar:na]
at com.atlassian.stash.internal.backup.client.BackupMain.main(BackupMain.groovy:38) [stash-backup-client.jar:1.6.0]
at com.atlassian.stash.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:71) [stash-backup-client.jar:1.6.0]
at com.atlassian.stash.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85) [stash-backup-client.jar:1.6.0]
... 164 frames suppressed

 

1 answer

Hi Jonathan,

 

Which database type are you using?

In a similar answer the solution was this:

 

"The answer turned out to be that the database needs a unique service.

Incorrect: jdbc.url=jdbc:oracle:thin:@//asdxxxxxxx:port/CSD11UTF

Correct: jdbc:oracle:thin:@//asdbsxxxxxxx:port/stash_dev""

But on this answer the database is oracle.

 

Regards,

Celso Yoshioka

Suggest an answer

Log in or Join to answer
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...

692 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot