I am getting the following error on two of our repos for client (Project):
Please see your system administrator.
I have created new equivalent repos under the same project from a local clone I had, but would like to remove these offending repos. Unfortunately, cannot remove them via the Bitbucket web ui since one must be able to 'open' a repo in order to get to the 'delete' option. How can I make these repos disappear from the Project they are under?
Hello @Lee Roder ,
Thanks for reaching out and the error you are encountering looks like the same one mentioned int he following KB article that includes the steps to fix the issue.
Please check this out and let us know if this is the case:
Thanks! Unfortunately, that doesn't help me. My problem is that I cannot click into the repository, therefore I cannot get to 'repository settings' for the two repositories in question. I am getting that 500 error from the Project web page that these repos are in as soon as I click on either project. I hope this makes sense. I am not able to get in to either repository, and that is where the article you referenced is operating from.
Thanks for the info. The error itself tells us that the master branch reference in disk is corrupted. Even if you don't have access to the repo it should be possible to get the repository ID directly on the database by running the query on this KB
Once you identify the repository, can you access it on disk by following the instructions provided in the KB by my colleague @Earl McCutcheon Then access the file refs/heads/master within the affected repository in disk. Can you check if the file exists and provide us with the content? It should be a text file with a commit id in it.
Apologies for the lengthy delay prior to responding! I did read that KB posting but my issue is that we did not ever set up a database (bad form, I know!). After some deliberation, I determined that the best way forward might be to navigate to /var/atlassian/application-data/bitbucket/shared/data/repositories and do a bit of investigating. I determined that there were several subfolders simply given numerical names. I then determined that within each folder is a file called repository-config which, among other things, contains a project = ... entry that corresponds to our repository names. I found one with the project name in question, navigated to refs/heads within that folder, and found that the file master is empty. As in, a zero byte file. Hope this helps!
Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events