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

Atlassian JIRA | Jan Swaelens | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 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
  2. 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

    Root Cause Analysis

    1. 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()
    2. com.atlassian.stash
      DefaultStashHome.archive
      1. com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.verifyCanRead(DefaultStashHome.groovy:230)[stash-backup-core-1.7.0.jar:na]
      2. com.atlassian.stash.internal.backup.client.layout.DefaultStashHome.archive(DefaultStashHome.groovy:86)[stash-backup-core-1.7.0.jar:na]
      2 frames