[DRE-maint] Bug#862329: gitlab: fails gitlab install on stretch with alternative gitlab user while configuring dbconfig-common
Patrik Hagedorn
patrik.hagedorn at profitbricks.com
Thu May 11 11:30:39 UTC 2017
Package: gitlab
Version: 8.13.11+dfsg1-5
Severity: grave
Justification: renders package unusable
Installing the gitlab package via apt on a clean Stretch environment resulted
in an dpkg error if the gitlab default user is changed from 'gitlab' to
something like 'git' in the debconf installation process (probably a common
use-case):
*** OUTPUT OF 'sudo apt-get install gitlab' ***
[...]
Creating/updating git user account...
adduser: Warning: The home directory `/var/lib/gitlab' does not belong to the
user you are currently creating.
Making git owner of /var/lib/gitlab...
Creating runtime directories for gitlab...
Updating file permissions...
Configuring hostname and email...
Registering /usr/lib/tmpfiles.d/gitlab.conf via ucf
Creating config file /usr/lib/tmpfiles.d/gitlab.conf with new version
Registering /etc/gitlab-shell/config.yml via ucf
Creating config file /etc/gitlab-shell/config.yml with new version
Registering /etc/gitlab/gitlab.yml via ucf
Creating config file /etc/gitlab/gitlab.yml with new version
Registering /etc/gitlab/gitlab-debian.conf via ucf
Creating config file /etc/gitlab/gitlab-debian.conf with new version
Creating config file /etc/nginx/sites-available/localhost with new version
Reloading nginx configuration...
dbconfig-common: writing config to /etc/dbconfig-common/gitlab.conf
Replacing config file /etc/dbconfig-common/gitlab.conf with new version
dbconfig-common: flushing administrative password
dpkg: error processing package gitlab (--configure):
subprocess installed post-installation script returned error exit status 10
Processing triggers for libc-bin (2.24-10) ...
Processing triggers for systemd (232-22) ...
Errors were encountered while processing:
gitlab
E: Sub-process /usr/bin/dpkg returned an error code (1)
*** END OF OUTPUT ***
This is the generated '/etc/dbconfig-common/gitlab.conf':
*** CONTENT OF '/etc/dbconfig-common/gitlab.conf' ***
# automatically generated by the maintainer scripts of gitlab
# any changes you make will be preserved, though your comments
# will be lost! to change your settings you should edit this
# file and then run "dpkg-reconfigure gitlab"
# dbc_install: configure database with dbconfig-common?
# set to anything but "true" to opt out of assistance
dbc_install=''
# dbc_upgrade: upgrade database with dbconfig-common?
# set to anything but "true" to opt out of assistance
dbc_upgrade=''
# dbc_remove: deconfigure database with dbconfig-common?
# set to anything but "true" to opt out of assistance
dbc_remove=''
# dbc_dbtype: type of underlying database to use
# this exists primarily to let dbconfig-common know what database
# type to use when a package supports multiple database types.
# don't change this value unless you know for certain that this
# package supports multiple database types
dbc_dbtype=''
# dbc_dbuser: database user
# the name of the user who we will use to connect to the database.
dbc_dbuser='10 gitlab/db/app-user doesn'\''t exist'
# dbc_dbpass: database user password
# the password to use with the above username when connecting
# to a database, if one is required
dbc_dbpass=''
# dbc_dballow: allowed host to connect from
# only for database types that support specifying the host from
# which the database user is allowed to connect from
# this string defines for which host the dbc_dbuser is allowed
# to connect
# this value is only really used again when you reconfigure the
# package
dbc_dballow=''
# dbc_dbserver: database host.
# leave unset to use localhost (or a more efficient local method
# if it exists).
dbc_dbserver=''
# dbc_dbport: remote database port
# leave unset to use the default. only applicable if you are
# using a remote database.
dbc_dbport=''
# dbc_dbname: name of database
# this is the name of your application's database.
dbc_dbname='gitlab'
# dbc_dbadmin: name of the administrative user
# this is the administrative user that is used to create all of the above
# The exception is the MySQL/MariaDB localhost case, where this value is
# ignored and instead is determined from /etc/mysql/debian.cnf.
dbc_dbadmin=''
# dbc_basepath: base directory to hold database files
# leave unset to use the default. only applicable if you are
# using a local (filesystem based) database.
dbc_basepath=''
##
## postgresql specific settings. if you don't use postgresql,
## you can safely ignore all of these
##
# dbc_ssl: should we require ssl?
# set to "true" to require that connections use ssl
dbc_ssl=''
# dbc_authmethod_admin: authentication method for admin
# dbc_authmethod_user: authentication method for dbuser
# see the section titled "AUTHENTICATION METHODS" in
# /usr/share/doc/dbconfig-common/README.pgsql for more info
dbc_authmethod_admin=''
dbc_authmethod_user=''
##
## end postgresql specific settings
##
*** END OF FILE '/etc/dbconfig-common/gitlab.conf' ***
Please see the value of 'dbc_dbuser' as it contains:
dbc_dbuser='10 gitlab/db/app-user doesn'\''t exist'
Hope this helps.
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64
(x86_64)
Kernel: Linux 4.9.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gitlab depends on:
ii adduser 3.115
ii asciidoctor 1.5.4-2
ii bc 1.06.95-9+b3
ii bundler 1.13.6-2
ii dbconfig-pgsql 2.0.8
ii debconf [debconf-2.0] 1.5.60
ii git 1:2.11.0-2
ii gitlab-shell 3.6.6-4
ii gitlab-workhorse 0.8.5+debian-3+b2
ii init-system-helpers 1.48
ii libjs-chartjs 1.0.2-1
ii libjs-clipboard 1.4.2-1
ii libjs-fuzzaldrin-plus 0.3.1+git.20161008.da2cb58+dfsg-4
ii libjs-graphael 0.5+dfsg-1
ii libjs-jquery-cookie 11-3
ii libjs-jquery-history 11-3
ii libjs-jquery-nicescroll 3.6.6-1
ii lsb-base 9.20161125
ii nginx 1.10.3-1
ii nginx-full [nginx] 1.10.3-1
ii nodejs 4.8.2~dfsg-1
ii openssh-client 1:7.4p1-10
ii postfix [mail-transport-agent] 3.1.4-4
ii postgresql-client 9.6+181
ii postgresql-client-9.6 [postgresql-client 9.6.2-2
ii postgresql-contrib 9.6+181
ii rake 10.5.0-2
ii redis-server 3:3.2.6-1
ii ruby 1:2.3.3
ii ruby-ace-rails-ap 4.1.1-1
ii ruby-activerecord-session-store 1.0.0-2
ii ruby-acts-as-taggable-on 4.0.0-2
ii ruby-addressable 2.4.0-1
ii ruby-after-commit-queue 1.3.0-1
ii ruby-akismet 2.0.0-1
ii ruby-allocations 1.0.3-1+b2
ii ruby-asana 0.4.0-1
ii ruby-attr-encrypted 3.0.1-2
ii ruby-babosa 1.0.2-2
ii ruby-base32 0.3.2-3
ii ruby-bootstrap-sass 3.3.5.1-5
ii ruby-browser 2.2.0-2
ii ruby-cal-heatmap-rails 3.6.0+dfsg-1
ii ruby-carrierwave 0.10.0+gh-4
ii ruby-charlock-holmes 0.7.3+dfsg-2+b3
ii ruby-chronic 0.10.2-3
ii ruby-chronic-duration 0.10.6-1
ii ruby-coffee-rails 4.1.0-2
ii ruby-coffee-script-source 1.10.0-1
ii ruby-connection-pool 2.2.0-1
ii ruby-creole 0.5.0-2
ii ruby-d3-rails 3.5.6+dfsg-1
ii ruby-default-value-for 3.0.1-1
ii ruby-devise 4.2.0-1
ii ruby-devise-two-factor 3.0.0-2
ii ruby-diffy 3.0.6-1
ii ruby-doorkeeper 4.2.0-3
ii ruby-dropzonejs-rails 0.7.1-1
ii ruby-email-reply-parser 0.5.8-1
ii ruby-fog-aws 0.12.0-1
ii ruby-fog-azure 0.0.2-1
ii ruby-fog-core 1.42.0-1
ii ruby-fog-google 0.3.2-1
ii ruby-fog-local 0.3.0-1
ii ruby-fog-openstack 0.1.6-4
ii ruby-fog-rackspace 0.1.1-4
ii ruby-fogbugz 0.2.1-3
ii ruby-font-awesome-rails 4.6.3.0-2
ii ruby-gemnasium-gitlab-service 0.2.6-1
ii ruby-gemojione 3.1.0-2
ii ruby-github-linguist 4.7.2-2
ii ruby-github-markup 1.5.1+dfsg-1
ii ruby-gitlab-flowdock-git-hook 1.0.1-2
ii ruby-gitlab-git 10.7.0-1
ii ruby-gollum-lib 4.2.1+debian-1
ii ruby-gon 6.1.0-1
ii ruby-grape 0.16.2-2
ii ruby-grape-entity 0.6.0-1
ii ruby-hamlit 2.7.5-1
ii ruby-health-check 2.4.0-1
ii ruby-hipchat 1.5.2-3
ii ruby-html-pipeline 1.11.0-1
ii ruby-htmlentities 4.3.3-1
ii ruby-httparty 0.13.7-1
ii ruby-influxdb 0.2.3-1
ii ruby-jquery-atwho-rails 1.3.2-2
ii ruby-jquery-rails 4.2.1-2
ii ruby-jquery-scrollto-rails 1.4.3+dfsg-1
ii ruby-jquery-turbolinks 2.1.0~dfsg-1
ii ruby-jquery-ui-rails 6.0.1+dfsg-2
ii ruby-kaminari 0.17.0-3
ii ruby-licensee 8.0.0-2
ii ruby-loofah 2.0.3-2
ii ruby-mail 2.6.4+dfsg1-1
ii ruby-mail-room 0.8.1-1
ii ruby-method-source 0.8.2-2
ii ruby-mousetrap-rails 1.4.6-6
ii ruby-nested-form 0.3.2-2
ii ruby-net-ssh 1:3.2.0-1
ii ruby-nokogiri 1.6.8.1-1
ii ruby-nprogress-rails 0.1.6.7-2
ii ruby-oauth2 1.2.0-1
ii ruby-octokit 4.3.0-1
ii ruby-oj 2.17.4-1
ii ruby-omniauth 1.3.1-1
ii ruby-omniauth-auth0 1.4.1-1
ii ruby-omniauth-azure-oauth2 0.0.6-1
ii ruby-omniauth-bitbucket 0.0.2-1
ii ruby-omniauth-cas3 1.1.3-1
ii ruby-omniauth-crowd 2.2.3-2
ii ruby-omniauth-facebook 4.0.0-2
ii ruby-omniauth-github 1.1.2-2
ii ruby-omniauth-gitlab 1.0.2-1
ii ruby-omniauth-google-oauth2 0.4.1-1
ii ruby-omniauth-kerberos 0.3.0-3
ii ruby-omniauth-ldap 1.0.5-1
ii ruby-omniauth-saml 1.7.0-1
ii ruby-omniauth-shibboleth 1.2.1-1
ii ruby-omniauth-twitter 1.2.1-2
ii ruby-org 0.9.12-2
ii ruby-paranoia 2.1.3-1
ii ruby-pg 0.18.4-2
ii ruby-premailer-rails 1.9.2-2
ii ruby-prof 0.16.2+dfsg-2
ii ruby-rack-attack 4.3.1-1
ii ruby-rack-cors 0.4.0-1
ii ruby-rack-oauth2 1.4.0-1
ii ruby-rails 2:4.2.7.1-1
ii ruby-rails-deprecated-sanitizer 1.0.3-2
ii ruby-rainbow 2.1.0-1
ii ruby-raphael-rails 2.1.2~dfsg-1
ii ruby-recaptcha 3.2.0-2
ii ruby-redcarpet 3.3.4-2
ii ruby-redcloth 4.3.2-2
ii ruby-redis-namespace 1.5.2-3
ii ruby-redis-rails 4.0.0-1
ii ruby-request-store 1.3.0-1
ii ruby-responders 2.3.0-1
ii ruby-rouge 2.0.2-1
ii ruby-rqrcode-rails3 0.1.7-1
ii ruby-sanitize 2.1.0-2
ii ruby-sass-rails 5.0.6-1
ii ruby-seed-fu 2.3.5-1
ii ruby-select2-rails 3.5.9.3-2
ii ruby-sentry-raven 2.1.2-2
ii ruby-settingslogic 2.0.9-3
ii ruby-sidekiq 4.2.3+dfsg-1
ii ruby-sidekiq-cron 0.4.2-6
ii ruby-sinatra 1.4.7-5
ii ruby-six 0.2.0-3
ii ruby-slack-notifier 1.2.1-1
ii ruby-sprockets 3.7.0-1
ii ruby-sprockets-es6 0.9.2-1
ii ruby-state-machines-activerecord 0.4.0-1
ii ruby-sys-filesystem 1.1.7-2
ii ruby-task-list 1.0.6-1
ii ruby-tinder 1.10.1-2
ii ruby-truncato 0.7.8-1
ii ruby-turbolinks 2.5.3-3
ii ruby-u2f 0.2.1-2
ii ruby-uglifier 2.7.2+dfsg-2
ii ruby-underscore-rails 1.8.2+dfsg-1
ii ruby-unf 0.1.4-2
ii ruby-unicorn-worker-killer 0.4.4-1
ii ruby-version-sorter 2.1.0+dfsg-1
ii ruby-virtus 1.0.5-3
ii ruby-vmstat 2.2.0-2
ii ruby-wikicloth 0.8.1+dfsg-4
ii ucf 3.0036
ii unicorn 5.2.0-1
Versions of packages gitlab recommends:
ii certbot 0.10.2-1
gitlab suggests no packages.
-- debconf information:
git/db/dbname: gitlab_production
* gitlab/ssl: false
git/install-error: abort
git/remote/port:
git/pgsql/authmethod-user: password
git/pgsql/changeconf: false
git/pgsql/admin-user: postgres
git/passwords-do-not-match:
git/dbconfig-reinstall: false
git/upgrade-error: abort
gitlab/letsencrypt: false
git/remote/newhost: localhost
git/pgsql/no-empty-passwords:
git/pgsql/method: TCP/IP
git/upgrade-backup: true
git/missing-db-package-error: abort
gitlab/purge_data: true
git/db/app-user: git at localhost
* git/database-type: pgsql
* git/dbconfig-install: true
* gitlab/fqdn: localhost
* git/remote/host: localhost
git/pgsql/authmethod-admin: ident
git/remove-error: abort
gitlab/letsencrypt_email:
git/dbconfig-upgrade: true
git/internal/skip-preseed: true
* gitlab/user: git
git/dbconfig-remove: true
git/purge: false
git/pgsql/manualconf:
git/internal/reconfiguring: false
-- System Information:
Debian Release: stretch/sid
APT prefers zesty-updates
APT policy: (500, 'zesty-updates'), (500, 'zesty-security'), (500, 'zesty')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.10.0-20-generic (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
More information about the Pkg-ruby-extras-maintainers
mailing list