Docker のアップグレード後に「Bad Gateway」というエラーが表示されます。
試したこと:
- Docker の再インストールと再構築
- IP アドレスの確認
- サーバーがオンラインであるかの確認
- PuTTY を使用してサーバーに接続できることの確認
- Docker Doctor の有効化
復旧方法を教えてください ![]()
Docker のアップグレード後に「Bad Gateway」というエラーが表示されます。
試したこと:
復旧方法を教えてください ![]()
サーバーの起動が完了するまで、あと1、2分待つ必要があっただけだと思われます。
おっしゃる通りです。的確な方向を示していただきありがとうございます。
それで、また復旧して動くようになったのですか?
残念ながら、そうではありません。
Discourseインスタンスは再構築後75%到達可能に見えますが、その後再び502 Bad Gatewayになります。
セットアップ(再構築)が完了すると、オフラインになります。
再構築中はダウンする予定です。
再構築後、すべてが起動するまでに1〜2分かかります。
ディスク容量は十分ですか?
それなら、おそらくプラグインなど、他の問題があるのでしょう。以下のようなコマンドで確認できます。
tail -f /var/discourse/shared/standalone/log/rails/production.log
または、それに非常に似たコマンドで確認できます。
Completed 200 OK in 43ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 1349 9)
Started POST “/t/6242/notifications.json” for 172.71.102.181 at 2023-03-08 14:43 :49 +0000
Processing by TopicsController#set_notifications as JSON
Parameters: {“notification_level”=>3, “topic_id”=>“6242”, “topic”=>{}}
Can’t verify CSRF token authenticity.
Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 2675 )
Deprecation notice: SiteSetting.enable_personal_messages has been deprecated.
Please use SiteSetting.personal_message_enabled_groups instead. (removal in Discourse 3.0)
At /var/www/discourse/lib/site_setting_extension.rb:199:in public_send
Rendered layouts/email_template.html.erb (Duration: 2.2ms | Allocations: 775)
Parameters: {“external_id”=>“19929.json”}
Completed 200 OK in 43ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 1349 9)
Started POST “/t/6242/notifications.json” for 172.71.102.181 at 2023-03-08 14:43 :49 +0000
Processing by TopicsController#set_notifications as JSON
Parameters: {“notification_level”=>3, “topic_id”=>“6242”, “topic”=>{}}
Can’t verify CSRF token authenticity.
Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 2675 )
Deprecation notice: SiteSetting.enable_personal_messages has been deprecated.
Please use SiteSetting.personal_message_enabled_groups instead. (removal in Discourse 3.0)
At /var/www/discourse/lib/site_setting_extension.rb:199:in public_send
Rendered layouts/email_template.html.erb (Duration: 2.2ms | Allocations: 775)
手伝ってくれてありがとう、@pfaffman。
残念ながら、修正できませんでした。
この問題を修正するために、あなたを雇うことはできますか?
@pfaffman さん、助けてくれてありがとう!
アプリの yml ファイルにタイプミスがありました。
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.