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

Error "undefined method `redis_info' for Sidekiq:Module" on upgrade #740

Closed
kriom opened this issue Nov 16, 2022 · 2 comments
Closed

Error "undefined method `redis_info' for Sidekiq:Module" on upgrade #740

kriom opened this issue Nov 16, 2022 · 2 comments

Comments

@kriom
Copy link

kriom commented Nov 16, 2022

Describe the bug
I try to upgrade the gems sidekiq-unique-jobs to 7.1.27 and sidekiq 7.01 using this configuration

Expected behavior
sidekiq start

Current behavior
sidekiq fail to start with this erroer message

2022-11-16T11:50:37.769Z pid=70837 tid=2qj5 WARN: {"context":"Exception during Sidekiq lifecycle event.","event":"startup","_config":"#<Sidekiq::Config:0x000055ec6cb75008>"}
2022-11-16T11:50:37.771Z pid=70837 tid=2qj5 WARN: NoMethodError: undefined method `redis_info' for Sidekiq:Module
Did you mean?  redis_pool
2022-11-16T11:50:37.771Z pid=70837 tid=2qj5 WARN: /home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/sidekiq_unique_jobs.rb:201:in `fetch_redis_version'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/config.rb:314:in `redis_version'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/script/caller.rb:123:in `redis_version'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/script/caller.rb:62:in `do_call'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/script/caller.rb:48:in `block in call_script'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/config.rb:156:in `block in redis'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:65:in `block (2 levels) in with'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:64:in `handle_interrupt'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:64:in `block in with'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:61:in `handle_interrupt'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:61:in `with'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/config.rb:153:in `redis'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq.rb:73:in `redis'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/connection.rb:19:in `redis'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/script/caller.rb:47:in `call_script'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/update_version.rb:18:in `call'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/server.rb:35:in `start'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/server.rb:20:in `block in configure'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/component.rb:58:in `block in fire_event'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/component.rb:57:in `each'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/component.rb:57:in `fire_event'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/cli.rb:105:in `run'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/bin/sidekiq:31:in `<top (required)>'
/home/me/.rvm/gems/ruby-2.7.6/bin/sidekiq:23:in `load'
/home/me/.rvm/gems/ruby-2.7.6/bin/sidekiq:23:in `<main>'
/home/me/.rvm/gems/ruby-2.7.6/bin/ruby_executable_hooks:22:in `eval'
/home/me/.rvm/gems/ruby-2.7.6/bin/ruby_executable_hooks:22:in `<main>'
undefined method `redis_info' for Sidekiq:Module
Did you mean?  redis_pool
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/sidekiq_unique_jobs.rb:201:in `fetch_redis_version'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/config.rb:314:in `redis_version'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/script/caller.rb:123:in `redis_version'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/script/caller.rb:62:in `do_call'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/script/caller.rb:48:in `block in call_script'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/config.rb:156:in `block in redis'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:65:in `block (2 levels) in with'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:64:in `handle_interrupt'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:64:in `block in with'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:61:in `handle_interrupt'
/home/me/.rvm/gems/ruby-2.7.6/gems/connection_pool-2.3.0/lib/connection_pool.rb:61:in `with'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/config.rb:153:in `redis'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq.rb:73:in `redis'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/connection.rb:19:in `redis'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/script/caller.rb:47:in `call_script'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/update_version.rb:18:in `call'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/server.rb:35:in `start'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-unique-jobs-7.1.27/lib/sidekiq_unique_jobs/server.rb:20:in `block in configure'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/component.rb:58:in `block in fire_event'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/component.rb:57:in `each'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/component.rb:57:in `fire_event'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/lib/sidekiq/cli.rb:105:in `run'
/home/me/.rvm/gems/ruby-2.7.6/gems/sidekiq-7.0.1/bin/sidekiq:31:in `<top (required)>'
/home/me/.rvm/gems/ruby-2.7.6/bin/sidekiq:23:in `load'
/home/me/.rvm/gems/ruby-2.7.6/bin/sidekiq:23:in `<main>'
/home/me/.rvm/gems/ruby-2.7.6/bin/ruby_executable_hooks:22:in `eval'
/home/me/.rvm/gems/ruby-2.7.6/bin/ruby_executable_hooks:22:in `<main>'
@strika
Copy link

strika commented Nov 16, 2022

Maybe this #736 (comment) is useful for you. It seems that sidekiq-unique-jobs is not compatible with Sidekiq 7.

@kriom
Copy link
Author

kriom commented Nov 16, 2022

Thank you, at the moment, I will limit my upgrade to sidekiq (6.5.8)

@kriom kriom closed this as completed Nov 16, 2022
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