Devise + Resque + Mandrill = Receiving Timeout::Error
Closed this issue · 2 comments
Output is below.
Rails 3.2.13,
Devise 2.0.0,
Devise-Async 0.5.1
Resque 1.2.5
All other mailers work just fine. It is only the Devise mailers that seem to have issues.
Configured as this tutorial:
"failed_at"=>"2014/04/04 16:12:31 BRT", "payload"=>{"class"=>"Devise::Async::Backend::Resque", "args"=>["confirmation_instructions", "User", "46"]}, "exception"=>"Timeout::Error", "error"=>"execution expired", "backtrace"=>["/usr/lib64/ruby/1.9.1/net/smtp.rb:540:in initialize'", "/usr/lib64/ruby/1.9.1/net/smtp.rb:540:in
open'", "/usr/lib64/ruby/1.9.1/net/smtp.rb:540:in tcp_socket'", "/usr/lib64/ruby/1.9.1/net/smtp.rb:549:in
block in do_start'", "/usr/lib64/ruby/1.9.1/net/smtp.rb:549:in do_start'", "/usr/lib64/ruby/1.9.1/net/smtp.rb:519:in
start'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/mail-2.5.4/lib/mail/network/delivery_methods/smtp.rb:112:in deliver!'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/mail-2.5.4/lib/mail/message.rb:2129:in
do_delivery'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/mail-2.5.4/lib/mail/message.rb:232:in block in deliver'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/actionmailer-3.2.13/lib/action_mailer/base.rb:415:in
block in deliver_mail'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in block in instrument'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in
instrument'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in instrument'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/actionmailer-3.2.13/lib/action_mailer/base.rb:413:in
deliver_mail'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/mail-2.5.4/lib/mail/message.rb:232:in deliver'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/devise-async-0.5.1/lib/devise/async/backend/base.rb:15:in
perform'", "/var/www/testingapp/vendor/bundle/ruby/1.9.1/gems/devise-async-0.5.1/lib/devise/async/backend/resque.rb:13:in `perform'"], "worker"=>"www.testingapp.com.br:11464:email_worker", "queue"=>"email_worker", "retried_at"=>"2014/04/16 17:20:52"}
Why is it happening?
My suggestion is for you to make sure you did everything according to the README and if the issue persists, disabling devise-async
in your app to see if devise emails keep failing without it.
That will help us understand what's the root cause of the issue since it's unlikely to me that devise-async
is influencing your SMTP delivery.
Oh man, sorry for replying just now the solution. The problem was the connection between my app on DigitalOcean and Mandrill. Once access allowed, it worked perfectly again :)