Hosted BitBucket server lost users and we can't recover repositories

We had a self-hosted BitBucket server that we had placed on a MacMini that was working fine for us for a year now, but we had a server migration recently and when we restarted the server, all our users were gone but there was around 5.8 GB of pack files that we assume might either be some sort of diff cache or the actual repositories, but we dont' have a way of accessing these files to be sure.

Is there a way to recover lost repositories from pack files generated by BitBucket?

Alternately, is there a log somewhere that could indicate what may have happened to our user accounts, or if there is a way to rebuild them somehow? For some reason our admin account is still there, but all the other accounts have vanished as have any references to the repositories that the server formerly hosted. 

1 answer

0 vote

Hi Fiona,

Which version of Bitbucket are you using?

Also, how were you managing your users before? Were you using an external directory (such as Crowd or LDAP) or were you using the internal Bitbucket user directory?

My gut feeling tells me you were using an external directory but that directory isn't accessible anymore and that's why users disappeared.

As far as the recovery of repositories is concerned, they can only be recovered from actual file system backups.

Cheers,

Christian

Premier Support Engineer

Atlassian

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...

29,319 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