您好,我已按照说明安装并启用了插件。但是,我在 /auth/steam 和 /auth/steam?reconnect=true 处遇到了 502 错误。有人能帮我解决这个问题吗?
您需要包含一些带有错误的日志信息。
我将
tail -f /var/discourse/shared/standalone/log/rails/production.log
并观察您在出现错误时看到的内容
点击使用 Steam 登录后,我看到
Started GET "/session/csrf" for (IP address) at 2022-08-05 11:11:54 +0000
Processing by SessionController#csrf as JSON
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 307)
Started POST "/auth/steam" for (IP address) at 2022-08-05 11:11:55 +0000
(steam) Setup endpoint detected, running now.
(steam) Request phase initiated.
然后出现错误页面。
这听起来像是 502 错误来自 Steam 而不是 Discourse。浏览器中的网络选项卡是否显示 502 错误来自 Steam 而不是 Discourse?
如果该网址是您的论坛,那么是的,它是 discourse,您没有从日志中发送该信息。该 502 应该被记录下来。
1 个赞
好的,那是我的论坛。我在 Nginx 的错误日志中发现了以下内容:
2022/08/05 20:23:35 [notice] 1765588#1765588: signal process started
2022/08/05 20:23:56 [error] 1765590#1765590: *121361 upstream sent too big header while reading response header from upstream, client: (IP address), server: www.bfsu.cafe, request: "POST /auth/steam HTTP/2.0", upstream: "http://unix:/var/discourse/shared/standalone/nginx.http.sock:/auth/steam", host: "www.bfsu.cafe", referrer: "https://www.bfsu.cafe/login"
看起来我的 Nginx 配置不正确。我可能会在自己搜索后解决这个问题。感谢您到目前为止的帮助!
更新:添加了 proxy_buffer_size 32k,问题已解决。 ![]()
2 个赞
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
