Gitlab installation based on gitolite fails

it is so frustrating: I am looking for a managable web-based solution based on gitolite. Redmine failed all the time due to missing or outdated ruby packages. At least I tried to use gitLab. My last guide that I’ve used was the regular one:

GitlabHQ

I reproduced each point, step by step, but there is no way to perform an errorfree setup:

This should be one of the final steps:

sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production

but the output tells me user ‘gitolite’ (=git) is not in gitolite group and how to fix that:

Checking Environment …

gitlab user is in gitolite group? … no
Try fixing it: sudo usermod -a -G gitolite gitlab

For more information see:
doc/install/installation.md in section “System Users”

Please fix the error above and rerun the checks.
Has no “-e” in ~gitolite/.profile … rake aborted!

No such file or directory – /var/lib/gitolite/.profile

/home/gitlab/gitlab/lib/tasks/gitlab/check.rake:320:in `read’

/home/gitlab/gitlab/lib/tasks/gitlab/check.rake:320:in check_issue_1056_shell_profile_error'
/home/gitlab/gitlab/lib/tasks/gitlab/check.rake:257:in
block (3 levels) in ‘

Tasks: TOP => gitlab:check => gitlab:env:check

(See full trace by running task with –trace

But there is no chance to handle this. The output remains unchanged. Even if an administrator account was created there is no way to start a Webserver to manage the account.

All the time “bad gateway”

Do you know how to fix that? Or do you know another suitable solution based on gitolite?

Thanks a lot – again!

  • Uncomon Git server error: “Refused pubkey” (but the key is tested valid)
  • Deleting Git Repository Gitolite?
  • gitolite git push FATAL denied
  • git branching with gitolite, how to checkout from master when in develop
  • Installed Gitolite using root (dumb), locked myself out of ssh
  • dealing with long personal branch names in git and gitolite
  • How to tell git to use the correct identity (name and email) for a given project?
  • converting from git to gitolite: do I change the repo's url?
  • 2 Solutions collect form web for “Gitlab installation based on gitolite fails”

    This appears to be a user or permissions problem.

    Does your /etc/passwd file and /etc/group file show the user ‘git’?

    > grep git /etc/passwd
    git:x:....
    > grep git /etc/group
    git:x:....
    

    If the user or group cannot be found there, it does not exist.

    In that case you will have to confirm that you followed the command that was mentioned in the tutorial above.

    > sudo adduser \
      --system \
      --shell /bin/sh \
      --gecos 'Git Version Control' \
      --group \
      --disabled-password \
      --home /home/git \
    git
    

    You will also have to have permissions to create such a user.

    Otherwise, after reading the documentation, It seems you are setting your $PATH to complete certain tasks as well as create a .profile file for the user.

    Confirm that the line …

    > sudo -u git -H sh -c 'printf "%b\n%b\n" "PATH=\$PATH:/home/git/bin" "export PATH" >> /home/git/.profile'
    

    creates the correct file .profile by running

    > sudo su git
    > ls -lah /home/git/ | grep .profile
    

    If grep doesn’t show a .profile file you might want to confirm your user has the right permissions to create the file.

    I’m noting this during an upgrade too, where there is no .profile file altogether …

    The name of this error is misleading, the actual issue is 1059:

    https://github.com/gitlabhq/gitlabhq/issues/1059

    I submitted a patch request to refer to correct issue in stacktrace:

    https://github.com/gitlabhq/gitlabhq/pull/2485

    Check permissions and content for .profile.

    Git Baby is a git and github fan, let's start git clone.