hgweb.cgi 推送时抛出 502(错误网关)
我已经在 Windows Server 2008 上的 iis7 后面配置了 hgweb.cgi。我可以很好地提取存储库。然而,每当我推动时,我都会收到 502 bad gateway。我发现了 发布 这似乎表明这是服务器上的 Mercurial 配置的问题。 Mercurial 似乎没有从我的本地计算机获取 http 代理(fiddler),即使它已配置。
问题是:
- 如何“解决”502 问题?
- 如果失败,我该如何让 Mercurial 使用代理,以便我可以找出出了什么问题?
- 鉴于这是在网络服务器下运行,如何“正确”调整 Mercurial 的详细程度设置?
I've configured hgweb.cgi behind iis7 on windows server 2008. I can pull the repository just fine. However whenever I push I get a 502 bad gateway. I've found a posting which seems to indicate this is a problem with the mercurial config on the server. mercurial doesnt seem to be picking up an http proxy (fiddler) from my local machine even if its configured.
Questions are:
- how do I 'fix' the 502 problem?
- failing that how do I make mercurial use the proxy so I can figure out whats going wrong?
- how do I adjust the verbosity setting for mercurial 'properly' given that this is running under a webserver?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来像这个问题。
我在推送存储库时遇到了同样的问题,但在我安装了更高版本的 Mercurial (2.0.1) 后,这个问题就消失了。我使用了此处的说明(请注意 Ethan J Brown 对该帖子的评论)。
It sounds like this problem.
I was having the same issues with pushing a repository, but it went away after I had installed a later version of Mercurial (2.0.1). I used the instructions here, (paying attention to the comment to that post by Ethan J Brown).
我知道这是非常旧的,但我今天遇到了这个问题,问题是我运行 IIS 的虚拟机磁盘空间不足!我想我会把这个答案作为另一种可能的解决方案。
我在我的 Synology 家用 NAS 上运行一个虚拟机,它非常小,仅用于处理远程 Mercurial 请求。不太确定为什么空间不足,也许是更新填满了。
I know this is super old, but I ran across this today, and the issue was my VM where IIS was running was out of disk space! Thought I'd throw this answer out there as another possible solution.
I run a VM on my synology home nas and it's super small, only used to handle remote mercurial requests. Not really sure why it ran out of space, perhaps an update filled it up.