Date: Wed, 3 Nov 2021 15:28:39 +0100 From: Xavier Humbert <xavier@groumpf.org> To: FreeBSD Ports ML <freebsd-ports@freebsd.org> Subject: Gitlab won't start. Error in rc file ? Message-ID: <912a208f-e147-12e5-5f53-31530ea300d0@groumpf.org>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------4OLLlS00JwGil0qTLBVKp9Ly Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------4OLLlS00JwGil0qTLBVKp9Ly--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?912a208f-e147-12e5-5f53-31530ea300d0>