简体   繁体   中英

hg not able to update via proxy

i am trying to clone a repositiry which is sitting behind a proxy

hg --config http_proxy.host=ipaddress:3128 pull "http://servername:8000"

abort: HTTP Error 503: Service Unavailable

on the proxy server(squid) i can see that it does connect

1315217673.018    102 ipaddress TCP_MISS/503 1601 GET http://servername:8000/? - DIRECT/- text/html

I started the hg server with these commands within the project directory:

/usr/local/bin/hg serve

listening at http://servername:8000/ (bound to *:8000)

Any idea why mercurial fails???

fixed using

hg clone ssh://user@servername//var/www/project projectname

Encountering a similar error message, I resolved it by simply restarting my Apache. My mercurial is configured to start when I start my Apache service. Code:

apache2ctl restart

我刚才有类似的错误,对我而言,我最终指向错误的代理服务器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM