尝试升级后出现502 Bad Gateway错误

大家好,
我想我通过点击“Discourse-Manager”上的“Upgrade”按钮弄坏了我的网站,如果我没记错的话。它显示失败,然后我点击了一个“reset upgrade”之类的框。我无法精确地重现这些操作,因为网站已经宕机。

到目前为止,我发现 Rails 无法连接到 Redis,并且我无法重建应用程序。不确定如何继续处理这个问题……

Rails production log 显示:
Error connecting to Redis on localhost:6379 (Errno::EADDRNOTAVAIL) subscribe failed, reconnecting in 1 second. Call stack /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/redis-4.8.1/lib/redis/client.rb:398:in rescue in establish_connection’`

./launcher rebuild app:

Error response from daemon: toomanyrequests: Too Many Requests (HAP429).
Error response from daemon: toomanyrequests: Too Many Requests (HAP429).
Unable to find image 'discourse/base:2.0.20241203-0251' locally
docker: Error response from daemon: toomanyrequests: Too Many Requests (HAP429).
See 'docker run --help'.
Your Docker installation is not working correctly

您正在达到 Docker 的速率限制。

许多用户通过禁用 IPv6 解决了此问题。

类似问题:

3 个赞

谢谢,禁用ipv6奏效了!

2 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.