前例のない予期せぬエラー500(S3バケット名の欠落)

こんにちは!私は過去3年間、DigitalOcean上でDiscourse(Docker)を特に大きな問題なく運用してきました。

今日、画像のサイズに関連するいくつかの設定を変更したところ、サイト全体がエラー500になり、次のメッセージが表示されました。


注:申し訳ありませんが、現在スペイン語版しか表示されておらず、この状況で英語版に切り替える方法がわかりません。

アプリの再構築を試みましたが、うまくいきませんでした。ログからも私には明確な原因がわかりませんでした。

このエラーは以前見たことがないため、関連するかもしれない(あるいはそうでないかもしれない)情報をいくつか記載します。

  • 画像はS3に保存されています。AWS/S3の設定については何も変更していません。
  • Let’s Encryptを使用してフォラムを運用しています。
  • Railsコンソールからは問題なくアプリにアクセスできます。

以前、このフォーラムで検索を試みましたが、メッセージがスペイン語のため、英語版を見つけることができませんでした :thinking:

注:このメッセージには、後でフォーラムで参照できるように、翻訳された内容とは別にエラーコードを含めるのが良いかもしれません。

Can you load the logs (http://yoursiteurl.com/logs) ?

Yes! I don’t know how I forget it! (I never had this kind of problem in 3 years with Discourse, sorry).

Seems like it is related to S3 :thinking: it’s at least a clue, something where to start debugging

Looks like your setting s3_bucket is empty/missing somehow…

Are you running latest Discourse?

No, I updated the forum around 2 months ago or so.

You hit the nail on the head, IDK how it happened :facepalm: this is kind of crazy.
I’m restoring the bucket name from the console and let’s see if works.

@Falco it works. I’m ashamed, the lack of practice debugging Discourse blocked me :facepalm: thank you so much for you quick response.

I will update the title now that I know the error.

Thanks!