git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git via http problem
@ 2010-10-25 10:34 Aleksey Egorov
  2010-10-25 12:39 ` Tay Ray Chuan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Aleksey Egorov @ 2010-10-25 10:34 UTC (permalink / raw)
  To: git

Good day
I have installed apache2, Webdav and git-core on my Debian.
I added next information to the apache conf
        Alias /linter.git /var/www/linter.git
<Location /linter.git>
DAV On
AuthType Basic
Authname "localhost"
AuthUserFile /etc/apache2/users/pwd
Require valid-user
</Location>
pwd file was created by htpasswd, wich contain user test and password test.
my home/.netrc file contains
       machine localhost
       login test
       password test
And then when I type
       git push upload master
I see next errors
      error: Cannot access URL http://localhost/linter.git/, return code 22
      error: failed to push some refs to 'http://localhost/linter.git/'
In browaser all is ok, when I type http://localhost/linter.git/, user test and
password test, it shows directory on the server.
If I change apache conf to
      Alias /linter.git /var/www/linter.git
<Location /linter.git>
DAV On
AuthType Basic
Authname "localhost"
</Location>
git starts normal:
     git push upload master
     Fetching remote heads...
     refs/
     refs/heads/
     refs/tags/
     updating 'refs/heads/master'
     from 0000000000000000000000000000000000000000
     to aa36be4c3e46e619f73faa0cea071688cb380d25

What is the problem can be?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git via http problem
  2010-10-25 10:34 git via http problem Aleksey Egorov
@ 2010-10-25 12:39 ` Tay Ray Chuan
       [not found] ` <AANLkTiJ=geegYAXnHmNONw8UeocePTw2EMw4frMbQZA@mail.gmail.com>
       [not found] ` <AANLkTin95znfHbPwCs25-2CFdf6upQpkgR1+uM+Sp9u@mail.gmail.com>
  2 siblings, 0 replies; 5+ messages in thread
From: Tay Ray Chuan @ 2010-10-25 12:39 UTC (permalink / raw)
  To: Aleksey Egorov; +Cc: git

Hi,

On Mon, Oct 25, 2010 at 6:34 PM, Aleksey Egorov <alekseyandni@mail.ru> wrote:
> If I change apache conf to
>      Alias /linter.git /var/www/linter.git
> <Location /linter.git>
> DAV On
> AuthType Basic
> Authname "localhost"
> </Location>

I noticed that you left out AuthUserFile here.

Could it be that you didn't load mod_authn_file? (wild guess)

Also, what version of git are you running? I'm guessing it's an
authentication problem.



-- 
Cheers,
Ray Chuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re[2]: git via http problem
       [not found] ` <AANLkTiJ=geegYAXnHmNONw8UeocePTw2EMw4frMbQZA@mail.gmail.com>
@ 2010-10-25 13:12   ` Алексей Егоров
  2010-10-25 14:20     ` Tay Ray Chuan
  0 siblings, 1 reply; 5+ messages in thread
From: Алексей Егоров @ 2010-10-25 13:12 UTC (permalink / raw)
  To: Tay Ray Chuan; +Cc: git


I'm using git-core 1:1.5.6.5-3+lenny3.2
I can see list of files using cadaver: 
cadaver http://test@localhost/linter.git
Authentication required for localhost on server `localhost':
Username: test
Password: 
dav:/linter.git/> ls
Listing collection `/linter.git/': succeeded.
Coll:   branches                               0  Окт 25 12:45
Coll:   hooks                                  0  Окт 25 12:45
Coll:   info                                   0  Окт 25 12:45
Coll:   objects                                0  Окт 25 12:45
Coll:   refs                                   0  Окт 25 12:45
        HEAD                                  23  Окт 25 12:45
        config                                66  Окт 25 12:45
        description                           58  Окт 25 12:45
dav:/linter.git/> quit
Connection to `localhost' closed.

In /etc/apache2/mods-enabled   I see @authn_file.load  with the text
 LoadModule authn_file_module /usr/lib/apache2/modules/mod_authn_file.so


