Multiple missing repositories
Asked by gavinb:

Multiple repositories are missing from my account, and I cannot find any evidence to explain why.

The first missing repo was at: \<repo_url_removed\> where I published source code relating to my blog. Now it just returns a 404 error.

The most recent email notification I received relating to this repo was 12 May 2020, so it was clearly present/active a little over a year ago. There have also been approx 6 forks of this repo made in the past, and none of them exist now either.

I checked the audit log for my workspace and the last action was on 2018-06-29 which corresponds plausibly with the last time I logged in. There are events showing the creation of several other repos (eg pimpvscom and two other private repos) and no other activity, certainly no deletions. One screen actually says I have 9 repos in my workspace, but I can only see and access 2.

Since the repo was demonstrably active on a date *after* my last login, I cannot have deleted it myself. It appears to have disappeared in some system failure.

I have searched all my email and there is no notification of any deletion or any reason to think a repo might have been deleted. This seriously undermines my confidence in the reliability of this service.

Please Atlassian, where is my data?


Answers:
author: Theodora Boudale
body: Hi [@gavinb](/t5/user/viewprofilepage/user-id/1591828),

I checked the workspace associated with your Bitbucket Cloud account and it owns several Mercurial repositories. Are the Mercurial repos the ones you are missing?

We sunset support for Mercurial repositories last year, we sent an email to admins of Mercurial repos and also announced it publicly here:

* <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>
* <https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380>

As of 26th August 2020 all Mercurial repos have been disabled and cannot be accessed.

If you'd like a copy of these repos, please feel free to let me know. I can create a support ticket for you, so that we provide you with a copy of these Mercurial repos.

Kind regards,  
Theodora

comments: author: gavinb
body: Hello Theodora,

Yes they were Mercurial repositories. I found the announcement email so I guess I must have missed acting on it at the time, though it was only a single generic message and made no mention of the actual repos affected. No reminder or followup either, which is a shame considering the significance of the change. Anyway, that boat has sailed.

So yes, if you would kindly furnish a copy of the archived repos just to make sure I have everything in sync that would be great. Thanks!

Regards -

:: Gavin


author: Theodora Boudale
body: Hi Gavin,

Of course, I went ahead and created a support ticket for you using the email of your community account. You should have received an email with a link to the support ticket. If you haven't, please feel free to let me know and I can post the ticket URL here (the ticket will be visible only to you and Atlassian staff, no one else can view its content even if they have the URL).

One of our engineers will respond to the ticket and provide you with a copy of the Mercurial repos owned by your Bitbucket workspace. Please feel free to let me know if you need anything further!

Kind regards,  
Theodora


author: gavinb
body: Thanks, Theodora.

I received the instructions on downloading the bundle from Alan in support. After extracting the folder tree, I went to clone the repos. Two of them failed with an error:

```
abort: preoutgoing.bb_perm hook is invalid: import of "libbucket.hooks" failed
```

I searched and didn't find much useful. I compared the .hg/hgrc files of the two that failed with the others that worked. This specific hook seemed to be the difference. So I commented it out and tried again, and then the clone worked. Including these details in case anyone else encounters the same problem.

I am now able to access all the repos, including some data that was missing. So I am very grateful for this restoration! Best regards,


author: rjt69
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

I too would love to get my mercurial repositories. I tried creating a ticket, but it pointed me to documentation. Would you please create a ticket for me so that i can get my private mercurial repositories back? Please.

\<workspace_url_removed\>

\<workspace_url_removed\>


author: rjt69
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

To be clear, i cannot find my mercurial repositories. Had used them extensively pre-covid. Trying to resuscitate a few processes here, but it a majority of it points back to these mercurial repos under rjt69 and eceo. I ended up making this GDPR request because it seemed to be the only one i could successfully create. Please see if that will work.

<https://getsupport.atlassian.com/servicedesk/customer/portal/44/DATA-13986>


author: febrinaldi
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)   

Hi, can I get my Mercurial repos too? As far as I remember I didn't get the notice email. This is very unfortunate, when you want to back up your code, but the back up server delete your data without chance for me to backing them up. Thanks.

Here's my workspace URL:  
\<workspace_url_removed\>


author: Theodora Boudale
body: Hi [@febrinaldi](/t5/user/viewprofilepage/user-id/4932933),

I'm afraid that the Bitbucket Cloud Support team is no longer able to restore those repositories.

If you are looking for a Mercurial repository that was public, all the public repos were archived by Software Heritage:

<https://bitbucket-archive.softwareheritage.org/>

We will not be able to meet any further requests for recovery of private HG repositories.

Kind regards,  
Theodora


author: Theodora Boudale
body: Hi everyone,

Atlassian made a decision to move away from maintaining and supporting Mercurial repositories in 2019.

This was announced in community:

* <https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380>

and on our blog:

* <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>

Bitbucket Cloud Support team is no longer able to restore those repositories.

If you are looking for a Mercurial repository that was public, all the public repos were archived by Software Heritage:

* <https://bitbucket-archive.softwareheritage.org/>

We will not be able to meet any further requests for recovery of private HG repositories and users will need to recover those from local copies only.

Kind regards,  
Theodora


author: ayazahmedkhan
body: +1 because I've lost AFAIK one repo on my account as well. It disappeared mysteriously two days ago without a trace anywhere.

This is bad!

comments: author: Theodora Boudale
body: Hi [@ayazahmedkhan](/t5/user/viewprofilepage/user-id/4631620),

If you could access the repo until two days ago, then your issue is related to something other than the Mercurial repo deprecation. My first guess would be that the repo may have been deleted or transferred to another workspace by another admin, but we'd need to check.

Please create a new question in community (while logged in to the account that has admin access to the workspace that owned this repo) and we can look into your specific issue.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bug

cloud

mercurial