question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to create `index.lock`: File exists.

See original GitHub issue

Hi Carlos,

First of all thanks for such an amazing piece of cake. I’d be great if I could get this to work but unfortunately I am always getting this error:

screen shot 2016-11-23 at 12 34 32

I’ve tried also with sudo gitmoji -c but doesn’t work either. Any clue of what could be going on here? I’ve made sure there is no index.lock file in my .git/ folder.

Thank you very much!

Ramón

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
vshy108commented, Feb 26, 2017

i solved the problem by create and remove the file touch .git/index.lock && rm .git/index.lock

but it is frustrating because the error triggered quite frequently.

0reactions
rmngrccommented, Nov 23, 2016

Its funny indeed. It works only in new repos but not on the existing ones I have already.

Read more comments on GitHub >

github_iconTop Results From Across the Web

991 - Stack Overflow
fatal : Unable to create '/path/my_proj/.git/index.lock': File exists. If no other git process is currently running, this probably means a ...
Read more >
Understanding and Using Git's index.lock File | Pluralsight
1fatal : Unable to create '.git/index.lock': File exists. This error alludes to the creation of an index.lock file within your hidden .git ...
Read more >
Git - How to Solve `'git/index.lock': File exists` Error in ...
Suddenly, when you try to add changes to the staging area, it fails. Then, you figure out that you cannot perform the common...
Read more >
Git Error: Unable to create index.lock | The First Byte
Here's an error I recently came accross in Git when trying to push a commit. If Git is giving you something about being...
Read more >
fatal: Unable to create, git/index.lock': File exists - FindNerd
Open terminal & go to the path where your project is. · Type ls command and check if there is a .git folder....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found