I got the 'Repository currently not available' failure when trying to delete a repository using cURL:
$ curl -sX DELETE --user user:password https://api.bitbucket.org/2.0/repositories/workspace-id/repo
Repository currently not available.
The UI page for the repository is not responding: https://bitbucket.org/workspace-id/repo/src. It spins forever.
When I refreshed the page, Bitbucket seemed to try to create a repository.
It feels like the repository was partially deleted.
Is there a way to show the actual status of this repository, or force-delete this repository?
Hi @Config Sync CI Bot and welcome to the community!
It looks like the repo deletion task failed and this repo is now stuck in CREATING mode with 0 bytes of data.
You won't be able to delete this repo, but I can delete it for you if you give me permission since you are an admin.
Please let me know if I have your permission to delete that repo.
Just a heads up, I removed the repo URL and screenshots (since they show the repo URL) from your post to protect your privacy.
Kind regards,
Theodora
Hi Theodora,
Thank you for your help! Could you please provide your username so I can grant you permission to delete the repo?
Also, I'd like to understand the root cause of the deletion task failure, as this has happened a few times before. If it occurs again, how can we request a deletion?
Thank you for your assistance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
You don't need to grant me access to the workspace for me to delete the repo. I can do it from the backend, I just need you to state that you give me permission to delete this repo, before I proceed.
Regarding the root cause, this repo was deleted more than 30 days ago, and due to our logs retention policy there are no logs for me to check. If this issue occurs again, could you please reach out then and provide a) the date and approximate time (in UTC, if you don't want to add a timezone) that you ran the API call and b) a few letters of the repo name so I can identify it among others you may have deleted during the same time? I will then check our logs for any further info.
If this ever occurs again, you can create a question in community like you did with this question and request a deletion. We have Atlassian staff, myself included, checking community.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Theodora,
Thanks for the reply. Yes, you have my permission to delete the repo.
Sure, if it happens next time, I would reach out with all the context you requested.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for the confirmation, I went ahead and deleted that repository.
Please feel free to reach out if this ever occurs again or if you need anything else!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Theodora,
This issue happened again when attempting to delete repo `bookstorereposynce0228a` in the `config-sync-ci-20240328` workspace.
Below listed some timestamps for the deletion:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Theodora, the issue happened again. I posted another question with more details: https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-delete-Git-repositories-due-to-Repository-currently/qaq-p/2713100#M104729.
Please take a look and let us know what might cause the deletion issue. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.