can pull - cannot push - with or without hgrc(?) auth issues

John Stean john.stean at lane15.co.uk
Thu Nov 4 11:37:31 CDT 2010


Hello Paul, thanks for taking a look at this.

I have looked at the 
http://mercurial.selenic.com/wiki/PublishingRepositories#Allowing_push 
thanks, I have
  [web]

allow_push = *

I've also tried to add the apache uname passwords to an [auth] section, this makes no difference.

I am just reconfiguring apache to create a separate log for the repo 
domain - in the meantime can you tell me, is an hgrc file mandatory? are 
there any mandatory sections?
Just wondering because without an hgrc file the push's get to the same 
stage, just that with an hgrc file I get the http 500 error, without one 
I get authorization failed.




On 04/11/2010 16:15, Paul Boddie wrote:
> John Stean wrote:
>> Hello, thanks for the help so far on this. I am so close to having 
>> this set up, but having one last issue.
>>
>> I can pull from my new repository over https, and form this I have to 
>> provide uname and password that I set up using htpasswd.
>
> This would suggest that the Apache mechanisms are working.
>
> [...]
>
>> WITH hgrc the only difference is the final auth returns:
>> abort: HTTP Error 500: Internal error
>>
>> I have tried no hgrc file
>> an hgrc file with and without [path] (I only need [path] section for 
>> a pull dont i?)
>> I have tried adding the https uname password in an [auth] section, no 
>> change
>
> The username and password should only be of concern to Apache, since 
> it is the Web server which controls the authentication.
>
>> Whenever I have the hgrc file, it throws a 500 response for the last 
>> auth, and without the hgrc file it just returns authorization failed.
>>
>> Can you offer any help here please? I am wondering if this is an 
>> apache setup issue rather than mercurial?
>
> With 500 errors, you're almost certainly advised to check the Apache 
> error.log file for specific problems. I guess you've read the 
> following section of the documentation...
>
> http://mercurial.selenic.com/wiki/PublishingRepositories#Allowing_push
>
> Paul
>
>



More information about the Mercurial mailing list