[英]DEVPI Server - "devpi login" returns 404
I am running devpi behind haproxy and not able to login.我在 haproxy 后面运行 devpi 并且无法登录。 devpi login username returns 404.
devpi 登录用户名返回 404。
GET https://devpi.example.com/+login
404 Not Found: <!doctype html>
<snip>
<div id="content">
<h1>Not Found</h1>
<p>The following resource could not be found:</p>
<p>predicate mismatch for view PyPIView (request_method = POST)</p>
</div>
Passed in a --debug flag for starting the server, but it is just mimimal传递了一个 --debug 标志来启动服务器,但它只是最小的
2018-09-13 17:52:07,157 INFO [req663] GET /+login
2018-09-13 17:52:07,157 DEBUG [req663] [Rtx72] in-transaction 72
2018-09-13 17:52:07,159 DEBUG [req663] [Rtx72] closing transaction at 72
2018-09-13 17:52:07,159 DEBUG [req663] 404 0.003s serial=72 length=5458 type=text/html; charset=UTF-8
I tried passing in values for --outside-url
which doesn't help.我尝试为
--outside-url
传递值, --outside-url
没有帮助。 Login is successful if I port forward to localhost and try with localhost:.如果我将端口转发到 localhost 并尝试使用 localhost:,则登录成功。
Using devpi-server-4.7.1 & devpi-web-3.4.0.使用 devpi-server-4.7.1 和 devpi-web-3.4.0。
Has anyone seen this and is there a solution?有没有人看到这个并且有解决方案吗? Thanks a lot in advance.
非常感谢。
解决方案:修复.devpi/client/current.json中的登录URL,使代理没有url *redirect。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.