Gitlab "bundler: command not found: unicorn_rails"
Created by: edouard-lopez
Hi,
when restarting gitlab with my user (not gitlab
one):
sudo service gitlab restart
I'm having a recurring issue which I can't pin down:
Starting the GitLab Unicorn web server...
bundler: command not found: unicorn_rails
Install missing gem executables with `bundle install`
Starting the GitLab Sidekiq event dispatcher...
Could not find rake-10.1.0 in any of the sources
Run `bundle install` to install missing gems.
Environment
- OS:
Ubuntu 12.04.3 LTS
- Gitlab:
6.0
→6.1
.
bundle install
Attempt to solve: cd /home/git/gitlab
sudo -u git -H bundle install
Output:
Your bundle is complete!
Gems in the groups development, test and postgres were not installed.
It was installed into ./vendor/bundle
bundle exec unicorn_rails
After reading this post about same issue on Gitlab 3.1
, I tried:
sudo -u git -H bundle exec unicorn_rails
Output:
E, [2013-10-06T12:53:29.739678 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:29.740003 #12824] ERROR -- : retrying in 0.5 seconds (4 tries left)
E, [2013-10-06T12:53:30.240487 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:30.240869 #12824] ERROR -- : retrying in 0.5 seconds (3 tries left)
E, [2013-10-06T12:53:30.741420 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:30.741872 #12824] ERROR -- : retrying in 0.5 seconds (2 tries left)
E, [2013-10-06T12:53:31.242512 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:31.242956 #12824] ERROR -- : retrying in 0.5 seconds (1 tries left)
E, [2013-10-06T12:53:31.743728 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:31.744091 #12824] ERROR -- : retrying in 0.5 seconds (0 tries left)
E, [2013-10-06T12:53:32.244666 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in `new'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in `bind_listen'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:229:in `listen'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:773:in `block in bind_new_listeners!'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:773:in `each'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:773:in `bind_new_listeners!'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:141:in `start'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/bin/unicorn_rails:209:in `<top (required)>'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/bin/unicorn_rails:23:in `load'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/bin/unicorn_rails:23:in `<main>'
eE, [2013-10-06T12:53:29.739678 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:29.740003 #12824] ERROR -- : retrying in 0.5 seconds (4 tries left)
E, [2013-10-06T12:53:30.240487 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:30.240869 #12824] ERROR -- : retrying in 0.5 seconds (3 tries left)
E, [2013-10-06T12:53:30.741420 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:30.741872 #12824] ERROR -- : retrying in 0.5 seconds (2 tries left)
E, [2013-10-06T12:53:31.242512 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:31.242956 #12824] ERROR -- : retrying in 0.5 seconds (1 tries left)
E, [2013-10-06T12:53:31.743728 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
E, [2013-10-06T12:53:31.744091 #12824] ERROR -- : retrying in 0.5 seconds (0 tries left)
E, [2013-10-06T12:53:32.244666 #12824] ERROR -- : adding listener failed addr=0.0.0.0:8080 (in use)
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in `new'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in `bind_listen'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:229:in `listen'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:773:in `block in bind_new_listeners!'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:773:in `each'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:773:in `bind_new_listeners!'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:141:in `start'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/unicorn-4.6.3/bin/unicorn_rails:209:in `<top (required)>'
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/bin/unicorn_rails:23:in `load'
0.0.0.0:8080
Listening on Checking what is listening on 0.0.0.0:8080
with nmap
nmap 0.0.0.0 -p8080
Output:
PORT STATE SERVICE
8080/tcp open http-proxynmap 0.0.0.0 -p8080
config/unicorn.rb
I check my /home/git/gitlab/config/unicorn.rb
listen "127.0.0.1:8181", :tcp_nopush => true
Any idea what causing this?