From: Davide Baldini <baldiniebaldini@gmail.com>
To: git@vger.kernel.org
Subject: Fail to push over HTTP with MySQL authentication (Apache2)
Date: Sat, 29 Dec 2012 20:54:32 +0100 [thread overview]
Message-ID: <50DF4A78.5000206@gmail.com> (raw)
Hi,
I'm not able to setup a public Git repository over plain HTTP with
MySQL authentication.
Both HTTP and authentication are provided by Apache2.
SETUP:
-----
This setup is performed on Debian 6.0.4.
Apache2 (v. 2.2), with modules:
auth_mysql
WebDAV
Git (v. 1.7.8.3)
Git repository location:
local, for webserver: /var/www/public/GT_rulesets/GT00.git
public, for Git: http://greatturn.org:8081/GT00.git
Git repository has been configured as:
cd /var/www/public/GT_rulesets/GT00.git
git init --bare
mv hooks/post-update.sample hooks/post-update
git update server-info
chmode 777 /var/www/public/GT_rulesets/GT00.git # for testing.
FACTS:
-----
The Apache side of my setup seems to work:
_ HTTP, MySQL authentication:
I point Iceweasel to http://greatturn.org:8081/ .
It asks for authentication; I authenticate with a username/
password pair taken from MySQL database (which doesn't exist as
a system user); It works, and I can see all the content of
the git repository "GT00.git".
_ WebDAV:
I point Konqueror to webdav://greatturn.org:8081/ .
Works exactly as previous point.
_ Git:
Git can fetch the repository without problems:
git clone http://username:password@greatturn.org:8081/GT00.git
Pushing the locally fetched repository back to the remote one doesn't
work:
"git push http://greatturn.org:8081/GT00.git master"
asks for username and password:
> Username for 'greatturn.org:8081':
> Password for 'greatturn.org:8081':
I enter my credentials, then git outputs the following and exits:
> error: Cannot access URL http://greatturn.org:8081/GT00.git/,
return code 22
> fatal: git-http-push failed
On Apache's access.log, git produces all and no more than the
following:
> 87.19.240.177 - - [29/Dec/2012:16:43:22 +0100] "GET /GT00.git
/info/refs?service=git-receive-pack HTTP/1.1" 401 767 "-"
"git/1.7.8.3"
> 87.19.240.177 - - [29/Dec/2012:16:43:26 +0100] "GET
/GT00.git/info/refs?service=git-receive-pack HTTP/1.1" 401 767 "-"
"git/1.7.8.3"
> 87.19.240.177 - davide [29/Dec/2012:16:43:26 +0100] "GET
/GT00.git/info/refs?service=git-receive-pack HTTP/1.1" 200 233 "-"
"git/1.7.8.3"
> 87.19.240.177 - davide [29/Dec/2012:16:43:26 +0100] "GET
/GT00.git/HEAD HTTP/1.1" 200 258 "-" "git/1.7.8.3"
> 87.19.240.177 - - [29/Dec/2012:16:43:26 +0100] "PROPFIND
/GT00.git/ HTTP/1.1" 401 767 "-" "git/1.7.8.3"
next reply other threads:[~2012-12-29 20:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-29 19:54 Davide Baldini [this message]
2012-12-29 21:01 ` Fail to push over HTTP with MySQL authentication (Apache2) Jeff King
2012-12-30 0:27 ` Davide Baldini
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=50DF4A78.5000206@gmail.com \
--to=baldiniebaldini@gmail.com \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.