[DRE-maint] Bug#820991: gitlab: Fails to install with Failed to start gitlab.target: Unit gitlab.target is masked.

Olivier Berger olivier.berger at telecom-sudparis.eu
Thu Apr 14 12:08:25 UTC 2016


On Thu, Apr 14, 2016 at 01:52:15PM +0200, Olivier Berger wrote:
> 
> Installing on a fresh testing/stretch VM, I get :
> 
> Running final rake tasks and tweaks...
> gitlab_production database is not empty, skipping gitlab setup
> fatal: Not a git repository (or any of the parent directories): .git
> Precompiling assets...
> fatal: Not a git repository (or any of the parent directories): .git
> Failed to start gitlab.target: Unit gitlab.target is masked.
> dpkg: error processing package gitlab (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
>  gitlab
> 

Trying to restart it, I get the error, which leads me to :
# systemctl status gitlab.service -l
● gitlab.service - LSB: GitLab git repository management
   Loaded: loaded (/etc/init.d/gitlab; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since jeu. 2016-04-14 13:52:27 CEST; 10min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 29952 ExecStart=/etc/init.d/gitlab start (code=exited, status=1/FAILURE)

avril 14 13:52:27 base-stretch64 su[29962]: Successful su for gitlab by root
avril 14 13:52:27 base-stretch64 su[29962]: + ??? root:gitlab
avril 14 13:52:27 base-stretch64 su[29962]: pam_unix(su:session): session opened for user gitlab by (uid=0)
avril 14 13:52:27 base-stretch64 gitlab[29952]: Starting gitlab (via systemctl): gitlab.serviceFailed to start gitlab.service: Interactive authentication required.
avril 14 13:52:27 base-stretch64 gitlab[29952]: See system logs and 'systemctl status gitlab.service' for details.
avril 14 13:52:27 base-stretch64 gitlab[29952]:  failed!
avril 14 13:52:27 base-stretch64 systemd[1]: gitlab.service: Control process exited, code=exited status=1
avril 14 13:52:27 base-stretch64 systemd[1]: Failed to start LSB: GitLab git repository management.
avril 14 13:52:27 base-stretch64 systemd[1]: gitlab.service: Unit entered failed state.
avril 14 13:52:27 base-stretch64 systemd[1]: gitlab.service: Failed with result 'exit-code'.

Which looks strangely similar to #812841. However, which has suposedly been fixed in 8.4.3+dfsg-2.

Most likely, the advice in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812841#44 should be followed ?

I may have unarchived #812841 and merged, but let's keep that old one alone: it was already resurected once ;-)

Thanks in advance.

Best regards,
-- 
Olivier BERGER 
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)



More information about the Pkg-ruby-extras-maintainers mailing list