Sidekiq not starting (Error connecting to Redis on localhost:6379)
Created by: kod3000
Since sidekiq is not running, I can't view any of my projects and all I get is a 500 error on the pages. Navigating to the 'admin page / background jobs' revels the error :
Redis::CannotConnectError at /admin/sidekiq/
Error connecting to Redis on localhost:6379 (ECONNREFUSED)
I followed all of the instructions listed here
The only difference is that I specified the 'git' user instead of 'gitlab' user when running the commands. Since I'm running gitlab version 5.2.0
I found in other post that its best to stop gitlab and start up sidekiq first.
/home/git/gitlab$ sudo service gitlab stop
/home/git/gitlab$ sudo -u git -H bundle exec rake sidekiq:start RAILS_ENV=production
This doesn't render any errors. I then start gitlab back up and run a check.
/home/git/gitlab$ sudo service gitlab start
/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
The check gives me all green execpt in two places. The first in Sidekiq
Checking Sidekiq ...
Running? ... no
Try fixing it:
sudo -u git -H bundle exec rake sidekiq:start RAILS_ENV=production
For more information see:
doc/install/installation.md in section "Install Init Script"
see log/sidekiq.log for possible errors
Please fix the error above and rerun the checks.
Checking Sidekiq ... Finished
And the second in the git version
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... no
Try fixing it:
Update your git to a version >= 1.7.10 from 1.7.9
Please fix the error above and rerun the checks.
I have no idea how to upgrade the git version since the system tells me I'm already running the latest git version. In any case I don't see how that would affect sidekiq.
I checked the sidekiq.log, which has the following..
2013-06-19T14:47:21Z 4849 TID-16q700 INFO: Booting Sidekiq 2.11.1 using redis://localhost:6379 with options {:namespace=>"resque:gitlab"}
2013-06-19T14:47:23Z 4849 TID-16q700 INFO: Running in ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]
2013-06-19T14:47:23Z 4849 TID-16q700 INFO: See LICENSE and the LGPL-3.0 for licensing details.
Error connecting to Redis on localhost:6379 (ECONNREFUSED)
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis/client.rb:276:in `rescue in establish_connection'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis/client.rb:271:in `establish_connection'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis/client.rb:69:in `connect'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis/client.rb:290:in `ensure_connected'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis/client.rb:177:in `block in process'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis/client.rb:256:in `logging'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis/client.rb:176:in `process'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis/client.rb:84:in `call'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis.rb:410:in `block in keys'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis.rb:36:in `block in synchronize'
/usr/local/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis.rb:36:in `synchronize'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-3.0.4/lib/redis.rb:409:in `keys'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-namespace-1.2.1/lib/redis/namespace.rb:257:in `method_missing'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/redis-namespace-1.2.1/lib/redis/namespace.rb:210:in `keys'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.11.1/lib/sidekiq/api.rb:64:in `block in cleanup'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/connection_pool-1.0.0/lib/connection_pool.rb:48:in `with'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.11.1/lib/sidekiq.rb:67:in `redis'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.11.1/lib/sidekiq/api.rb:63:in `cleanup'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.11.1/lib/sidekiq/cli.rb:55:in `run'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.11.1/bin/sidekiq:8:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/bin/sidekiq:23:in `load'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/bin/sidekiq:23:in `<main>'
Any help I can get on this would be great. Thanks.