threads / discuss / 5184

setting up a git repo on apache

Subject: setting up a git repo on apache

## tl;dr

6 messages between Aug 9, 2006 and Aug 10, 2006.

replies: 5people: 3as markdown or json

Alan Larkin· Aug 9, 2006, 15:58 UTC · lore
New user ... Hi.

I realise that this is really an apache question, but Im not getting any help from their mailing lists and figure that there must be someone here whos done this.

Can someone please help me get a GIT repo running on Apache 2. Specifically my problem is with DAV.

$ git push http://localhost:/webdav/git/myproj master
Error: no DAV locking support on remote repo

I have dav_fs.conf, dav_fs.load, and dav.load in mods-enabled. They load the modules and set

DAVLockDB /var/lock/apache2/DAV.lock
Apache owns and has full access to that directory.

I have removed all .htaccess files below /var/www/webdav. I am not using any form of authentication. I have tried with and without aliases for the repo directory. I have tried setting DAV on for /var/www/webdav/git, and /var/www/webdav/git/myproj.

Its always the same. No DAV locking support.

If could help or even point me to some appropriate documentation (Ive looked and looked and cant find any) Id appreciate it.

Thanks.
Johannes Schindelin· Aug 9, 2006, 16:35 UTC · re: Alan Larkin · lore

Re: setting up a git repo on apache

Hi,
On Wed, 9 Aug 2006, Alan Larkin wrote:
> $ git push http://localhost:/webdav/git/myproj master
> Error: no DAV locking support on remote repo
What do the access_log and the error_log say about this?

It could also be that you have a "Require valid-user" somewhere in there by mistake.

Further, you might want to check if it works _with_ authentication (I never tried without, and I am not sure if it should be allowed to begin with).

There is a recent thread by Junio, Rutger and me, which might help you:
http://thread.gmane.org/gmane.comp.version-control.git/24816/focus=24861

Hth, Dscho

Alan Larkin· Aug 9, 2006, 17:01 UTC · re: Johannes Schindelin · lore

Re: setting up a git repo on apache

Johannes Schindelin wrote:
Show 25 quoted lines
> Hi,
> 
> On Wed, 9 Aug 2006, Alan Larkin wrote:
> 
>> $ git push http://localhost:/webdav/git/myproj master
>> Error: no DAV locking support on remote repo
> 
> What do the access_log and the error_log say about this?
> 
> It could also be that you have a "Require valid-user" somewhere in there 
> by mistake.
> 
> Further, you might want to check if it works _with_ authentication (I 
> never tried without, and I am not sure if it should be allowed to begin 
> with).
> 
> There is a recent thread by Junio, Rutger and me, which might help you:
> 
> http://thread.gmane.org/gmane.comp.version-control.git/24816/focus=24861
> 
> Hth,
> Dscho
> 
> 
> 

I initially had authentication in place (which was working insofar as I couldnt browse the repo without logging in) but I removed it to simplify the process of tracking down the DAV problem. I have also removed all .htaccess files so nothing can be overriding apache2.conf and that only contains:

<Directory /var/www/webdav>
	Order allow,deny
        Allow from localhost
        DAV on
</Directory>

Ill look into that previous thread. Apologies for not finding it before posting.

Alan Larkin· Aug 10, 2006, 09:43 UTC · re: Johannes Schindelin · lore

Re: setting up a git repo on apache

Johannes Schindelin wrote:
Show 25 quoted lines
> Hi,
> 
> On Wed, 9 Aug 2006, Alan Larkin wrote:
> 
>> $ git push http://localhost:/webdav/git/myproj master
>> Error: no DAV locking support on remote repo
> 
> What do the access_log and the error_log say about this?
> 
> It could also be that you have a "Require valid-user" somewhere in there 
> by mistake.
> 
> Further, you might want to check if it works _with_ authentication (I 
> never tried without, and I am not sure if it should be allowed to begin 
> with).
> 
> There is a recent thread by Junio, Rutger and me, which might help you:
> 
> http://thread.gmane.org/gmane.comp.version-control.git/24816/focus=24861
> 
> Hth,
> Dscho
> 
> 
> 

For the record, I followed the steps in the above linked thread as closely as possible but the problem persists. It did however contain the suggestion to use litmus to test the webdav and thats proving curious insofar as several tests are failing, but in a not entirely reproducible way. I mean, on one test I might see

14. cond_put.............. FAIL (PUT conditional on lock and etag
failed: 412 Precondition Failed)
15. fail_cond_put......... pass
16. cond_put_with_not..... pass
17. cond_put_corrupt_token WARNING: PUT failed with 400 not 423
    ...................... pass (with 1 warning)
18. complex_cond_put...... FAIL (PUT with complex conditional failed:
412 Precondition Failed)
and if run again I might see
14. cond_put.............. pass
15. fail_cond_put......... pass
16. cond_put_with_not..... pass
17. cond_put_corrupt_token WARNING: PUT failed with 400 not 423
    ...................... pass (with 1 warning)
18. complex_cond_put...... FAIL (PUT with complex conditional failed:
412 Precondition Failed)
and on another a different combination.

But this has no real place here, so I shall off and try find the solution elsewhere and post back if its relevant.

Thanks for the help.
Rutger Nijlunsing· Aug 9, 2006, 16:43 UTC · re: Alan Larkin · lore

Re: setting up a git repo on apache

On Wed, Aug 09, 2006 at 04:58:03PM +0100, Alan Larkin wrote:
Show 11 quoted lines
> New user ... Hi.
> 
> I realise that this is really an apache question, but Im not getting any
> help from their mailing lists and figure that there must be someone here
> whos done this.
> 
> Can someone please help me get a GIT repo running on Apache 2.
> Specifically my problem is with DAV.
> 
> $ git push http://localhost:/webdav/git/myproj master
> Error: no DAV locking support on remote repo
This 'localhost:' is a typo, right?
(just to be sure)
-- 
Rutger Nijlunsing ---------------------------------- eludias ed dse.nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------
Alan Larkin· Aug 9, 2006, 17:02 UTC · re: Rutger Nijlunsing · lore

Re: setting up a git repo on apache

Rutger Nijlunsing wrote:
Show 18 quoted lines
> On Wed, Aug 09, 2006 at 04:58:03PM +0100, Alan Larkin wrote:
>> New user ... Hi.
>>
>> I realise that this is really an apache question, but Im not getting any
>> help from their mailing lists and figure that there must be someone here
>> whos done this.
>>
>> Can someone please help me get a GIT repo running on Apache 2.
>> Specifically my problem is with DAV.
>>
>> $ git push http://localhost:/webdav/git/myproj master
>> Error: no DAV locking support on remote repo
> 
> This 'localhost:' is a typo, right?
> 
> (just to be sure)
> 
> 

Um ... it wasnt actually. I was copying this line from "A git core tutorial for developers":

$ git push <public-host>:/path/to/my-git.git master

Although I did think it curious enough to try it with and without the colon (it is the colon youre questioning right?).

← back to recent threads