Incorrect ruby environment
Created by: vbezruchkin
Hey guys,
I have the following problem. I suppose it's more related to RVM rather than gitlab. Anyhow, I'd better ask here in case anyone else used to have similar problem.
[email protected] [~]# sudo -u git -H /home/git/gitlab-shell/bin/check
[sudo] password for intellia:
/usr/bin/env: ruby: No such file or directory
This path is used in gitlab-shell files, and when I changed the path in each of the files in /home/git/gitlab-shell/bin to absolute paths everything worked fine:
[email protected] [~]# sudo -u git -H /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/home/git/repositories: OK
/home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.4.10
Send ping to redis server: PONG
I don't like this solution and I'm absolutely sure it's not a way to go :) So if you know how to make system see env ruby this I would really appreciate your advice.
Thanks in advance.