bitbucket repositories deleted

has anyone with the Bitbucket Server, suddenly had repos go missing? We cannot figure out what is going wrong. They're just automatically being removed. Any clues?

5 answers

This widget could not be displayed.

We've been using it for a couple of years and that have not never happened. Where do you think it was being removed? Are they missing from the GUI? Missing in the installation directory ($STASH_INSTALL/shared/data/repositories)? or Both?

Missing from both. I had to do a complete recover from our backup in order to get the repos back. No clue why so I figured I'd ask and see if anyone else has had a similar question.

Hi Ryan,

   i checked for the removal of directories from the backend repos path by removing the repo directory from shared/data/repositories.The repo will be still available in the front end in the UI,we cannot clone the repo by the way.Looks like in your instance the repo is completely removed by some command like REST API or using the delete repository command from the front end.

Thanks & Regards

Vishnu

This has just happened to me...WOW

This widget could not be displayed.

Hi Ryan,

  Can you check if anyone with admin access is using REST API's and using remove commands.I suspect that is the main reason

 

Other reason is the directory where the repo is stored eg will be "46" in the data folder,those directories will be removed

 

Thanks & Regards

Vishnu

Hi Vishnu,

 

No admins are using the rest api, but what o you mean by the second part of your comment? 

"Other reason is the directory where the repo is stored eg will be "46" in the data folder,those directories will be removed"

Sorry for missing some important details

Can you check if the repository directories in <HOME>/shared/data/repositories path are being removed

Thanks

Vishnu

Yes, that's what happened. We got a report that a repo was missing. When I went into /shared/data/repositories, that repo was not there. I assumed it was just a mistake on the user's side, where he might have accidentally deleted the repo, but after further investigation we noticed others were missing as well.

This widget could not be displayed.
Jeff Thomas Atlassian Team Sep 12, 2016

Hi Ryan,

If you haven't already, please create a support request at https://support.atlassian.com so that we can help investigate this further.

Please attach a Support Zip and some examples of which repositories went missing.

This widget could not be displayed.

Agree with @Gabriele Basile - we've been working with the product for years and have never seem repos get randomly deleted.  There is always a reason.  Go in the project that contains the deleted repos and look (in settings) at the audit log - see if it shows any of the corresponding delete repo events.

 

This widget could not be displayed.

I opened one from our admin page on the BBK UI.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,327 views 8 11
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