Cloning using Tortoise-Hg abort in middle[command returned code 255]

五迷三道 提交于 2019-12-10 23:33:32

问题


I am using Tortoise-Hg for cloning a fork from CodePlex and cloning stops in the middle of the process. I have tried it more than 6 times and it does have a problem.

I am using the visual client of Tortoise-Hg and I gave the source as https://hg.codeplex.com/forks/xxx/xxxx and selected a destination

First used compressed method

This is what appeared in the command prompt

 % hg clone --verbose -- https://hg.codeplex.com/forks/xxx/xxxx xxxx

But the process start quite fast and then it get hung up.

requesting all changes
adding changesets[Happen Fast]
adding manifests[Happen Fast]
adding file changes[Hangs in the middle]
transaction abort!
rollback completed
abort: stream ended unexpectedly (got 147721 bytes, expected 422805)
[command returned code 255 Sun Mar 31 15:52:26 2013]

Then I tried uncompressed method

 % hg clone --uncompressed --verbose -- https://hg.codeplex.com/forks/xxx/xxxx xxxx

That also stops in the middle of the process.

streaming all changes
4033 files to transfer, 37.2 MB of data
abort: unexpected response from remote server: empty string
[command returned code 255 Sun Mar 31 15:22:44 2013]

I tried it the 7th time and It went far more than previous tries but got more bytes got 74673 bytes, expected 256973

What is the wrong with this, I have used same version of Tortoise-Hg before for cloning CodePlex projects. This is very time consuming. Is there something wrong of what I am doing?. How can I resolve this issue?


回答1:


I have managed to do the cloning, Internet connection was the reason. Internet was heavy for me during the initial trails. That's what have caused the problem. Now since the internet connection is in quite good level of speed, Cloning worked fine. There were no hangings. If you are facing the same issue, Basic check is a good internet connection. Hope this will help someone.

Edit: This has again happened to me, But this time I tried cloning using command prompt. It also worked fine. :)




回答2:


For anyone else that comes across this I ran into this issue on our internal Mercurial server (not CodePlex) and fixed it.

Our setup is Mercurial running on Windows Server 2008 R2 using HgWeb running under IIS. The problem we encountered was a CGI timeout. Cloning our entire repository exceeded the 15 min default timeout for CGI. The fix was to increase the timeout. This can be done in the IIS Manager.

  1. Open the IIS Manager
  2. Select the website
  3. Open the CGI panel
  4. Edit the timeout
  5. Click Apply
  6. Restart the Pool for the website

If internet performance was a factor with CodePlex I am guessing a similar timeout is the culprit.



来源:https://stackoverflow.com/questions/15728490/cloning-using-tortoise-hg-abort-in-middlecommand-returned-code-255

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!