Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Lock file in Bitbucket cloud prevents merges or pushes of the branch

Inbar Shani
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2024

Hi,

When I tried to merge PRs in my bitbucket cloud repo, it fails with a generic message (something went wrong).

When I tried to merge locally and push the merged branch, I got the following error:

remote: error: cannot lock ref ‘refs/heads/master’: Unable to create ‘./refs/heads/master.lock’: File exists.
remote:
remote: Another git process seems to be running in this repository, e.g.
remote: an editor opened by ‘git commit’. Please make sure all processes
remote: are terminated then try again. If it still fails, a git process
remote: may have crashed in this repository earlier:
remote: remove the file manually to continue.

 

It looks like the remote (bitbucket cloud) has a remaining lock file which I can't access or delete. I can't delete the branch or otherwise overcome this issue.

 

What should be done?

Thanks

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 14, 2024

Hello @Inbar Shani ,

and welcome to the Community!

I see you have access to a Bitbucket workspace with an active subscription that entitles you to our standard support. I have raised a support ticket on your behalf so we can assist you in removing that lock file.

You should receive an email with the ticket link in the next few minutes. To expedite the resolution, we kindly ask you to share in the support ticket which repository is affected by this error.

If you haven't received the ticket link in your email, please let me know so I can share it here (the ticket is only visible to you and Atlassian staff).

Thank you, @Inbar Shani !

Patrik S

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events