{"thread":{"id":"28875","subject":"git-receive-pack missing credentials ?","startedAt":"2011-11-07T15:33:14Z","lastAt":"2011-11-16T17:19:01Z","messageCount":6,"participants":["François Dagorn","Tay Ray Chuan","Geoff Mets"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"179039","messageId":"4EB7FA3A.8070908@univ-rennes1.fr","threadId":"28875","inReplyTo":null,"subject":"git-receive-pack missing credentials ?","fromName":"François Dagorn","fromEmail":"francois.dagorn@univ-rennes1.fr","sentAt":"2011-11-07T15:33:14Z","receivedAt":"2011-11-07T15:33:14Z","isPatch":false,"sender":{"key":"francois.dagorn@univ-rennes1.fr","avatar":null},"body":"Hello all,\n\nI'm experiencing problems when trying to set up a git repository\nmanaged by git-http-backend. I've done the following :\n\n- on the server side\n\n     cd /git\n     mkdir test13\n     git --bare init .\n         >>> Initialized empty Git repository in /git/test13\n\n     /usr/local/libexec/git-core/git-update-server-info\n     chown -R apache.apache .\n\n- on the client side\n\n    cd (project-directory)\n    $ git init\n    $ (add some files)\n    $ git add .\n    $ git commit -m 'Initial commit'\n    git push http://git.istic.smw.fr/test13 master\n\n        Username:\n        Password:\n        error: Cannot access URL http://git.istic.smw.fr/test13/, return code 22\n        fatal: git-http-push failed\n\n- apache acces_log\n\n 1) ip-address - metheuser [07/Nov/2011:16:17:31 +0100]\n    \"GET /test13/info/refs?service=git-     receive-pack HTTP/1.1\" 200 - \"-\" \"git/1.7.3.4\"\n 2) ip-address - metheuser [07/Nov/2011:16:17:32 +0100]\n    \"GET /test13/HEAD HTTP/1.1\" 200 23 \"-\" \"git/1.7.3.4\"\n 3) ip-address - - [07/Nov/2011:16:17:32 +0100]\n    \"PROPFIND /test13/ HTTP/1.1\" 401 492 \"-\" \"git/1.7.3.4\"\n\n- what sounds strange to me : the 2 firsts requests are generated by my client side\n  (wireshark used as a clue) but the third comes from the server side and the users\n  credentials are missed !\n\n- And also, I was hoping to use smart httpd and so the generated PROPFIND (DAV)\n  is amazing.\n\nAny help would be appreciated.\n\nCheers.\n\nFrançois Dagorn\nUniversité de rennes 1\nFrance\n"},{"id":"179050","messageId":"CALUzUxpiOoY3Qy0oXzgioBGkZyBF_vpHV3OHm-DWfChR9pPHHA@mail.gmail.com","threadId":"28875","inReplyTo":"4EB7FA3A.8070908@univ-rennes1.fr","subject":"Re: git-receive-pack missing credentials ?","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2011-11-07T17:02:04Z","receivedAt":"2011-11-07T17:02:04Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"On Mon, Nov 7, 2011 at 11:33 PM, François Dagorn\n<Francois.Dagorn@univ-rennes1.fr> wrote:\n> - on the client side\n>\n>    cd (project-directory)\n>    $ git init\n>    $ (add some files)\n>    $ git add .\n>    $ git commit -m 'Initial commit'\n>    git push http://git.istic.smw.fr/test13 master\n>\n>        Username:\n>        Password:\n>        error: Cannot access URL http://git.istic.smw.fr/test13/, return code 22\n>        fatal: git-http-push failed\n>\n> - apache acces_log\n>\n>  1) ip-address - metheuser [07/Nov/2011:16:17:31 +0100]\n>    \"GET /test13/info/refs?service=git-     receive-pack HTTP/1.1\" 200 - \"-\" \"git/1.7.3.4\"\n>  2) ip-address - metheuser [07/Nov/2011:16:17:32 +0100]\n>    \"GET /test13/HEAD HTTP/1.1\" 200 23 \"-\" \"git/1.7.3.4\"\n>  3) ip-address - - [07/Nov/2011:16:17:32 +0100]\n>    \"PROPFIND /test13/ HTTP/1.1\" 401 492 \"-\" \"git/1.7.3.4\"\n>\n> - what sounds strange to me : the 2 firsts requests are generated by my client side\n>  (wireshark used as a clue) but the third comes from the server side and the users\n>  credentials are missed !\n\nCan you update your git installation and try again? v1.7.3.4 sounds\npretty old (almost a year).\n\n-- \nCheers,\nRay Chuan\n"},{"id":"179127","messageId":"loom.20111108T091907-908@post.gmane.org","threadId":"28875","inReplyTo":"CALUzUxpiOoY3Qy0oXzgioBGkZyBF_vpHV3OHm-DWfChR9pPHHA@mail.gmail.com","subject":"Re: git-receive-pack missing credentials ?","fromName":"François Dagorn","fromEmail":"francois.dagorn@univ-rennes1.fr","sentAt":"2011-11-08T08:26:36Z","receivedAt":"2011-11-08T08:26:36Z","isPatch":false,"sender":{"key":"francois.dagorn@univ-rennes1.fr","avatar":null},"body":"Tay Ray Chuan <rctay89 <at> gmail.com> writes:\n\n> \n> On Mon, Nov 7, 2011 at 11:33 PM, François Dagorn\n\n> \n> Can you update your git installation and try again? v1.7.3.4 sounds\n> pretty old (almost a year).\n> \n\n\nOn the server side I'm using the last 1.7.7.2 and 1.7.3.4 is on\nthe client side used for testing. \n\nWhen apache is configured to serve without authentication, everything\nis ok !\n\nPS: I don't know where to report but there are mistakes (IMHO) in the\ngit-http-backend man page : the LocationMatch directive cannot be used \nto restrict access to \"receive-pack\" because \"receive-pack\" does not\ntake part of the URL but only in the QUERY_STRING.\n\n\nGET /test13/info/refs?service=git-receive-pack\n                    ****\n\nCheers.\n\nFrançois\n"},{"id":"179131","messageId":"loom.20111108T111508-171@post.gmane.org","threadId":"28875","inReplyTo":"loom.20111108T091907-908@post.gmane.org","subject":"Re: git-receive-pack missing credentials ?","fromName":"François Dagorn","fromEmail":"francois.dagorn@univ-rennes1.fr","sentAt":"2011-11-08T10:17:40Z","receivedAt":"2011-11-08T10:17:40Z","isPatch":false,"sender":{"key":"francois.dagorn@univ-rennes1.fr","avatar":null},"body":"François Dagorn <Francois.Dagorn <at> univ-rennes1.fr> writes:\n\nWhat happens : git-http-backend is not called at all !\n\nScriptAlias /git/ /usr/local/libexec/git-core/git-httpd-backend/\n\nis not relevant, I don't know why.\n\nFrançois\n"},{"id":"179132","messageId":"loom.20111108T114722-414@post.gmane.org","threadId":"28875","inReplyTo":"4EB7FA3A.8070908@univ-rennes1.fr","subject":"Re: git-receive-pack missing credentials ?","fromName":"François Dagorn","fromEmail":"francois.dagorn@univ-rennes1.fr","sentAt":"2011-11-08T10:50:34Z","receivedAt":"2011-11-08T10:50:34Z","isPatch":false,"sender":{"key":"francois.dagorn@univ-rennes1.fr","avatar":null},"body":"It was an ExecCGI issue :\n\nwhen adding \"Options ExecCGI\" on the\ndirectory hosting git repositories, everything was ok.\n\nFrançois\n"},{"id":"179594","messageId":"1321463941686-7001142.post@n2.nabble.com","threadId":"28875","inReplyTo":"loom.20111108T114722-414@post.gmane.org","subject":"Re: git-receive-pack missing credentials ?","fromName":"Geoff Mets","fromEmail":"geoff.metselaar@gmail.com","sentAt":"2011-11-16T17:19:01Z","receivedAt":"2011-11-16T17:19:01Z","isPatch":false,"sender":{"key":"geoff.metselaar@gmail.com","avatar":null},"body":"Hi Francois\n\nReading this thread mirrored the exact problems I'm seeing but sadly your\nsolution adding +ExecCGI didn't fix it.\n\nI'm guessing, like you, it's probably an apache config issue. Could you\nshare your working apache.conf\n\nMany thanks ..............Geoff\n\n--\nView this message in context: http://git.661346.n2.nabble.com/git-receive-pack-missing-credentials-tp6970872p7001142.html\nSent from the git mailing list archive at Nabble.com.\n"}]}