Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8707

Closed
Open
Created Feb 02, 2015 by Administrator@rootOwner

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.

Assignee
Assign to
Time tracking