Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-7901

Stash Backup Client fails on feature branches with special (french) characters

    XMLWordPrintable

    Details

      Description

      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.

      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
      

      Both in Stash itself and when listing folders on the OS the folders look correctly:

      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
      

      Thanks for looking into this.

      Workaround

      From past issues, the fix was to create a /etc/environment file with the following line:

      LANG=en_US.UTF-8
      

      and restart the crond service.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: