{"thread":{"id":"22708","subject":"git-http-push (git v1.5) problems with DAVLockDB on reiserfs FS","startedAt":"2010-02-18T10:45:53Z","lastAt":"2010-02-18T11:36:53Z","messageCount":3,"participants":["Fabien","Tay Ray Chuan"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"134945","messageId":"hlj5ov$rca$1@ger.gmane.org","threadId":"22708","inReplyTo":null,"subject":"git-http-push (git v1.5) problems with DAVLockDB on reiserfs FS","fromName":"Fabien","fromEmail":"fabien.ubuntu@gmail.com","sentAt":"2010-02-18T10:45:53Z","receivedAt":"2010-02-18T10:45:53Z","isPatch":false,"sender":{"key":"fabien.ubuntu@gmail.com","avatar":null},"body":"Hi,\n\nI encountered many problems when using a git repository served over\napache/dav on ubuntu 8.04LTS\n* versions in use on server:\n- kernel 2.6.24\n- apache 2.2.8\n- git version 1.5.4.3 or 1.6.6.2 (doesn't change anything on server side)\n\n* versions in use on clients\ngit 1.5.4.3 => causes problem\ngit 1.6.6.2 => is ok.\n\n\nWith client 1.5, when pushing more than one commit, it fails with this\nerror:\n\n$ git push origin master\nFetching remote heads...\n  refs/\n  refs/tags/\n  refs/heads/\nupdating 'refs/heads/master'\n  from ad49aa06f145c5176f230744eb047f5f132361ab\n  to   3e6a3d8c8d3459c67a50bce55718f3b64db96f84\n    sending 6 objects\n    done\nUpdating remote server info\nerror: http-push died with strange error\nerror: failed to push some refs to\n'http://my.domain.tlt/git-tests/project9.git/'\n\nleaving the repository in the middle of the push which is really bad:\n$ git fsck\nbad sha1 file:\n./objects/1d/881d1c352047547135810123fdc13fb4f8e1db_88cb4b13-a549-445f-b0f1-79aaf746129e\nbad sha1 file:\n./objects/34/6018f9dafe91cb3fce8af1c49863a72c649e2f_88cb4b13-a549-445f-b0f1-79aaf746129e\nbad sha1 file:\n./objects/52/bb16c7a3c44d589a2cfd132c8cc749ad270dd4_88cb4b13-a549-445f-b0f1-79aaf746129e\nerror: HEAD: invalid sha1 pointer 458703bec0ab47149a9b7d70c384581c9cc0d859\nerror: refs/heads/master does not point to a valid object!\nnotice: No default references\ndangling commit 3295f15a5de9a2e58a577f9fe949dd7c81f72c6e\ndangling blob 40f6abca54b4408eedbf4f34116dd99fed8e205d\ndangling tree 656844a3f994fae1a92e856ac6b3b5cf9925e79a\ndangling tree 6b3d8fa638d004fe80f5512e025d74533a142859\n\nI finally noticed that this problem only occurs when I have the\nDAVLockDB file on a reiserfs partition. If I move it on ext3, it's ok.\nWeird...\n\nDoes somebody know which commit version change this behavior between 1.5\nand 1.6 ?\n\n--\nFabien\n"},{"id":"134946","messageId":"be6fef0d1002180305i5f8d32b8p5b8dd30b5c8ff0a3@mail.gmail.com","threadId":"22708","inReplyTo":"hlj5ov$rca$1@ger.gmane.org","subject":"Re: git-http-push (git v1.5) problems with DAVLockDB on reiserfs FS","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-02-18T11:05:40Z","receivedAt":"2010-02-18T11:05:40Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Thu, Feb 18, 2010 at 6:45 PM, Fabien <fabien.ubuntu@gmail.com> wrote:\n> I encountered many problems when using a git repository served over\n> apache/dav on ubuntu 8.04LTS\n> * versions in use on server:\n> - kernel 2.6.24\n> - apache 2.2.8\n> - git version 1.5.4.3 or 1.6.6.2 (doesn't change anything on server side)\n\nalthough nothing might have changed on the server-side, git does a lot\nof server-side operations via WebDAV, like locking, moving files, etc.\n\n> * versions in use on clients\n> git 1.5.4.3 => causes problem\n> git 1.6.6.2 => is ok.\n\nwhy not just use git 1.6?\n\n-- \nCheers,\nRay Chuan\n"},{"id":"134950","messageId":"hlj8oo$5bv$1@ger.gmane.org","threadId":"22708","inReplyTo":"be6fef0d1002180305i5f8d32b8p5b8dd30b5c8ff0a3@mail.gmail.com","subject":"Re: git-http-push (git v1.5) problems with DAVLockDB on reiserfs FS","fromName":"Fabien","fromEmail":"fabien.ubuntu@gmail.com","sentAt":"2010-02-18T11:36:53Z","receivedAt":"2010-02-18T11:36:53Z","isPatch":false,"sender":{"key":"fabien.ubuntu@gmail.com","avatar":null},"body":"Hi,\n\nTay Ray Chuan wrote:\n> On Thu, Feb 18, 2010 at 6:45 PM, Fabien <fabien.ubuntu@gmail.com> wrote:\n>> I encountered many problems when using a git repository served over\n>> apache/dav on ubuntu 8.04LTS\n>> * versions in use on server:\n>> - kernel 2.6.24\n>> - apache 2.2.8\n>> - git version 1.5.4.3 or 1.6.6.2 (doesn't change anything on server side)\n> \n> although nothing might have changed on the server-side, git does a lot\n> of server-side operations via WebDAV, like locking, moving files, etc.\n\nYes, I forgot to say the problem is related to locking problems on the\nserver side :\nCould not LOCK /git-tests/project1.git/info/refs due to a failed\nprecondition (e.g. other locks)\n\nThis is why I tested another file system, because I already had problems\nin the past with reiserfs and locking :)\n\n>> * versions in use on clients\n>> git 1.5.4.3 => causes problem\n>> git 1.6.6.2 => is ok.\n> \n> why not just use git 1.6?\nYes, but I have to tell that to around 100 contributors ;-)\nI plan to use a rule in apache to deny access to old versions of git...\n\n--\nFabien\n"}]}