The Stash home directory is already locked by another running instance of Stash.

Before I raise a support ticket, would like to roughly know what does the following log message means:

Caused by: com.atlassian.stash.internal.home.HomeLockDeniedException: The Stash home directory 'C:\Stash\StashHome' is already locked by another running instance of Stash.

Please stop the other instance of Stash and restart this instance.

If you are absolutely certain that no other instance of Stash is running, please remove the lock file 'C:\Stash\StashHome\.lock' and restart this instance.

1 answer

Hi Sue,

The error message pretty much says it all.

So we create that lock file when Stash starts, and remove it again when it shutsdown (cleanly). Either there is actually another Stash running, or previously Stash wasn't shutdown properly (ie kill -9).

If you know for a fact that Stash isn't running you're almost certianly safe to delete the file and start Stash again. I would also generally recommend taking a full backup of the home directory and database just in case. If you have any concerns, or in any case, please feel free to raise a support ticket with your logs attached.

Cheers,

Charles

I deleted the .lock file but its still the same..just raised a support ticket. Thanks!

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

174 views 20 8
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