git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git push question.. error: Unable to lock remote branch refs/heads/master

From
ASaaron smith <beingthexemplarylists@gmail.com>
Date
Dec 31, 2008, 08:17 UTC
Message-ID
<d7ac1a680812310017o4316b719qae5af166a95d9940@mail.gmail.com>
Hey All,

First, i've looked all over for a solution to this, and can't seem to get it figured out. Here's my setup:

centeos apache 2 webdav git 1.6.1

I went through most of the git config over http text file instructions (http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt), just for the quick and dirty. Here's what I have in my http conf:

<VirtualHost *:80>
    ServerName www.codeendeavor.com
    DocumentRoot /var/www/vhosts/codeendeavor/
    DavLockDB /var/logs/httpd/webdav/davlock
    <Location "/guttershark.git/">
      DAV on
    </Location>
</VirtualHost>

So, I have a bare git repo here: /var/www/vhosts/codeendeavor/guttershark.git/ (I used: mkdir guttershark.git; cd guttershark.git; git --bare init). And I've turned on webdav for that location.

I created the DavLockDB directory: mkdir /var/logs/httpd/webdav/davlock

And I've updated permissions on the git repo, and the webdav lock to apache:apache. And when it still didn't work, I updated the permissions on the git repo to 777, and on the davlock.

I'm not sure what would be going on. I searched through the servers' empty git, and my local git repo for a lock file. But don't see anything.

I don't have authentication on it yet so if you want to try and push to it, feel free.

After all that. here is how I interact with it:

$git push origin master Unable to lock remote branch refs/heads/master error: failed to push some refs to 'http://codeendeavor.com/guttershark.git/'

Anyone have any idea?
Thanks a bunch!
Next: aaron smith
Message 1 of 2 in “git push question.. error: Unable to lock remote branch refs/heads/master”
  1. aaron smithDec 31, 2008
  2. aaron smithDec 31, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.