Starting unicorn: bash: bundle: command not found #66

Closed
dtunes opened this Issue Mar 6, 2013 · 5 comments

Comments

Projects
None yet
4 participants
Contributor

dtunes commented Mar 6, 2013

Finally after so many hours trying to setup GitLab-4-0 on our local server I managed to get it working on Centos 6.3.

Unfortunately, not everything is 100%. The /etc/init.d/ that I got from https://raw.github.com/gitlabhq/gitlab-recipes/4-0-stable/init.d/gitlab doesn't really work.

when I run sudo service gitlab start resque starts fine, unicorn doesn't.

Starting unicorn: bash: bundle: command not found
                                                           [FAILED]
Starting resque:                                           [  OK  ]

I have to switch to gitlab user, cd into /home/gitlab/gitlab and manually start unicorn:

bundle exec unicorn_rails -c config/unicorn.rb -E production -D

Once unicorn is running I can sudo service gitlab start

[gitlab@devserver gitlab]$ sudo service gitlab start
Starting unicorn: 
Starting resque:                                           [  OK  ]

The problem with this is that if my server restarts for whatever reason, I have to manually do it all over again.

Anyone know why Starting unicorn: bash: bundle: command not found is happening?

I'm using rvm to manage ruby versions and version is 1.9.3-p385, ruby is on my path.

This thing happend with me too. :(
Any possible fix?

I mapped manually all the executables of the ruby to the system so every user can execute the all comands.

Here is the command that I used:

ln -s /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/erb /sbin/erb
ln -s /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/gem /sbin/gem
ln -s /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/irb /sbin/irb
ln -s /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/rake /sbin/rake
ln -s /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/rdoc /sbin/rdoc
ln -s /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/ri /sbin/ri
ln -s /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/ruby /sbin/ruby
ln -s /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/testrb /sbin/testrb
ln -s /usr/local/rvm/gems/ruby-1.9.3-p429/bin/bundle /sbin/bundle
ln -s /usr/local/rvm/gems/ruby-1.9.3-p429/bin/ruby_noexec_wrapper /sbin/ruby_noexec_wrapper

@antonini antonini added a commit to antonini/gitlab-recipes that referenced this issue Jun 14, 2013

@antonini antonini Added a fix for the ticket #66 tu the CentOS baa4a27
Contributor

dtunes commented Jun 15, 2013

Just a suggestion, try rvmsudo....

Member

axilleas commented Aug 5, 2013

Hi, is this still an issue? Can it be closed?

Contributor

dtunes commented Aug 5, 2013

Yes, it can be closed.

Sent from my iPhone

On 6/08/2013, at 6:39 AM, Axilleas Pipinellis notifications@github.com
wrote:

Hi, is this still an issue? Can it be closed?


Reply to this email directly or view it on
GitHubhttps://github.com/gitlabhq/gitlab-recipes/issues/66#issuecomment-22127003
.

Razer6 closed this Aug 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment