After recent degraded mode on bitbucket can't to push my commits to repository Edited

remote: error: cannot lock ref 'refs/heads/master': Unable to create '/data/c01/n07/p/vp0655/data/d-777/r-22526777/refs/heads/master.lock': File exists.
remote:
remote: If no other git process is currently running, this probably means a
remote: git process crashed in this repository earlier. Make sure no other git
remote: process is running and remove the file manually to continue.

How to remove this file?

Thank you.

1 answer

0 vote

Hi Дмитрий,

We have some documentation on this error here (see Cause #5).

You can resolve it by deleting the lock file itself. More details from the page linked:

This tends to occur when older versions of Bitbucket Server or Git are being used on the server side. Ideally you should upgrade to the latest version of Git and Bitbucket Server. To resolve this in a one off manner, manually delete these lock files from the file system of the server. The path in the error above should tell you where these lock files are located. In the example above, you would navigate to /bitbucket/home/shared/data/repositories/<REPO_NUMBER>/refs/heads and delete test.lock.

Which version of Git is installed on the server?

 

Cheers,

Caterina - Atlassian Support

Hello! It was on public server bitbucket.org. I've already solved tihs issue. 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...

30,635 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