From: Michele Marcionelli <michele.marcionelli@math.ethz.ch>
To: Tay Ray Chuan <rctay89@gmail.com>
Cc: <git@vger.kernel.org>
Subject: Re: push problem with anonymous access
Date: Mon, 4 Jul 2011 09:13:10 +0200 [thread overview]
Message-ID: <FCA17A33-EC1F-4649-9047-D8D56BE11D46@math.ethz.ch> (raw)
Hi Ray
I tried as you suggested (even if to clone I don't need a password):
$ git clone https://michele:******@git.math.ethz.ch/git/math/public_test.git
==>
Cloning into public_test...
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 15 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (15/15), done.
And in the apache logs:
129.132.147.190 - - [04/Jul/2011:08:14:40 +0200] "GET /git/math/public_test.git/info/refs?service=git-upload-pack HTTP/1.1" 200 264 "-" "git/1.7.5.4"
129.132.147.190 - - [04/Jul/2011:08:14:40 +0200] "POST /git/math/public_test.git/git-upload-pack HTTP/1.1" 200 1688 "-" "git/1.7.5.4"
But the when I push (and here is my problem):
$ cd public_test
$ echo foo >> TODO
$ git commit TODO -m bar
$ git push
==>
error: Cannot access URL https://michele:******@git.math.ethz.ch/git/math/public_test.git/, return code 22
fatal: git-http-push failed
I get following in the apache logs:
==> /var/log/httpd/git-ssl.access_log <==
129.132.147.190 - - [04/Jul/2011:08:17:45 +0200] "GET /git/math/public_test.git/info/refs?service=git-receive-pack HTTP/1.1" 403 - "-" "git/1.7.5.4"
129.132.147.190 - - [04/Jul/2011:08:17:45 +0200] "GET /git/math/public_test.git/info/refs HTTP/1.1" 200 59 "-" "git/1.7.5.4"
==> /var/log/httpd/git-ssl.error_log <==
[Mon Jul 04 08:17:45 2011] [error] [client 129.132.147.190] Service not enabled: 'receive-pack'
==> /var/log/httpd/git-ssl.access_log <==
129.132.147.190 - - [04/Jul/2011:08:17:45 +0200] "GET /git/math/public_test.git/HEAD HTTP/1.1" 200 23 "-" "git/1.7.5.4"
129.132.147.190 - - [04/Jul/2011:08:17:46 +0200] "PROPFIND /git/math/public_test.git/ HTTP/1.1" 404 - "-" "git/1.7.5.4"
==> /var/log/httpd/git-ssl.error_log <==
[Mon Jul 04 08:17:46 2011] [error] [client 129.132.147.190] Request not supported: '/var/www/vhosts/git/root/math/public_test.git/'
The problem that I see is that in the configuration (see also the "man git-http-backend") you have this
<LocationMatch "^/git/.*/git-receive-pack$">
and "git push" do following request:
/git/whatever/info/refs?service=git-receive-pack
which is not matched by the "LocationMarch".
Thx, Michele
PS: I'm not using WebDAV, since it is not documented in the man page.
On Jul 2, 2011, at 17:19 , Tay Ray Chuan wrote:
> On Sat, Jul 2, 2011 at 6:32 AM, Michele Marcionelli
> <michele.marcionelli <at> math.ethz.ch> wrote:
>> ==> /var/log/httpd/git-ssl.access_log <==
>> 85.1.201.213 - - [02/Jul/2011:00:13:32 +0200] "GET
> /git/math/public_test.git/info/refs?service=git-receive-pack HTTP/1.1" 403 - "-" "git/1.7.5.4"
>
> Try
>
> $ git clone https://<user>:<pwd>@git.math.ethz.ch/git/math/public_test.git
>
> or put it in ~/.netrc.
>
> --
> Cheers,
> Ray Chuan
--
Michele Marcionelli · mm@ethz.ch · +41 44 632 6193
* Please consider the environment before printing
next reply other threads:[~2011-07-04 7:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-04 7:13 Michele Marcionelli [this message]
2011-07-04 10:02 ` push problem with anonymous access Michele Marcionelli
-- strict thread matches above, loose matches on Subject: below --
2011-07-01 22:32 Michele Marcionelli
2011-07-02 15:19 ` Tay Ray Chuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=FCA17A33-EC1F-4649-9047-D8D56BE11D46@math.ethz.ch \
--to=michele.marcionelli@math.ethz.ch \
--cc=git@vger.kernel.org \
--cc=rctay89@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).