Mon, 25 Oct 2010 20:39:44 +0800 письмо от Tay Ray Chuan <rctay89@gmail.com>:

> Hi,
> On Mon, Oct 25, 2010 at 6:34 PM, Aleksey Egorov <alekseyandni@mail.ru> wrote:
> > If I change apache conf to
> > ? ? ?Alias /linter.git /var/www/linter.git
> > <Location /linter.git>
> > DAV On
> > AuthType Basic
> > Authname "localhost"
> > </Location>
> I noticed that you left out AuthUserFile here.
> Could it be that you didn't load mod_authn_file? (wild guess)
> Also, what version of git are you running? I'm guessing it's an
> authentication problem.
> -- 
> Cheers,
> Ray Chuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re[2]: git via http problem
  2010-10-25 13:12   ` Re[2]: " Алексей Егоров
@ 2010-10-25 14:20     ` Tay Ray Chuan
  0 siblings, 0 replies; 5+ messages in thread
From: Tay Ray Chuan @ 2010-10-25 14:20 UTC (permalink / raw)
  To: Алексей Егоров
  Cc: git

Hi,

2010/10/25 Алексей Егоров <alekseyandni@mail.ru>:
> I'm using git-core 1:1.5.6.5-3+lenny3.2
> I can see list of files using cadaver:

Probably a problem with git. Could you try updating your git installation?

-- 
Cheers,
Ray Chuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re[4]: git via http problem
       [not found] ` <AANLkTin95znfHbPwCs25-2CFdf6upQpkgR1+uM+Sp9u@mail.gmail.com>
@ 2010-10-26  7:40   ` Алексей Егоров
  0 siblings, 0 replies; 5+ messages in thread
From: Алексей Егоров @ 2010-10-26  7:40 UTC (permalink / raw)
  To: Tay Ray Chuan; +Cc: git


I installed git-core git/1.7.1 from Squeeze branch compilled for lenny.
Now when i type  git push upload master

it request password twice (I entered right password test and test)
Password: 
Password: 

and then shows:
Fetching remote heads...
  refs/
  refs/heads/
  refs/tags/
updating 'refs/heads/master'
  from 0000000000000000000000000000000000000000
  to   aa36be4c3e46e619f73faa0cea071688cb380d25
    sending 183322 objects
LOCK HTTP error 412
Unable to refresh lock for http://test@localhost/linter.git/info/refs
LOCK HTTP error 412
Unable to refresh lock for http://test@localhost/linter.git/info/refs
LOCK HTTP error 412
Unable to refresh lock for http://test@localhost/linter.git/refs/heads/master
LOCK HTTP error 412
Unable to refresh lock for http://test@localhost/linter.git/info/refs
LOCK HTTP error 412
Unable to refresh lock for http://test@localhost/linter.git/refs/heads/master
UNLOCK HTTP error 400
LOCK HTTP error 412
Unable to refresh lock for http://test@localhost/linter.git/info/refs
Updating remote server info
UNLOCK HTTP error 400
fatal: git-http-push failed
 
What is the problem can be?



Mon, 25 Oct 2010 22:20:05 +0800 письмо от Tay Ray Chuan <rctay89@gmail.com>:

> Hi,
> 2010/10/25 Алексей Егоров <alekseyandni@mail.ru>:
> > I'm using git-core 1:1.5.6.5-3+lenny3.2
> > I can see list of files using cadaver:
> Probably a problem with git. Could you try updating your git installation?
> -- 
> Cheers,
> Ray Chuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-26  7:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-25 10:34 git via http problem Aleksey Egorov
2010-10-25 12:39 ` Tay Ray Chuan
     [not found] ` <AANLkTiJ=geegYAXnHmNONw8UeocePTw2EMw4frMbQZA@mail.gmail.com>
2010-10-25 13:12   ` Re[2]: " Алексей Егоров
2010-10-25 14:20     ` Tay Ray Chuan
     [not found] ` <AANLkTin95znfHbPwCs25-2CFdf6upQpkgR1+uM+Sp9u@mail.gmail.com>
2010-10-26  7:40   ` Re[4]: " Алексей Егоров

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).