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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,452 views 26 12
Join discussion

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