See Email notifications fail if duplicate headers exist - #14 by simonk for bug description
Above added by @pfaffman
Original text follows
Hello,
I’m running a rather small Discourse installation for some years now. It’s fairly low traffic, hence it took a while to notice that sending of emails (notifications, digests) obvoiusly began to fail some months ago. Forensics point to the upgrade to 2.8.0.beta7 around 2022-10-22, previously we were at 2.8.0.beta4. At least I haven’t received any email from that installation about posts or messages.
The emails pile up in Sidekiq, with a message I can’t relate to, nor find anything fitting when searching for it — there where reports of undefined method messages, but none of the conditions match mine. (It’s not TLS, it’s no timeout to the mail server, it’s not the events plugin, and the secure media fix should be in already — besides, the exact error messages were different.)
Error in Sidekiq:
Wrapped NoMethodError: undefined method `value' for #<Array:0x00007f7fd5277d68> Did you mean? values_at
The part after #<Array: is different for each held email. I reinstalled Discourse to a new VM last night and restored from a fresh backup — but seemingly the email issue was restored with the data ![]()
As the error rate started to climb end of October, I’m rather sure this was introduced by 2.8.0.beta7:
Any help, or hint to debug the issue further, is much appreciated.
バグの説明については、Email notifications fail if duplicate headers exist - #14 by simonk を参照してください。
上記は @pfaffman によって追加されました。
元のテキストは以下の通りです。
こんにちは。
数年前から、かなり小規模なDiscourseのインストールを実行しています。トラフィックはかなり少ないため、数ヶ月前からメール(通知、ダイジェスト)の送信が明らかに失敗し始めていることに気づくのに時間がかかりました。フォレンジック調査によると、2022年10月22日頃に2.8.0.beta7にアップグレードしたことが原因のようです。以前は2.8.0.beta4を使用していました。少なくとも、そのインストールから投稿やメッセージに関するメールは受信していません。
メールはSidekiqに溜まっていますが、関連付けられないメッセージが表示されており、検索しても該当するものが見つかりません。undefined methodメッセージの報告はありましたが、私の状況に一致するものはありませんでした。(TLSではありませんし、メールサーバーへのタイムアウトでもありませんし、イベントプラグインでもありませんし、セキュアメディアの修正は既に入っているはずです。それに、正確なエラーメッセージは異なっていました。)
Sidekiqのエラー:
Wrapped NoMethodError: undefined method `value' for #<Array:0x00007f7fd5277d68> Did you mean? values_at
#<Array: の後の部分は、保持されている各メールで異なります。昨夜、Discourseを新しいVMに再インストールし、最新のバックアップから復元しましたが、どうやらメールの問題もデータと一緒に復元されたようです ![]()
10月末にエラー率が上昇し始めたため、これは2.8.0.beta7で導入されたと確信しています。
どのようなヘルプや、問題をさらにデバッグするためのヒントでも、大歓迎です。



