You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
You can also access the log files by going to the file menu in GitHub Desktop and selecting Help > Show Logs in Finder. Please upload a log file from a day where you experienced this error.
2018-06-14T15:51:00.018Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: brand-iq - leonsegal (has token)
2018-06-14T15:51:00.019Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: brand-iq - leonsegal (has token)
2018-06-14T15:51:00.048Z - error: [ui] `git -c credential.helper= checkout --progress master --` exited with an unexpected code: 128.
fatal: Unable to create '/Users/leon/Sites/brand-iq/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
(The error was parsed as 34: A lock file already exists in the repository, which blocks this operation from completing.)
I don't have a terminal window open anywhere, so I don't think there is another git process running (at least not one I have initiated).
I don't have a terminal window open anywhere, so I don't think there is another git process running (at least not one I have initiated).
@leonsegal this error occurs when a Git operation that needs to touch the index of the repository encounters an existing operation that is currently modifying the index - so the second operation fails.
This occasionally happens when multiple tools are trying to work with the same repository - are you using another tool alongside Desktop that also has Git integration?
I also get this error frequently when clicking on the “open this in GitHub Desktop” link, when switching branches locally works just fine. Here’s the relevant log:
2018-08-08T15:56:58.790Z - error: [ui] `git -c credential.helper= checkout --progress **redacted** --` exited with an unexpected code: 128.
fatal: Unable to create '/Users/rehkugler/Documents/Development/**redacted**/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
(The error was parsed as 34: A lock file already exists in the repository, which blocks this operation from completing.)
I’m unsure if this is related, but the error dialog also appears twice (i.e. when I click “Close” it immediately reappears. Clicking “Close” on the second dialog closes the error permanently)
Hi I not long ago started using this and I have been making a heap of change to our project an now when I go to commit it says the same message about a lock file already existing. I don't even know what that is lol any help please?!
bugConfirmed bugs or reports that are very likely to be bugspriority-2Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
Activity
steveward commentedon Jun 14, 2018
Thanks for opening this @leonsegal. Could you upload a log file so we can take a closer look at what the issue might be?
macOS logs location:
~/Library/Application Support/GitHub Desktop/logs/*.desktop.production.logYou can also access the log files by going to the file menu in GitHub Desktop and selecting
Help>Show Logs in Finder. Please upload a log file from a day where you experienced this error.leonsegal commentedon Jun 14, 2018
Log:
I don't have a terminal window open anywhere, so I don't think there is another git process running (at least not one I have initiated).
Also, there is no index.lock in the .git dir.
shiftkey commentedon Jun 15, 2018
@leonsegal this error occurs when a Git operation that needs to touch the index of the repository encounters an existing operation that is currently modifying the index - so the second operation fails.
This occasionally happens when multiple tools are trying to work with the same repository - are you using another tool alongside Desktop that also has Git integration?
leonsegal commentedon Jun 15, 2018
No, this is the weird thing (and why I posted it).
I do use phpstorm, which has git integration, but this a new bug since a recent update.
I will investigate if it is phpstorm causing the error.
UPDATE
This bug still appears even when phpstorm is closed.
shiftkey commentedon Jul 6, 2018
This seems to be something fairly easy to reproduce, particularly if it's happening without WebStorm running.
leonsegal commentedon Jul 9, 2018
I am new to this - did you want me to reproduce it? Am I the reviewer?
Should I take a screen shot?
paulrehkugler commentedon Aug 8, 2018
I also get this error frequently when clicking on the “open this in GitHub Desktop” link, when switching branches locally works just fine. Here’s the relevant log:
I’m unsure if this is related, but the error dialog also appears twice (i.e. when I click “Close” it immediately reappears. Clicking “Close” on the second dialog closes the error permanently)
12 remaining items
shiftkey commentedon Nov 9, 2018
I believe this will be resolved with #5952 which enables
--no-optional-locksfor all users and will be available with 1.5.0 next week.If someone is still able to trigger this on that version, I'd love an updated log or set of reproduction steps.
wanda-madikana-sage commentedon May 19, 2021
Make sure your application is not running
leonsegal commentedon Aug 10, 2021
Sorry, which application do you mean? l think this issue is closed now.
ashpimm88 commentedon Sep 27, 2022
Hi I not long ago started using this and I have been making a heap of change to our project an now when I go to commit it says the same message about a lock file already existing. I don't even know what that is lol any help please?!
LesnierM commentedon Jan 10, 2023
I have the same error.
ghero56 commentedon Nov 18, 2024
Me too
aqibcyb12 commentedon Jan 23, 2025
goto the folder .git in your explorer , a file name index.lock is available just delete and commit again , cheers folk😍