助けて!私のDiscourseインスタンスがオフラインです

Docker のアップグレード後に「Bad Gateway」というエラーが表示されます。

試したこと:

  • Docker の再インストールと再構築
  • IP アドレスの確認
  • サーバーがオンラインであるかの確認
  • PuTTY を使用してサーバーに接続できることの確認
  • Docker Doctor の有効化

復旧方法を教えてください :slight_smile:

「いいね!」 2

サーバーの起動が完了するまで、あと1、2分待つ必要があっただけだと思われます。

「いいね!」 4

おっしゃる通りです。的確な方向を示していただきありがとうございます。

「いいね!」 2

それで、また復旧して動くようになったのですか?

「いいね!」 3

残念ながら、そうではありません。

Discourseインスタンスは再構築後75%到達可能に見えますが、その後再び502 Bad Gatewayになります。

セットアップ(再構築)が完了すると、オフラインになります。

「いいね!」 3

再構築中はダウンする予定です。

再構築後、すべてが起動するまでに1〜2分かかります。

ディスク容量は十分ですか?

「いいね!」 3

コメントありがとうございます。

はい、再構築後の期間は把握しております。しかし、私たちは10分遅れており、ウェブサイトはまだオフラインです。

はい、ディスク容量は160GBあります。

「いいね!」 1

それなら、おそらくプラグインなど、他の問題があるのでしょう。以下のようなコマンドで確認できます。

  tail -f /var/discourse/shared/standalone/log/rails/production.log

または、それに非常に似たコマンドで確認できます。

「いいね!」 1

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

残念ながら、修正できませんでした。

この問題を修正するために、あなたを雇うことはできますか?

「いいね!」 2

@pfaffman さん、助けてくれてありがとう!

アプリの yml ファイルにタイプミスがありました。

「いいね!」 4

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