When Jobs::UserEmail fail the email that failed is not logged


(Anton) #1

Just a fresh Discourse install and logs show a lof of this:

Job exception: Wrapped SocketError: getaddrinfo: Name or service not known

How would I fix it?


(Sam Saffron) #2

Need a lot more context than that, whats in env? what is the backtrace.

Is it an invalid image link causing it?


(Anton) #3

Note

I just noticed that all errors dated 2 days ago, which is the day when I installed Discourse. It is not happening now, so maybe error gone away. Still, might be useful?


ENV

class: Jobs::UserEmail
retry: true
queue: default
jid: 2aa2098b845cef4a809e0749
enqueued_at: 1438774425.6689548
error_message: Wrapped SocketError: getaddrinfo: Name or service not known
error_class: Jobs::HandledExceptionWrapper
failed_at: 1438774425.964529
retry_count: 1
retried_at: 1438774494.9332433
current_hostname: forum.twiganything.com
hostname: forum.twiganything.com-app
process_id: 88

args:
  0: [object Object]

Backtrace

/var/www/discourse/app/jobs/base.rb:178:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/processor.rb:75:in `execute_job'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/processor.rb:52:in `block (2 levels) in process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/chain.rb:127:in `block in invoke'
/var/www/discourse/lib/sidekiq/pausable.rb:81:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/server/active_record.rb:6:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/server/retry_jobs.rb:74:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/server/logging.rb:15:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/logging.rb:24:in `with_context'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/server/logging.rb:11:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/chain.rb:129:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/chain.rb:132:in `call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/middleware/chain.rb:132:in `invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/processor.rb:51:in `block in process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/processor.rb:98:in `stats'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sidekiq-3.3.4/lib/sidekiq/processor.rb:50:in `process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:122:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'

(Sam Saffron) #4

Its failing to send an email to a particular user, real shame we don’t log the email in that error, I consider that a bug and will recategorize cause we want it fixed.


(Allen - Watchman Monitoring) #5

Where can the logged email body be found?