3

Seems to be im having a nightmare i keep getting this error when i push

remote: error: cannot lock ref 'refs/heads/master': Unable to create '/data/c01/n01/p/vp0443/data/d-389/r-13803389/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.
To https://sam_roberts_@bitbucket.org/sam_roberts_/admitme.git
 ! [remote rejected] master -> master (failed to update ref)
error: failed to push some refs to 'https://sam_roberts_@bitbucket.org/sam_roberts_/admitme.git'

So far,

I've tried resetting git ive followed this tutorial Error on git push = ! [remote rejected] master -> master (pre-receive hook declined)

i tried following this one too Failed to lock refs/heads/master

any ideas??

Sam Roberts
  • 175
  • 12
  • Do what the error message suggests, delete `/data/c01/n01/p/vp0443/data/d-389/r-13803389/refs/heads/master.lock` and you should be good. https://stackoverflow.com/questions/8500089/fatal-unable-to-create-refs-heads-master-lock-file-exists-fatal-getting-t#26837305 – castis Jan 09 '18 at 23:16
  • 2
    That the issue, its remote and on bitbucket... – Sam Roberts Jan 09 '18 at 23:18
  • 1
    i dont have access to that file i dont think? – Sam Roberts Jan 09 '18 at 23:18
  • Oh wow, yeah I thought that would have been local for sure. Nice that you got it figured out! – castis Jan 09 '18 at 23:26

1 Answers1

5

Answer to this, contact bitbucket, They removed the lock file for me :D

Sam Roberts
  • 175
  • 12