On 11/17/06, <b class="gmail_sendername">Benoit Boissinot</b> <<a href="mailto:bboissin@gmail.com">bboissin@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 11/17/06, Mathieu Clabaut <<a href="mailto:mathieu.clabaut@gmail.com">mathieu.clabaut@gmail.com</a>> wrote:<br>> On 11/17/06, Benoit Boissinot <<a href="mailto:bboissin@gmail.com">bboissin@gmail.com</a>> wrote:
<br>> ><br>> > > I tried to do an hg clone locally on the server, and it worked.<br>> > > The problem is reproducible on the distant machine.<br>> > > On the server side a "hg clone <a href="http://localhost/hg/c099">
http://localhost/hg/c099</a> " failed too.<br>> > ><br>> > Sounds like a apache (or http server problem) can you test with hg serve ?<br>><br>><br>> Good guess !<br>> It works like a charm with hg serve (at least for the clone, didn't try the
<br>> pull)...<br>> Any insight on what may cause the problem on apache ?<br><br>No idea, I guess you should try wireshark/ethereal to see if you can<br>spot a difference between the streams, maybe hg is tracebacking due a
<br>permission problem and corrupting the stream.</blockquote><div><br>Yes !<br>Following the TCP streams gives me a backtrace due to :<br> OError: [Errno 13] Permission denied....<br><br> Good analysis. Thank you very much for your help !
<br><br> I think it may not be an uncommon error. Wouldn't be good, either to have a mean to log the backtrace on the server side, or better, when RevlogError(_("consistency error adding group")) is raised, have a look at the incoming data to check if the client didn't get a backtrace, and if it is the case then inform the user ?
<br> Would it make sense to recover from a faulty addgroup, analyse the chunk used, send a message to the user if it contains an http backtrace and reraise the exception ?<br><br>-mathieu<br><br> <br></div></div>