com.atlassian.stash.internal.backup.client.BackupException: The Stash version could not be verified; the server returned 404 Not Found. Backup/restore is only supported by Stash 2.7.0 and later.

Atlassian JIRA | Ben Stuart [Atlassian] | 1 year ago
  1. 0

    After installing Stash 3.3.1 for trial purposes the Stash Backup Client 1.4.0 fails with an error ┬╗...does not appear to be a valid home directory┬ź {code} 2014-10-01 08:13:35,370 INFO [main] c.a.s.i.b.client.spring.SpringMain Initializing 2014-10-01 08:13:36,627 INFO [main] c.a.s.i.b.client.RestStashService Using Stash 3.3.1 2014-10-01 08:13:36,696 INFO [main] c.a.s.i.b.client.DefaultBackupClient Contacting Stash 2014-10-01 08:13:36,730 ERROR [main] c.a.s.i.backup.client.BackupMain A backup could not be created. Reason: The configured STASH_HOME, C:\Atlassian\Stash, does not appear to be a valid home directory. Creating a backup requires direct access to the home directory for the running instance to allow it to interact with the repositories. com.atlassian.stash.internal.backup.client.BackupException: The configured STASH_HOME, C:\Atlassian\Stash, does not appear to be a valid home directory. Creating a backup requires direct access to the home directory for the running instance to allow it to interact with the repositories. at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.verify(DefaultStashHome.groovy:52) ~[stash-backup-core-1.4.0.jar:na] at com.atlassian.stash.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:43) ~[stash-backup-client.jar:1.4.0] at com.atlassian.stash.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28) [stash-backup-core-1.4.0.jar:na] at com.atlassian.stash.internal.backup.client.spring.SpringMain.run(SpringMain.groovy) [stash-backup-core-1.4.0.jar:na] at com.atlassian.stash.internal.backup.client.BackupMain.main(BackupMain.groovy:38) [stash-backup-client.jar:1.4.0] ... 27 frames suppressed {code}

    Atlassian JIRA | 2 years ago | Alex Comerford
    com.atlassian.stash.internal.backup.client.BackupException: The configured STASH_HOME, C:\Atlassian\Stash, does not appear to be a valid home directory. Creating a backup requires direct access to the home directory for the running instance to allow it to interact with the repositories.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    h3. Problem report Hello, We are getting errors from our backup job, it seems to have problems with some feature branches having french characters in them. {code} 2015-10-09 20:01:07,299 ERROR (16%) A backup could not be created. Reason: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur com.atlassian.stash.internal.backup.client.BackupException: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.verifyCanRead(DefaultStashHome.groovy:230) ~[stash-backup-core-1.7.0.jar:na] at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.archive(DefaultStashHome.groovy:86) ~[stash-backup-core-1.7.0.jar:na] ... 10 more frames available in the log file {code} Both in Stash itself and when listing folders on the OS the folders look correctly: {code} 2015-10-09 20:01:07,299 ERROR (16%) A backup could not be created. Reason: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur com.atlassian.stash.internal.backup.client.BackupException: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.verifyCanRead(DefaultStashHome.groovy:230) ~[stash-backup-core-1.7.0.jar:na] at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.archive(DefaultStashHome.groovy:86) ~[stash-backup-core-1.7.0.jar:na] ... 10 more frames available in the log file {code} Thanks for looking into this. h3. Workaround {quote} From past issues, the fix was to create a {{/etc/environment}} file with the following line: {noformat} LANG=en_US.UTF-8 {noformat} and restart the crond service. {quote}

    Atlassian JIRA | 1 year ago | Jan Swaelens
    com.atlassian.stash.internal.backup.client.BackupException: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur
  4. 0

    h3. Problem report Hello, We are getting errors from our backup job, it seems to have problems with some feature branches having french characters in them. {code} 2015-10-09 20:01:07,299 ERROR (16%) A backup could not be created. Reason: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur com.atlassian.stash.internal.backup.client.BackupException: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.verifyCanRead(DefaultStashHome.groovy:230) ~[stash-backup-core-1.7.0.jar:na] at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.archive(DefaultStashHome.groovy:86) ~[stash-backup-core-1.7.0.jar:na] ... 10 more frames available in the log file {code} Both in Stash itself and when listing folders on the OS the folders look correctly: {code} 2015-10-09 20:01:07,299 ERROR (16%) A backup could not be created. Reason: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur com.atlassian.stash.internal.backup.client.BackupException: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.verifyCanRead(DefaultStashHome.groovy:230) ~[stash-backup-core-1.7.0.jar:na] at com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.archive(DefaultStashHome.groovy:86) ~[stash-backup-core-1.7.0.jar:na] ... 10 more frames available in the log file {code} Thanks for looking into this. h3. Workaround {quote} From past issues, the fix was to create a {{/etc/environment}} file with the following line: {noformat} LANG=en_US.UTF-8 {noformat} and restart the crond service. {quote}

    Atlassian JIRA | 1 year ago | Jan Swaelens
    com.atlassian.stash.internal.backup.client.BackupException: Some files and/or directories could not be read in Stash home. Please change their permissions to make them readable by the user running the backup client or exclude them from the backup using the stash.home.excludes property and retry. The following files and/or directories could not be read: /data/stash-home/shared/data/repositories/122/refs/heads/feature/LDVI-145-laudate-pr??afficher-dans-le-champ-mail-le-mail-de-lutilisateur

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.stash.internal.backup.client.BackupException

      The Stash version could not be verified; the server returned 404 Not Found. Backup/restore is only supported by Stash 2.7.0 and later.

      at com.atlassian.stash.internal.backup.client.RestStashService.handleVersionQueryFailure()
    2. com.atlassian.stash
      RestStashService.getVersion
      1. com.atlassian.stash.internal.backup.client.RestStashService.handleVersionQueryFailure(RestStashService.groovy:359)[stash-backup-client.jar:1.9.1]
      2. com.atlassian.stash.internal.backup.client.RestStashService.getVersion(RestStashService.groovy:188)[stash-backup-client.jar:1.9.1]
      2 frames