Hi,

Just installed gitlab-ce from ports (took hours), but instance won't start. Just *service gitlab start* fails miserably.
Here is the end of the invocation of the rc file, with -x

[root@numenor ~]]# sh -x /usr/local/etc/rc.d/gitlab start
+ gitlab_init
+ test -f /etc/default/gitlab
+ /usr/sbin/pkg -N info -e gogs
+
+ /usr/sbin/pkg -N info -e 'gitolite*'
+
+ /usr/sbin/pkg -N info -e '*gitosis*'
+
+ /usr/sbin/pkg -N info -e gitea
+
+ [ root '!=' git ]
+ rm -f /usr/local/www/gitlab-ce/Gemfile.lock
+ su -l root -c 'cd /usr/local/www/gitlab-ce && /usr/local/bin/bundle install --local --quiet' Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
+ chown git /usr/local/www/gitlab-ce/Gemfile.lock
+ rm -f /usr/local/share/gitaly/ruby/Gemfile.lock
+ su -l root -c 'cd /usr/local/share/gitaly/ruby && /usr/local/bin/bundle install --local --quiet' Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
+ echo '"'
+ echo '"'
+ eval su - git -c '"/usr/local/etc/rc.d/gitlab' 'start"'
+ su - git -c '/usr/local/etc/rc.d/gitlab start'
fatal: unrecognized command '/usr/local/etc/rc.d/gitlab start'
+ exit

The last fatal line led me to think of inappropriate file perms, but the full path is og+rX. Digging further, I found that user *git* is not allowed to execute any command. However, git shell *is* installed, liste in /etc/shells, and id the login shell for user git

Any idea before I post to oGitlab forum, which is more Linux-centric, and probably won't help in this very matter ?

Cheers, Xavier

--
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Senior Engineer
https://www.amdh.fr

Reply via email to