Date: Wed, 3 Nov 2021 15:45:30 +0100 From: Matthias Fechner <idefix@fechner.net> To: Xavier Humbert <xavier@groumpf.org>, FreeBSD Ports ML <freebsd-ports@freebsd.org> Subject: Re: Gitlab won't start. Error in rc file ? Message-ID: <94c2b25f-a546-5492-4564-b579ac731cc6@fechner.net> In-Reply-To: <912a208f-e147-12e5-5f53-31530ea300d0@groumpf.org> References: <912a208f-e147-12e5-5f53-31530ea300d0@groumpf.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 03.11.2021 um 15:28 schrieb Xavier Humbert: > 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 > have you followed the installation manual? https://gitlab.fechner.net/mfechner/Gitlab-docu/-/blob/master/install/14.4-freebsd.md Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?94c2b25f-a546-5492-4564-b579ac731cc6>