corrupted repository that breack back up procedure

Hello,

In my stash-home/data/repositories, I have a repository (1396) that contains only refs and no others items. It is clearly not a repository.

to be precise, there is only one ref:

refs/heads/feature/07580037???05272829???DB

and 07580037???05272829???DB is a file containing a sha1.

Since this file has been created, my back up procedure in place since Stash 2.9, using the jar file you provide and describe in the back up stash documentation page, doesn't work. The back up procedure has an issue with this object.

Error message is:

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 thebackup using the stash.home.excludes property and retry. The following files and/or directories could not be read:

/farequote/stash/stash-home/data/repositories/1396/refs/heads/feature/07580037??

?05272829???DB

Could you help me saying how can I delete this object from stash properly without putting at risk my others repos?

I have excluded the repo 1396 from my back up using stash.home.excludes option, but I do not know what to do with this item. 1396 is not referenced as a repository in the repositories table.

1 answer

1 accepted

The issue came from fork created with UTF-16 characters. The fork was deleted, but it could happen that it remains in the /data folder. Manual deletion fix the issue.

Hi Pierre,

Sorry for the delay. Sounds like you sorted the issue. If you get stuck again feel free to raise a support ticket.

https://support.atlassian.com

Cheers,

Charles

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,965 views 1 5
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