mhfs/devise-async

debugging devise async

Closed this issue · 2 comments

Are there any methods to better debug devise-async? it seems to not work I get sidekiq error reports without a actual trace.

Can one use the rails console to send mails true async to test what goes wrong and where? very hard to debug else

I only get this without real application code trace

A Redis::CommandError occurred in background at 2013-10-18 00:44:55 +0200 :

 EXECABORT Transaction discarded because of previous errors.
 /srv/books/shared/bundle/ruby/2.1.0/gems/redis-3.0.5/lib/redis/pipeline.rb:79:in `finish'

 -------------------------------

Backtrace:

 /srv/books/shared/bundle/ruby/2.1.0/gems/redis-3.0.5/lib/redis/pipeline.rb:79:in finish'  /srv/books/shared/bundle/ruby/2.1.0/gems/redis-3.0.5/lib/redis/client.rb:121:inblock in call_pipeline'
 /srv/books/shared/bundle/ruby/2.1.0/gems/redis-3.0.5/lib/redis/client.rb:245:in with_reconnect'  /srv/books/shared/bundle/ruby/2.1.0/gems/redis-3.0.5/lib/redis/client.rb:119:incall_pipeline'
 /srv/books/shared/bundle/ruby/2.1.0/gems/redis-3.0.5/lib/redis.rb:2125:in block in multi'  /srv/books/shared/bundle/ruby/2.1.0/gems/redis-3.0.5/lib/redis.rb:36:inblock in synchronize'
 /usr/local/rvm/rubies/ruby-2.1.0-preview1/lib/ruby/2.1.0/monitor.rb:211:in mon_synchronize'  /srv/books/shared/bundle/ruby/2.1.0/gems/redis-3.0.5/lib/redis.rb:36:insynchronize'
 /srv/books/shared/bundle/ruby/2.1.0/gems/redis-3.0.5/lib/redis.rb:2117:in multi'  /srv/books/shared/bundle/ruby/2.1.0/gems/sidekiq-2.15.1/lib/sidekiq/processor.rb:93:inblock in stats'
 /srv/books/shared/bundle/ruby/2.1.0/gems/connection_pool-1.1.0/lib/connection_pool.rb:49:in with'  /srv/books/shared/bundle/ruby/2.1.0/gems/sidekiq-2.15.1/lib/sidekiq.rb:67:inredis'
 /srv/books/shared/bundle/ruby/2.1.0/gems/sidekiq-2.15.1/lib/sidekiq/util.rb:26:in redis'  /srv/books/shared/bundle/ruby/2.1.0/gems/sidekiq-2.15.1/lib/sidekiq/processor.rb:92:instats'
 /srv/books/shared/bundle/ruby/2.1.0/gems/sidekiq-2.15.1/lib/sidekiq/processor.rb:46:in block in process'  /srv/books/shared/bundle/ruby/2.1.0/gems/sidekiq-2.15.1/lib/sidekiq/processor.rb:83:indo_defer'
 /srv/books/shared/bundle/ruby/2.1.0/gems/sidekiq-2.15.1/lib/sidekiq/processor.rb:37:in process'  /srv/books/shared/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:inpublic_send'
 /srv/books/shared/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in dispatch'  /srv/books/shared/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:122:indispatch'
 /srv/books/shared/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in block in handle_message'  /srv/books/shared/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:inblock in task'
 /srv/books/shared/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in block in initialize'  /srv/books/shared/bundle/ruby/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:inblock in create'


Data:

 * data: {:message=>
   {"retry"=>true,
    "queue"=>"mailer",
    "class"=>"Devise::Async::Backend::Sidekiq",
    "args"=>
     ["confirmation_instructions", "User", "2", "mJTMoQvAskUPxGuFRegF", {}],
    "jid"=>"20807982a65a94f574313ce0",
    "enqueued_at"=>1382049893.6279392}}

So in dev, rails console I try

@user = User.first
Devise::Mailer.confirmation_instructions(@user,"","").deliver

It works fine and throws he mail in the terminal but still does not send.

ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.delivery_method = :smtp

ETC

Exception notifications do get send out correctly im really lost on how to debug this further

@rubytastic This issue is quiet old. Is there still a need to discuss this? Otherwise, I would like to delete the issue.