{"thread":{"id":"25545","subject":"git via http problem","startedAt":"2010-10-25T10:34:07Z","lastAt":"2010-10-26T07:40:14Z","messageCount":5,"participants":["Aleksey Egorov","Tay Ray Chuan","Алексей Егоров"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"154399","messageId":"loom.20101025T123323-510@post.gmane.org","threadId":"25545","inReplyTo":null,"subject":"git via http problem","fromName":"Aleksey Egorov","fromEmail":"alekseyandni@mail.ru","sentAt":"2010-10-25T10:34:07Z","receivedAt":"2010-10-25T10:34:07Z","isPatch":false,"sender":{"key":"alekseyandni@mail.ru","avatar":null},"body":"Good day\nI have installed apache2, Webdav and git-core on my Debian.\nI added next information to the apache conf\n        Alias /linter.git /var/www/linter.git\n<Location /linter.git>\nDAV On\nAuthType Basic\nAuthname \"localhost\"\nAuthUserFile /etc/apache2/users/pwd\nRequire valid-user\n</Location>\npwd file was created by htpasswd, wich contain user test and password test.\nmy home/.netrc file contains\n       machine localhost\n       login test\n       password test\nAnd then when I type\n       git push upload master\nI see next errors\n      error: Cannot access URL http://localhost/linter.git/, return code 22\n      error: failed to push some refs to 'http://localhost/linter.git/'\nIn browaser all is ok, when I type http://localhost/linter.git/, user test and\npassword test, it shows directory on the server.\nIf I change apache conf to\n      Alias /linter.git /var/www/linter.git\n<Location /linter.git>\nDAV On\nAuthType Basic\nAuthname \"localhost\"\n</Location>\ngit starts normal:\n     git push upload master\n     Fetching remote heads...\n     refs/\n     refs/heads/\n     refs/tags/\n     updating 'refs/heads/master'\n     from 0000000000000000000000000000000000000000\n     to aa36be4c3e46e619f73faa0cea071688cb380d25\n\nWhat is the problem can be?\n"},{"id":"154403","messageId":"AANLkTi=J=geegYAXnHmNONw8UeocePTw2EMw4frMbQZA@mail.gmail.com","threadId":"25545","inReplyTo":"loom.20101025T123323-510@post.gmane.org","subject":"Re: git via http problem","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-10-25T12:39:44Z","receivedAt":"2010-10-25T12:39:44Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Mon, Oct 25, 2010 at 6:34 PM, Aleksey Egorov <alekseyandni@mail.ru> wrote:\n> If I change apache conf to\n>      Alias /linter.git /var/www/linter.git\n> <Location /linter.git>\n> DAV On\n> AuthType Basic\n> Authname \"localhost\"\n> </Location>\n\nI noticed that you left out AuthUserFile here.\n\nCould it be that you didn't load mod_authn_file? (wild guess)\n\nAlso, what version of git are you running? I'm guessing it's an\nauthentication problem.\n\n\n\n-- \nCheers,\nRay Chuan\n"},{"id":"154406","messageId":"E1PAMqx-0004No-00.alekseyandni-mail-ru@f241.mail.ru","threadId":"25545","inReplyTo":"AANLkTiJ=geegYAXnHmNONw8UeocePTw2EMw4frMbQZA@mail.gmail.com","subject":"Re[2]: git via http problem","fromName":"Алексей Егоров","fromEmail":"alekseyandni@mail.ru","sentAt":"2010-10-25T13:12:43Z","receivedAt":"2010-10-25T13:12:43Z","isPatch":false,"sender":{"key":"alekseyandni@mail.ru","avatar":null},"body":"\nI'm using git-core 1:1.5.6.5-3+lenny3.2\nI can see list of files using cadaver: \ncadaver http://test@localhost/linter.git\nAuthentication required for localhost on server `localhost':\nUsername: test\nPassword: \ndav:/linter.git/> ls\nListing collection `/linter.git/': succeeded.\nColl:   branches                               0  Окт 25 12:45\nColl:   hooks                                  0  Окт 25 12:45\nColl:   info                                   0  Окт 25 12:45\nColl:   objects                                0  Окт 25 12:45\nColl:   refs                                   0  Окт 25 12:45\n        HEAD                                  23  Окт 25 12:45\n        config                                66  Окт 25 12:45\n        description                           58  Окт 25 12:45\ndav:/linter.git/> quit\nConnection to `localhost' closed.\n\nIn /etc/apache2/mods-enabled   I see @authn_file.load  with the text\n LoadModule authn_file_module /usr/lib/apache2/modules/mod_authn_file.so\n\n\nMon, 25 Oct 2010 20:39:44 +0800 письмо от Tay Ray Chuan <rctay89@gmail.com>:\n\n> Hi,\n> On Mon, Oct 25, 2010 at 6:34 PM, Aleksey Egorov <alekseyandni@mail.ru> wrote:\n> > If I change apache conf to\n> > ? ? ?Alias /linter.git /var/www/linter.git\n> > <Location /linter.git>\n> > DAV On\n> > AuthType Basic\n> > Authname \"localhost\"\n> > </Location>\n> I noticed that you left out AuthUserFile here.\n> Could it be that you didn't load mod_authn_file? (wild guess)\n> Also, what version of git are you running? I'm guessing it's an\n> authentication problem.\n> -- \n> Cheers,\n> Ray Chuan\n"},{"id":"154409","messageId":"AANLkTin95znfHbPwCs25+-2CFdf6upQpkgR1+uM+Sp9u@mail.gmail.com","threadId":"25545","inReplyTo":"E1PAMqx-0004No-00.alekseyandni-mail-ru@f241.mail.ru","subject":"Re: Re[2]: git via http problem","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-10-25T14:20:05Z","receivedAt":"2010-10-25T14:20:05Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\n2010/10/25 Алексей Егоров <alekseyandni@mail.ru>:\n> I'm using git-core 1:1.5.6.5-3+lenny3.2\n> I can see list of files using cadaver:\n\nProbably a problem with git. Could you try updating your git installation?\n\n-- \nCheers,\nRay Chuan\n"},{"id":"154439","messageId":"E1PAe8k-0007Gf-00.alekseyandni-mail-ru@f165.mail.ru","threadId":"25545","inReplyTo":"AANLkTin95znfHbPwCs25-2CFdf6upQpkgR1+uM+Sp9u@mail.gmail.com","subject":"Re[4]: git via http problem","fromName":"Алексей Егоров","fromEmail":"alekseyandni@mail.ru","sentAt":"2010-10-26T07:40:14Z","receivedAt":"2010-10-26T07:40:14Z","isPatch":false,"sender":{"key":"alekseyandni@mail.ru","avatar":null},"body":"\nI installed git-core git/1.7.1 from Squeeze branch compilled for lenny.\nNow when i type  git push upload master\n\nit request password twice (I entered right password test and test)\nPassword: \nPassword: \n\nand then shows:\nFetching remote heads...\n  refs/\n  refs/heads/\n  refs/tags/\nupdating 'refs/heads/master'\n  from 0000000000000000000000000000000000000000\n  to   aa36be4c3e46e619f73faa0cea071688cb380d25\n    sending 183322 objects\nLOCK HTTP error 412\nUnable to refresh lock for http://test@localhost/linter.git/info/refs\nLOCK HTTP error 412\nUnable to refresh lock for http://test@localhost/linter.git/info/refs\nLOCK HTTP error 412\nUnable to refresh lock for http://test@localhost/linter.git/refs/heads/master\nLOCK HTTP error 412\nUnable to refresh lock for http://test@localhost/linter.git/info/refs\nLOCK HTTP error 412\nUnable to refresh lock for http://test@localhost/linter.git/refs/heads/master\nUNLOCK HTTP error 400\nLOCK HTTP error 412\nUnable to refresh lock for http://test@localhost/linter.git/info/refs\nUpdating remote server info\nUNLOCK HTTP error 400\nfatal: git-http-push failed\n \nWhat is the problem can be?\n\n\n\nMon, 25 Oct 2010 22:20:05 +0800 письмо от Tay Ray Chuan <rctay89@gmail.com>:\n\n> Hi,\n> 2010/10/25 Алексей Егоров <alekseyandni@mail.ru>:\n> > I'm using git-core 1:1.5.6.5-3+lenny3.2\n> > I can see list of files using cadaver:\n> Probably a problem with git. Could you try updating your git installation?\n> -- \n> Cheers,\n> Ray Chuan\n"}]}