Looking for solution to: HTTP Error 500: Permission denied: .hg/store/lock when pushing

Paul Boddie paul.boddie at biotek.uio.no
Thu Jul 15 18:22:45 UTC 2010


jshill4 wrote:
> This seems to be a problem that a lot of people are having but there don't
> seem to be any answers.
>   

Doesn't the Wiki offer any help?

http://mercurial.selenic.com/wiki/PublishingRepositories#Troubleshooting

> I have a test repository called test_repo and hgweb.cgi in the same
> directory, both are accessible to the web servers user and test_repo is is
> writable.
>
> the contents of test_repo/.hg/hgrc is:
>
> [web]
> allow_push = *
>
> [trusted]
> users = *
> groups = *
>
> When I attempt to push I get:
>
> http authorization required
> realm: Mercurial repositories
> user: jshill4
> password: 
> pushing to https://****/test/hgweb.cgi
> searching for changes
> abort: HTTP Error 500: Permission denied: .hg/store/lock
>
> What's going on?  Another post said that this might have something to do
> with selinux but I don't know if I'm using that or not.
>   

What are the permissions on the .hg directory and its contents? I've 
seen this error myself, but I'm quite sure that it was caused by a 
repository being owned by one user and not writable by the Web server 
user, where the Web server user actually has to be able to create the 
lock file in the .hg/store directory.

Paul



More information about the Mercurial mailing list