Sidekiq POR: uninitialized constant Sidekiq::Manager::Set

47 views
Skip to first unread message

Dump Hole

unread,
Aug 7, 2016, 2:36:49 PM8/7/16
to Sidekiq
Just starting with Sidekiq using plain old Ruby.
Not sure what's happening here.  I have been looking online but most online examples are using Rails and using the 'bundle exec'.

helloworld.rb:

require 'sidekiq'

Sidekiq.configure_client do |config|
  config.redis = { db: 1 }
end

Sidekiq.configure_server do |config|
  config.redis = { db: 1 }
end

class SomeWorker
  include Sidekiq::Worker

  def perform(stuff)
    puts "Hello World #{stuff}"
  end
end


$ sidekiq -r ./helloworld.rb
2016-08-07T18:27:46.437Z 5696 TID-87alo INFO: Running in ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
2016-08-07T18:27:46.437Z 5696 TID-87alo INFO: See LICENSE and the LGPL-3.0 for licensing details.
2016-08-07T18:27:46.437Z 5696 TID-87alo INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
2016-08-07T18:27:46.437Z 5696 TID-87alo INFO: Booting Sidekiq 4.1.4 with redis options {:url=>nil}
2016-08-07T18:27:46.441Z 5696 TID-87alo INFO: Starting processing, hit Ctrl-C to stop
uninitialized constant Sidekiq::Manager::Set
.../.rvm/gems/ruby-2.2.4/gems/sidekiq-4.1.4/lib/sidekiq/manager.rb:37:in `initialize'
.../.rvm/gems/ruby-2.2.4/gems/sidekiq-4.1.4/lib/sidekiq/launcher.rb:18:in `new'
.../.rvm/gems/ruby-2.2.4/gems/sidekiq-4.1.4/lib/sidekiq/launcher.rb:18:in `initialize'
.../.rvm/gems/ruby-2.2.4/gems/sidekiq-4.1.4/lib/sidekiq/cli.rb:89:in `new'
.../.rvm/gems/ruby-2.2.4/gems/sidekiq-4.1.4/lib/sidekiq/cli.rb:89:in `run'
.../.rvm/gems/ruby-2.2.4/gems/sidekiq-4.1.4/bin/sidekiq:12:in `<top (required)>'
.../.rvm/gems/ruby-2.2.4/bin/sidekiq:22:in `load'
.../.rvm/gems/ruby-2.2.4/bin/sidekiq:22:in `<main>'
.../.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `eval'
.../.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `<main>'

sidekiq version 4.1.4
Ruby 2.2.4.  Also tried this on Ruby 2.3.1, same result.

Mike Perham

unread,
Aug 7, 2016, 2:47:12 PM8/7/16
to sid...@googlegroups.com
Add

require 'set'

To the top of your file. 
--
You received this message because you are subscribed to the Google Groups "Sidekiq" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sidekiq+u...@googlegroups.com.
To post to this group, send email to sid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/e02dd2eb-449e-4f2a-bc48-ca2f7a0c894b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dump Hole

unread,
Aug 7, 2016, 9:52:40 PM8/7/16
to Sidekiq
Thanks!
Reply all
Reply to author
Forward
0 new messages