-
Notifications
You must be signed in to change notification settings - Fork 420
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
Can't start gitlab service. (CentOS 6.4) #121
Comments
What is the output of |
rvm env
which ruby
|
This is a path problem. In init service the rvm path is |
After being changed to /usr/local/rvm: service gitlab start
|
My advices: First check ruby: which ruby The result must looks like: /usr/local/bin/ruby If it is not necessary using rvm don't use it. yum remove rvm Than follow the white rabbit: You need follow one by one all steps correctly.. When you have got any problem during installation please share screens with us and we will try to solve them together. |
It seems to me that compile ruby from source is not correct. |
And than, please write the result of which ruby You've got to add ruby bin filepath to bash profile or adding a symbolic link maybe solve your problem. |
# ------- Login as git user (if you use username as git)
su - git
nano ~/.bash_profile
# -------- Make the following edits --------
# Change the PATH maybe you can fix ruby path or add your own system paths
PATH=$HOME/git/bin:$HOME/ruby/bin:$PATH:$HOME/bin;
# -------- Save and close the file --------
[git@server~] nano ~/.bashrc
# -------- Make the following edits --------
# Add this to the bottom. It's redundant but it solves a problem when gitlab calls /usr/bin/env
# Be sure what did you use above.. use same paths again.
PATH=$HOME/git/bin:$HOME/ruby/bin:$PATH:$HOME/bin;
# -------- Save and close the file --------
# Re-export your PATH Be sure what did you use above.. use same paths again.
[git@server~] PATH=$HOME/git/bin:$HOME/ruby/bin:$PATH:$HOME/bin;
# Verify your using the right version of Ruby now
[git@server~] which ruby
~/ruby/bin/ruby |
#121 (comment)
Found the solution. Thanks for the tips.
|
Cool, I'll change the |
@axilleas that sounds better I think :) |
The script has changed since you reported this and I think it handles rvm too. Closing. |
I ran up to the step: https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos#start-your-gitlab-instance
Then:
But (Ruby install via rvm.)
The text was updated successfully, but these errors were encountered: