User_Listのエクスポート失敗

ユーザーリストのエクスポートを試みると、「データエクスポートに失敗しました」という通知が表示されます。実際にはエクスポートは失敗しますが、エラーログにはエントリが記録されていません。2020 年 9 月 15 日には正常にユーザーリストのエクスポートができました。Data Explorer がエラーなく動作しているため、データベースの問題ではないかと疑っています。何かアイデアはありますか?

「いいね!」 1

OP への更新

本日、この問題を再確認し、期限切れの招待を多数発見して削除しました。その後、再度ユーザーエクスポートを試みましたが、結果は変わらずエラーレポートも出力されませんでした。その後、./launcher rebuild app を実行し、再度ユーザーエクスポートを試みたところ、今度は失敗してエラーレポートが出力されました。以下をご覧ください。

情報:

ジョブ例外: nil:NilClass の email メソッドが定義されていません

バックトレース:
/var/www/discourse/app/models/user.rb:1247:in `email’

/var/www/discourse/app/jobs/regular/export_csv_file.rb:261:in `get_base_user_array'

/var/www/discourse/app/jobs/regular/export_csv_file.rb:128:in `block in user_list_export'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:70:in `block (2 levels) in find_each'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:70:in `each'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:70:in `block in find_each'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:136:in `block in find_in_batches'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:238:in `block in in_batches'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:222:in `in_batches'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:222:in `loop'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:222:in `in_batches'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:135:in `find_in_batches'

activerecord-6.0.3.3/lib/active_record/relation/batches.rb:69:in `find_each'

/var/www/discourse/app/jobs/regular/export_csv_file.rb:127:in `user_list_export'

/var/www/discourse/app/jobs/regular/export_csv_file.rb:66:in `each'

/var/www/discourse/app/jobs/regular/export_csv_file.rb:66:in `block (2 levels) in execute'

/usr/local/lib/ruby/2.6.0/csv.rb:657:in `open'

/var/www/discourse/app/jobs/regular/export_csv_file.rb:64:in `block in execute'

/var/www/discourse/app/jobs/regular/export_csv_file.rb:63:in `each'

/var/www/discourse/app/jobs/regular/export_csv_file.rb:63:in `execute'

/var/www/discourse/app/jobs/base.rb:232:in `block (2 levels) in perform'

rails_multisite-2.5.0/lib/rails_multisite/connection_management.rb:76:in `with_connection'

/var/www/discourse/app/jobs/base.rb:221:in `block in perform'

/var/www/discourse/app/jobs/base.rb:217:in `each'

/var/www/discourse/app/jobs/base.rb:217:in `perform'

sidekiq-6.1.2/lib/sidekiq/processor.rb:196:in `execute_job'

sidekiq-6.1.2/lib/sidekiq/processor.rb:164:in `block (2 levels) in process'

sidekiq-6.1.2/lib/sidekiq/middleware/chain.rb:138:in `block in invoke'

/var/www/discourse/lib/sidekiq/pausable.rb:138:in `call'

sidekiq-6.1.2/lib/sidekiq/middleware/chain.rb:140:in `block in invoke'

sidekiq-6.1.2/lib/sidekiq/middleware/chain.rb:143:in `invoke'

sidekiq-6.1.2/lib/sidekiq/processor.rb:163:in `block in process'

sidekiq-6.1.2/lib/sidekiq/processor.rb:136:in `block (6 levels) in dispatch'

sidekiq-6.1.2/lib/sidekiq/job_retry.rb:111:in `local'

sidekiq-6.1.2/lib/sidekiq/processor.rb:135:in `block (5 levels) in dispatch'

sidekiq-6.1.2/lib/sidekiq.rb:38:in `block in <module:Sidekiq>'

sidekiq-6.1.2/lib/sidekiq/processor.rb:131:in `block (4 levels) in dispatch'

sidekiq-6.1.2/lib/sidekiq/processor.rb:257:in `stats'

sidekiq-6.1.2/lib/sidekiq/processor.rb:126:in `block (3 levels) in dispatch'

sidekiq-6.1.2/lib/sidekiq/job_logger.rb:13:in `call'

sidekiq-6.1.2/lib/sidekiq/processor.rb:125:in `block (2 levels) in dispatch'

sidekiq-6.1.2/lib/sidekiq/job_retry.rb:78:in `global'

sidekiq-6.1.2/lib/sidekiq/processor.rb:124:in `block in dispatch'

sidekiq-6.1.2/lib/sidekiq/logger.rb:10:in `with'

sidekiq-6.1.2/lib/sidekiq/job_logger.rb:33:in `prepare'

sidekiq-6.1.2/lib/sidekiq/processor.rb:123:in `dispatch'

sidekiq-6.1.2/lib/sidekiq/processor.rb:162:in `process'

sidekiq-6.1.2/lib/sidekiq/processor.rb:78:in `process_one'

sidekiq-6.1.2/lib/sidekiq/processor.rb:68:in `run'

sidekiq-6.1.2/lib/sidekiq/util.rb:15:in `watchdog'

sidekiq-6.1.2/lib/sidekiq/util.rb:24:in `block in safe_thread'

環境:

ホスト名 ubuntu-s-1vcpu-1gb-nyc1-01-app
|プロセス ID|771|
|アプリケーションバージョン|a47c8f05855a7b4a15d69dfbf3ef1e894a35f418|
|現在の DB|default|
|現在のホスト名|discourse.example.com|
|ジョブ|Jobs::ExportCsvFile|
|問題 DB|default|
|時刻|午後 3:10|
|||
|オプション||
|エンティティ|user_list|
|ユーザー ID|1|
|現在のサイト ID|default|
|||
|引数||
|信頼レベル|active|

このトラブルシューティングに関するご支援を心よりお願いいたします。よろしくお願いいたします。