Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidekiq::Batch::NoSuchBatch errors in web UI #1575

Closed
subelsky opened this issue Mar 19, 2014 · 2 comments
Closed

Sidekiq::Batch::NoSuchBatch errors in web UI #1575

subelsky opened this issue Mar 19, 2014 · 2 comments

Comments

@subelsky
Copy link
Contributor

As part of debugging #1527 I am trying to get a view of all batches in the system. It looks like the segfaults I'm experiencing in that issue may cause some corruption/left-behind data about old batches in redis.

Visiting https://##########/batches in our system yields the following, which seems like it shouldn't be possible.

Possibly related: I'm getting a separate error where on_success is getting fired for batches that already received it.

2014-03-19T14:53:13.263619+00:00 app[web.1]: Sidekiq::Batch::NoSuchBatch - Couldn't find Batch 8c0094fea608af5d in redis:
2014-03-19T14:53:13.263619+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/batch/status.rb:28:in `initialize'
2014-03-19T14:53:13.263619+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/pro/web.rb:56:in `new'
2014-03-19T14:53:13.263619+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/pro/web.rb:56:in `block (2 levels) in singletonclass'
2014-03-19T14:53:13.263619+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/pro/web.rb:55:in `each'
2014-03-19T14:53:13.263619+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/pro/web.rb:55:in `block in singletonclass'
2014-03-19T14:53:13.263619+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/pro/web.rb:27:in `instance_eval'
2014-03-19T14:53:13.263619+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/pro/web.rb:27:in `singletonclass'
2014-03-19T14:53:13.263619+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/pro/web.rb:25:in `__tilt_8716580'
2014-03-19T14:53:13.263619+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `call'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `evaluate'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:805:in `render'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/pro/web.rb:33:in `block in registered'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `call'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `block in compile!'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `[]'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (3 levels) in route!'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:976:in `route_eval'
2014-03-19T14:53:13.263861+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (2 levels) in route!'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:997:in `block in process_route'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `catch'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `process_route'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:955:in `block in route!'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `each'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `route!'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1067:in `block in dispatch!'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
2014-03-19T14:53:13.264031+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1064:in `dispatch!'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `block in call!'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `call!'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:877:in `call'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.1/lib/rack/protection/xss_header.rb:18:in `call'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.1/lib/rack/protection/path_traversal.rb:16:in `call'
2014-03-19T14:53:13.264732+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.1/lib/rack/protection/json_csrf.rb:18:in `call'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.1/lib/rack/protection/base.rb:50:in `call'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.1/lib/rack/protection/base.rb:50:in `call'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.1/lib/rack/protection/frame_options.rb:31:in `call'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `block in call'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1778:in `synchronize'
2014-03-19T14:53:13.264953+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `call'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/auth/basic.rb:25:in `call'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/hirefire-resource-0.2.2/lib/hirefire/middleware.rb:29:in `call'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/sidekiq-pro-1.4.1/lib/sidekiq/rack/batch_status.rb:32:in `call'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-ssl-1.3.3/lib/rack/ssl.rb:27:in `call'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/showexceptions.rb:24:in `call'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:580:in `process_client'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:660:in `worker_loop'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:527:in `spawn_missing_workers'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:153:in `start'
2014-03-19T14:53:13.265476+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/gems/unicorn-4.7.0/bin/unicorn:126:in `<top (required)>'
2014-03-19T14:53:13.265675+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/bin/unicorn:19:in `load'
2014-03-19T14:53:13.265675+00:00 app[web.1]:    /app/vendor/bundle/ruby/1.9.1/bin/unicorn:19:in `<main>'
@mperham
Copy link
Collaborator

mperham commented Mar 19, 2014

bundle update sidekiq-pro

@mperham mperham closed this as completed Mar 19, 2014
@subelsky
Copy link
Contributor Author

aww man my bad. I forgot I run this app in its own container and it never got its gems updated when we did the rest of our app. thanks for the fast response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants