{"thread":{"id":"30069","subject":"Git commit error: fatal: Repository has been updated, but unable to write new_index file.","startedAt":"2012-03-27T07:35:08Z","lastAt":"2012-05-15T21:36:55Z","messageCount":7,"participants":["Kirill Likhodedov","Kevin","Ben Tebulin","Sylvain","Heiko Voigt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"187838","messageId":"34E530A4-A792-42AC-8C19-5F7CB71FA46C@jetbrains.com","threadId":"30069","inReplyTo":null,"subject":"Git commit error: fatal: Repository has been updated, but unable to write new_index file.","fromName":"Kirill Likhodedov","fromEmail":"kirill.likhodedov@jetbrains.com","sentAt":"2012-03-27T07:35:08Z","receivedAt":"2012-03-27T07:35:08Z","isPatch":false,"sender":{"key":"kirill.likhodedov@jetbrains.com","avatar":"https://gravatar.com/avatar/9fd55d2a110e8e96deb3ed7b503d7f3b9b5b1ed5ca9ef6683c15525b11b94e63?d=mp&s=160"},"body":"\nReposting, since there were no replies - probably, the message was missed.\nI would appreciate help in understanding what the Git error could be cause by.\nThanks!\n\n-------\n\nHello,\n\nI'm developing a Git integration with an IDE. Several users of the program report the following error which was returned by Git during commit:\n\nfatal: Repository has been updated, but unable to write\nnew_index file. Check that disk is not full or quota is\nnot exceeded, and then \"git reset HEAD\" to recover.\n\nHere is the command which IDE executes to make a commit: \n\n# git commit --only -F <message file> -- <several files chosen to commit>\n\nThe interesting thing is that commit was actually successful, i.e. all files are committed, git status reports correctly, no other mistakes were noticed by users.\nHere is the bugreport with some more details: http://youtrack.jetbrains.com/issue/IDEA-82108\nOne of the users says, that the situation happens quite often.\n\nUsers say that the thing has never happened with them while they were using Tortoise Git, so I'm pretty sure, that it is my bug caused my some misusage of Git (although I asked users to perform more experiments).\n\nUnfortunately, I didn't find any information about the possible cause of this error.\n\nCould you please help me to figure out why it can happen? What situation can lead to this error?\n\nThanks a lot.\n\n----------------------------------\nKirill Likhodedov\nJetBrains, Inc\nhttp://www.jetbrains.com\n\"Develop with pleasure!\"\n"},{"id":"187840","messageId":"20120327083625.GA4159@ikke-laptop.buyways.nl","threadId":"30069","inReplyTo":"34E530A4-A792-42AC-8C19-5F7CB71FA46C@jetbrains.com","subject":"Re: Git commit error: fatal: Repository has been updated, but unable to write new_index file.","fromName":"Kevin","fromEmail":"compufreak@gmail.com","sentAt":"2012-03-27T08:36:25Z","receivedAt":"2012-03-27T08:36:25Z","isPatch":false,"sender":{"key":"compufreak@gmail.com","avatar":"https://gravatar.com/avatar/10ca3ab6beccce3bbb196f655727a5ece331d2c95062270ef9d52e64f0d9356b?d=mp&s=160"},"body":"This might look like some kind of race condition where multiple commands\nare executed at the same time, causing the lock file to be hold.\n\nCould you check if something like that is happening somewhere?\n\nOn Tue, Mar 27, 2012 at 11:35:08AM +0400, Kirill Likhodedov wrote:\n> \n> Reposting, since there were no replies - probably, the message was missed.\n> I would appreciate help in understanding what the Git error could be cause by.\n> Thanks!\n> \n> -------\n> \n> Hello,\n> \n> I'm developing a Git integration with an IDE. Several users of the program report the following error which was returned by Git during commit:\n> \n> fatal: Repository has been updated, but unable to write\n> new_index file. Check that disk is not full or quota is\n> not exceeded, and then \"git reset HEAD\" to recover.\n> \n> Here is the command which IDE executes to make a commit: \n> \n> # git commit --only -F <message file> -- <several files chosen to commit>\n> \n> The interesting thing is that commit was actually successful, i.e. all files are committed, git status reports correctly, no other mistakes were noticed by users.\n> Here is the bugreport with some more details: http://youtrack.jetbrains.com/issue/IDEA-82108\n> One of the users says, that the situation happens quite often.\n> \n> Users say that the thing has never happened with them while they were using Tortoise Git, so I'm pretty sure, that it is my bug caused my some misusage of Git (although I asked users to perform more experiments).\n> \n> Unfortunately, I didn't find any information about the possible cause of this error.\n> \n> Could you please help me to figure out why it can happen? What situation can lead to this error?\n> \n> Thanks a lot.\n> \n> ----------------------------------\n> Kirill Likhodedov\n> JetBrains, Inc\n> http://www.jetbrains.com\n> \"Develop with pleasure!\"\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"187848","messageId":"jks9k9$c35$1@dough.gmane.org","threadId":"30069","inReplyTo":"34E530A4-A792-42AC-8C19-5F7CB71FA46C@jetbrains.com","subject":"Re: Git commit error: fatal: Repository has been updated, but unable to write new_index file.","fromName":"Ben Tebulin","fromEmail":"nntp.20.jexpert@spamgourmet.com","sentAt":"2012-03-27T11:51:48Z","receivedAt":"2012-03-27T11:51:48Z","isPatch":false,"sender":{"key":"nntp.20.jexpert@spamgourmet.com","avatar":null},"body":"> fatal: Repository has been updated, but unable to write new_index\n> file. Check that disk is not full or quota is not exceeded, and then\n> \"git reset HEAD\" to recover.\n>\n> Here is the command which IDE executes to make a commit:\n>\n> # git commit --only -F<message file>  -- <several files chosen to\n> commit>\n\nI can confirm this issue. I saw this error more than once. And I'm \nworking with cygwin Git on the command line - but having an IDE (VS in \nthis case) opened in parallel.\n\nI don't think the issue is about two parallel Git operations in \nparallel. I only started one. But more that some file of the working \ncopy is in access. And Git seems to be much more sensible about those \nthan i.e. subversion. (No file was \"locked\")\n\nSorry - but I cannot tell anything more except that I've experienced \nthis issue too. Maybe this is a  windows specific issue? As a windows \nuser I had some of them...\n"},{"id":"187849","messageId":"20120327122045.GA7421@ikke-laptop.buyways.nl","threadId":"30069","inReplyTo":"jks9k9$c35$1@dough.gmane.org","subject":"Re: Git commit error: fatal: Repository has been updated, but unable to write new_index file.","fromName":"Kevin","fromEmail":"compufreak@gmail.com","sentAt":"2012-03-27T12:20:45Z","receivedAt":"2012-03-27T12:20:45Z","isPatch":false,"sender":{"key":"compufreak@gmail.com","avatar":"https://gravatar.com/avatar/10ca3ab6beccce3bbb196f655727a5ece331d2c95062270ef9d52e64f0d9356b?d=mp&s=160"},"body":"One hint that this is a windows issue is that all the reporters seem to\nuse msysgit.\n\n(added msysgit mailinglist as cc)\n\nOn Tue, Mar 27, 2012 at 01:51:48PM +0200, Ben Tebulin wrote:\n> >fatal: Repository has been updated, but unable to write new_index\n> >file. Check that disk is not full or quota is not exceeded, and then\n> >\"git reset HEAD\" to recover.\n> >\n> >Here is the command which IDE executes to make a commit:\n> >\n> ># git commit --only -F<message file>  -- <several files chosen to\n> >commit>\n> \n> I can confirm this issue. I saw this error more than once. And I'm\n> working with cygwin Git on the command line - but having an IDE (VS\n> in this case) opened in parallel.\n> \n> I don't think the issue is about two parallel Git operations in\n> parallel. I only started one. But more that some file of the working\n> copy is in access. And Git seems to be much more sensible about\n> those than i.e. subversion. (No file was \"locked\")\n> \n> Sorry - but I cannot tell anything more except that I've experienced\n> this issue too. Maybe this is a  windows specific issue? As a\n> windows user I had some of them...\n> \n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"187853","messageId":"8646D039-536E-4E6B-9D9B-01E0FB8D1C69@jetbrains.com","threadId":"30069","inReplyTo":"20120327083625.GA4159@ikke-laptop.buyways.nl","subject":"Re: Git commit error: fatal: Repository has been updated, but unable to write new_index file.","fromName":"Kirill Likhodedov","fromEmail":"kirill.likhodedov@jetbrains.com","sentAt":"2012-03-27T14:28:14Z","receivedAt":"2012-03-27T14:28:14Z","isPatch":false,"sender":{"key":"kirill.likhodedov@jetbrains.com","avatar":"https://gravatar.com/avatar/9fd55d2a110e8e96deb3ed7b503d7f3b9b5b1ed5ca9ef6683c15525b11b94e63?d=mp&s=160"},"body":"\n27.03.2012, в 12:36, Kevin:\n\n> This might look like some kind of race condition where multiple commands\n> are executed at the same time, causing the lock file to be hold.\n> \n> Could you check if something like that is happening somewhere?\n\nI thought about it, but we've got a software lock that prevents such a collision, and it seems to work pretty good: we've never had lock problems in any other cases, and in this case the problem also seems to be quite rare - it is experienced only by a few of users, although rather frequently.\nMoreover, there are no parallel Git activities in this case anyway, only git add followed by git commit.\n\nBtw, lock-conflicting errors are usually reported by Git as \nfatal: Unable to create 'project_path/.git/index.lock': File exists.\n\n\n> \n> On Tue, Mar 27, 2012 at 11:35:08AM +0400, Kirill Likhodedov wrote:\n>> \n>> Reposting, since there were no replies - probably, the message was missed.\n>> I would appreciate help in understanding what the Git error could be cause by.\n>> Thanks!\n>> \n>> -------\n>> \n>> Hello,\n>> \n>> I'm developing a Git integration with an IDE. Several users of the program report the following error which was returned by Git during commit:\n>> \n>> fatal: Repository has been updated, but unable to write\n>> new_index file. Check that disk is not full or quota is\n>> not exceeded, and then \"git reset HEAD\" to recover.\n>> \n>> Here is the command which IDE executes to make a commit: \n>> \n>> # git commit --only -F <message file> -- <several files chosen to commit>\n>> \n>> The interesting thing is that commit was actually successful, i.e. all files are committed, git status reports correctly, no other mistakes were noticed by users.\n>> Here is the bugreport with some more details: http://youtrack.jetbrains.com/issue/IDEA-82108\n>> One of the users says, that the situation happens quite often.\n>> \n>> Users say that the thing has never happened with them while they were using Tortoise Git, so I'm pretty sure, that it is my bug caused my some misusage of Git (although I asked users to perform more experiments).\n>> \n>> Unfortunately, I didn't find any information about the possible cause of this error.\n>> \n>> Could you please help me to figure out why it can happen? What situation can lead to this error?\n>> \n>> Thanks a lot.\n>> \n>> ----------------------------------\n>> Kirill Likhodedov\n>> JetBrains, Inc\n>> http://www.jetbrains.com\n>> \"Develop with pleasure!\"\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"191538","messageId":"loom.20120515T082415-300@post.gmane.org","threadId":"30069","inReplyTo":"20120327122045.GA7421@ikke-laptop.buyways.nl","subject":"Re: Git commit error: fatal: Repository has been updated, but unable to write new_index file.","fromName":"Sylvain","fromEmail":"syllant@gmail.com","sentAt":"2012-05-15T06:34:31Z","receivedAt":"2012-05-15T06:34:31Z","isPatch":false,"sender":{"key":"syllant@gmail.com","avatar":null},"body":"Hi,\n\nI'm also experiencing this issue (msysGit 1.7.10-preview20120409 + TortoiseGit \n1.7.9.0 + Intellij IDEA 11).\n\nDon't you think it could be related to parallel usage of msysGit + TortoiseGit?\n\nI.e. after committing with msysGit (through IDEA or not), TortoiseGit would \nlaunch a background operation (such as updating index) that would mess with \nmsysGit?\n\nJust a guess, I don't know internal behaviour of msysGit/TortoiseGit.\n\nSylvain\n"},{"id":"191567","messageId":"20120515213648.GA66983@book.hvoigt.net","threadId":"30069","inReplyTo":"loom.20120515T082415-300@post.gmane.org","subject":"Re: Git commit error: fatal: Repository has been updated, but unable to write new_index file.","fromName":"Heiko Voigt","fromEmail":"hvoigt@hvoigt.net","sentAt":"2012-05-15T21:36:55Z","receivedAt":"2012-05-15T21:36:55Z","isPatch":false,"sender":{"key":"hvoigt@hvoigt.net","avatar":"https://avatars.githubusercontent.com/u/184958?v=4"},"body":"Hi,\n\nOn Tue, May 15, 2012 at 06:34:31AM +0000, Sylvain wrote:\n> I'm also experiencing this issue (msysGit 1.7.10-preview20120409 + TortoiseGit \n> 1.7.9.0 + Intellij IDEA 11).\n> \n> Don't you think it could be related to parallel usage of msysGit + TortoiseGit?\n> \n> I.e. after committing with msysGit (through IDEA or not), TortoiseGit would \n> launch a background operation (such as updating index) that would mess with \n> msysGit?\n> \n> Just a guess, I don't know internal behaviour of msysGit/TortoiseGit.\n\nThis is the wrong list for msysgit please see \n\nhttp://groups.google.com/group/msysgit\n\nMy guess is that some other program (your virus scanner or IDE ?) is\nblocking writing on the index file. In msysgits git gui and the command\nline we have a retry fallback that asks you whether you want to try\nagain. I do not know TortoiseGit I guess that they do not have such\nthing and just fail.\n\nCheers Heiko\n"}]}