BitBucket upgrade from Stash removed several repos; How to restore?

Recently I attempted to upgrade a Stash instance to the latest version of BitBucket. The upgrade process "succeeded" but most of the repositories are no longer showing up. Before the upgrade there were 12 repos in Stash. After the upgrade only 2 show up in BitBucket. The repo files are still in the folder, and the 10 missing repos are still listed in the database when I perform the query:

select * from repository;

The database being used is MySQL. The upgrade was from Stash 2.12.0 to BitBucket 5.5.1. There were no errors or warnings in atlassian-bitbucket.log that related to the missing repos.

I'd prefer not to recreate the repos through git as was suggested to a user who was migrating to a new server. How can I point BitBucket to the repositories that already exist both within the database and on disk?

1 answer

0 vote

Hi Mark,

This is something that shouldn't be happening and I would consider the upgrade to have failed given that the repositories have disappeared. For that reason I'd suggest reverting to the pre-upgrade state by restoring your Stash home directory and database and attempting the upgrade again, and if you still see repositories being deleted you'd probably want to look at the Bitbucket logs to find out why that might be happening.

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

25,815 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