HTTP Error 500 while pushing to a sub repository

View: New views
3 Messages — Rating Filter:   Alert me  

HTTP Error 500 while pushing to a sub repository

by William Ledoux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a HTTP Error 500: Internal Server Error when I try to push a sub-repository from my pc to my server.
The arborescence is as follow:

@Projets is a hg repository, and @Projets/toto is also a repository, defined as a sub repository in the .hgsub file.
Both repositories have in their .hg folder a file hgrc containing "allow_push:*"

I can push to @Projets modifications, but it does not push the subrepositories.
When I try to push toto in debug mode, i get the following:

Q:\@Projets\toto> hg push --debug https://login:pass@.hg.server.com/@Projets/toto
usinghttps://login:pass/%40Projets/toto
http auth: user login, password ****
sending between command
http auth: user login, password ****
pushing to https://login:***@hg.server.com/@Projets/toto
sending capabilities command
http auth: user login, password ****
capabilities: unbundle=HG10GZ,HG10BZ,HG10UN branchmap lookup changegroupsubset
sending heads command
http auth: user login, password ****
searching for changes
common changesets up to 31a8c410900f
sending branchmap command
http auth: user login, password ****
2 changesets found
list of changesets:
d4ac5db679bd57c7abe8957c13e56e185af5fb94
4a782cb27c5fe613217055da043b6de5c1a11ea8
sending unbundle command
sending 2996 bytes
http auth: user login, password ****
abort: HTTP Error 500: Internal Server Error

Q:\@Projets\toto>

On server side, nothing appear in the error log, and the access log corresponding to the previous command is:

/var/log/apache2/>tail -n0 -f hg.server.com-access.log
"GET /%40Projets/toto?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" 401 566 "-" "mercurial/proto-1.0"
"GET /%40Projets/toto?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" 200 1 "-" "mercurial/proto-1.0"
"GET /%40Projets/toto?cmd=capabilities HTTP/1.1" 401 566 "-" "mercurial/proto-1.0"
"GET /%40Projets/toto?cmd=capabilities HTTP/1.1" 200 64 "-" "mercurial/proto-1.0"
"GET /%40Projets/toto?cmd=heads HTTP/1.1" 401 566 "-" "mercurial/proto-1.0"
"GET /%40Projets/toto?cmd=heads HTTP/1.1" 200 41 "-" "mercurial/proto-1.0"
"GET /%40Projets/toto?cmd=branchmap HTTP/1.1" 401 566 "-" "mercurial/proto-1.0"
"GET /%40Projets/toto?cmd=branchmap HTTP/1.1" 200 48 "-" "mercurial/proto-1.0"
"POST /%40Projets/toto?cmd=unbundle&heads=31a8c410900ff638fbb33f52f50054ad2a1c5920 HTTP/1.1" 401 566 "-" "mercurial/proto-1.0"
"POST /%40Projets/toto?cmd=unbundle&heads=31a8c410900ff638fbb33f52f50054ad2a1c5920 HTTP/1.1" 500 36 "-" "mercurial/proto-1.0"

Do you have any idea what's going on ?
Maybe I am doing something i should not..

Thank you
William.

_______________________________________________
Mercurial mailing list
Mercurial@...
http://selenic.com/mailman/listinfo/mercurial

Re: HTTP Error 500 while pushing to a sub repository

by Benoit Boissinot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 23, 2009 at 07:45:50PM +0200, William Ledoux wrote:
>
> I can push to @Projets modifications, but it does not push the
> subrepositories.
> When I try to push toto in debug mode, i get the following:
>
[snip]

> http auth: user login, password ****
> abort: HTTP Error 500: Internal Server Error
>

Without a traceback from the server side, it's hard to debug. Maybe you
could try to launch hg serve and push to it, see if it prints anything?

regards,

Benoit

--
:wq
_______________________________________________
Mercurial mailing list
Mercurial@...
http://selenic.com/mailman/listinfo/mercurial

Re: HTTP Error 500 while pushing to a sub repository

by Marcin Kasperski-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I have a HTTP Error 500: Internal Server Error when I try to push a
> sub-repository from my pc to my server.

Are you sure there are no permission problems? I saw HTTP 500 while
trying to push to the directory owned by root (instead of the user on
which hgweb is running)...

_______________________________________________
Mercurial mailing list
Mercurial@...
http://selenic.com/mailman/listinfo/mercurial