在 IIS 6 上设置 Mercurial 服务器

发布于 2024-08-26 13:07:03 字数 717 浏览 5 评论 0原文

我已经在 Windows 2003 / IIS 6 计算机上设置了 Mercurial 服务器,当我尝试拉取存储库时,我得到以下序列

requesting all changes
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
abort: premature EOF reading chunk (got 91303 bytes, expected 1542634)

我已经尝试了几乎所有我能想到的方法,但没有成功。我按照 Jeremy Skinners 指南针对 IIS7 执行此操作的步骤进行操作,但是在 IIS6 服务器上。

我发现了一个帖子,其中作者也遇到了同样的问题,但未能找到解决方案。

到目前为止,解决方案似乎是迁移到 Apache 或升级到 Windows 2008/II7 ..但如果有人知道如何解决这个问题,请告诉我

I've set up a Mercurial server on a Windows 2003 / IIS 6 machine and when I try to pull the repository I get the following sequence

requesting all changes
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
abort: premature EOF reading chunk (got 91303 bytes, expected 1542634)

I've tried pretty much everything I can think of, but with no success. I followed the steps of Jeremy Skinners guide on doing it for IIS7, but on an IIS6 server.

I found a post where the author was experiencing the same issue, but was unable to find a solution.

So far it looks like the solution is to migrate to Apache or upgrade to Windows 2008/II7 .. but if someone knows how to solve this, please let me know

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

她说她爱他 2024-09-02 13:07:03

这个问题我自己来回答一下。

事实证明,问题是 IIS 6 中的 CGI 脚本超时为 5 分钟(及以下,不确定 7 是否如此),这就是一直受到影响的原因。要更改超时值,您必须具有 已安装 IIS 6 资源工具包

安装后,启动 MetaBase Explorer 实用程序并导航到 \LM\W3SVC 并找到 CGITimeout 条目,并将值从默认的 300(5 分钟)更改为更高的值(我最终用了20分钟)。

更改值后,我重新启动 IIS 以确保服务器使用它。完成此操作后,一切都变得神奇起来!

交叉发布在我的博客

I'll answer this one myself.

The problem turned out to be that there is a CGI script timeout of 5 minutes in IIS 6 (and below, not sure about 7) and this was what kept being hit. To change the timeout value you have to have the IIS 6 Resource Kit installed.

Once installed, start the MetaBase Explorer utility and navigate to \LM\W3SVC and locate the CGITimeout entry and change the value from the default 300 (5 minutes) to a higher value (I ended up using 20 minutes).

After changing the value I restarted IIS to make sure it was used by the server. Once this has been done, everything worked like a charm!

Cross posted on my blog

请持续率性 2024-09-02 13:07:03

我还没有尝试过,但是有这个: 运行 Mercurial在 Windows 上

如果您向下滚动到“Windows Server 2003/XP”部分,我认为这应该涵盖 IIS 6。

I haven't tried it yet, but there's this: Running Mercurial on Windows

If you scroll down to the "Windows Server 2003/XP" section, I think that should cover you for IIS 6.

卸妝后依然美 2024-09-02 13:07:03

您查看过 Joel 的教程吗?也许你会在那里找到答案。

Have you checked out Joel's tutorial? Maybe you'll find the answer there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文