[DRE-maint] Bug#894138: gitlab: 10.5.6 Problem compiling assets on post-install

David López Zajara (Er_Maqui) er_maqui at darkbolt.net
Tue Mar 27 13:03:52 UTC 2018


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

@praveen

I leave you here the "mostly" complete debug of a uninstall - purge -
reinstall of 10.5.6 version.

If you need any test, please tell me.


rin:~# apt-get remove gitlab
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dmeventd gitlab-shell gitlab-workhorse libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libbind9-140 libbind9-141
libdevmapper-event1.02.1 libdns-export190 libdns162 libdns169
libdns190 libhttp-parser2.1 libisc-export189 libisc160 libisc166
libisc189 libisccc140 libisccfg140 libisccfg144 libisl15
  liblua5.2-0 liblvm2app2.2 liblvm2cmd2.02 liblwres141 libmpfr4
libnl-route-3-200 libpython3.5-minimal libpython3.5-stdlib libre2-3
libsodium18 libtxc-dxtn-s2tc libvirt0 libxfont1 libyajl2
linux-image-4.12.0-2-amd64 linux-image-4.14.0-1-amd64
linux-image-4.14.0-2-amd64 lvm2 node-cross-spawn-async node-error-ex
  node-graceful-readlink node-is-arrayish node-jquery node-js-cookie
node-jszip-utils node-load-json-file node-parse-json node-path-type
node-read-pkg node-read-pkg-up node-strip-bom php7.0 php7.0-curl
php7.0-mbstring php7.0-mysql php7.0-xml php7.0-zip python-olefile
python3.5 python3.5-minimal python3.6-2to3
  ruby-asset-sync ruby-batch-loader ruby-cfpropertylist
ruby-fast-blank ruby-fission ruby-fog ruby-fog-atmos
ruby-fog-brightbox ruby-fog-cloudatcost ruby-fog-dynect
ruby-fog-ecloud ruby-fog-powerdns ruby-fog-profitbricks
ruby-fog-radosgw ruby-fog-riakcs ruby-fog-sakuracloud
ruby-fog-serverlove ruby-fog-softlayer
  ruby-fog-storm-on-demand ruby-fog-terremark ruby-fog-vmfusion
ruby-fog-voxel ruby-fog-vsphere ruby-fog-xenserver ruby-grape-logging
ruby-inflecto ruby-libvirt ruby-listen ruby-rb-inotify ruby-rbvmomi
ruby-trollop tcpd thin-provisioning-tools
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  gitlab
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 79.6 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 177484 files and directories currently installed.)
Removing gitlab (10.5.6+dfsg-1) ...
rin:~# dpkg --purge gitlab
(Reading database ... 163315 files and directories currently installed.)
Purging configuration files for gitlab (10.5.6+dfsg-1) ...
Removing: /var/lib/gitlab/public
Removing: /var/lib/gitlab/db
Removing: /var/lib/gitlab/repositories
Removing: /var/lib/gitlab/secrets.yml
Removing: /var/lib/gitlab/Gemfile.lock
Removing: /var/log/gitlab
Removing: /var/cache/gitlab
Removing: /run/gitlab
Removing: /var/lib/gitlab
Removing: /usr/share/gitlab/app/assets/javascripts/locale
Removing Database: gitlab_production
Removing user: gitlab
111
userdel: gitlab mail spool (/var/mail/gitlab) not found
userdel: gitlab home directory (/var/lib/gitlab) not found
Removing: /var/lib/gitlab
Found nginx site configuration at
/etc/nginx/sites-available/git-test.darkbolt.net...
Removing: /etc/nginx/sites-available/git-test.darkbolt.net
Removing: /etc/gitlab/gitlab-debian.conf
Removing: /etc/gitlab/gitlab.yml
Removing: /usr/lib/tmpfiles.d/gitlab.conf
Removing: /etc/gitlab-shell/config.yml
Removing: /etc/dbconfig-common/gitlab.conf
Processing triggers for systemd (238-3) ...
rin:~# apt-get install gitlab
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
libbind9-140 libbind9-141 libdns-export190 libdns162 libdns169
libdns190 libhttp-parser2.1 libisc-export189 libisc160 libisc166
libisc189 libisccc140 libisccfg140 libisccfg144 libisl15 liblua5.2-0
liblwres141 libmpfr4 libpython3.5-minimal
  libpython3.5-stdlib libre2-3 libsodium18 libtxc-dxtn-s2tc libxfont1
linux-image-4.12.0-2-amd64 linux-image-4.14.0-1-amd64
linux-image-4.14.0-2-amd64 node-cross-spawn-async node-error-ex
node-graceful-readlink node-is-arrayish node-load-json-file
node-parse-json node-path-type node-read-pkg node-read-pkg-up
  node-strip-bom php7.0 php7.0-curl php7.0-mbstring php7.0-mysql
php7.0-xml php7.0-zip python-olefile python3.5 python3.5-minimal
python3.6-2to3 ruby-listen ruby-rb-inotify tcpd
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  gitlab
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/42.3 MB of archives.
After this operation, 79.6 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package gitlab.
(Reading database ... 163153 files and directories currently installed.)
Preparing to unpack .../gitlab_10.5.6+dfsg-1_all.deb ...
Unpacking gitlab (10.5.6+dfsg-1) ...
Setting up gitlab (10.5.6+dfsg-1) ...
Creating/updating gitlab user account...
adduser: Warning: The home directory `/var/lib/gitlab' does not belong
to the user you are currently creating.
Making gitlab owner of /var/lib/gitlab...
Creating runtime directories for gitlab...
Updating file permissions...
Configuring hostname and email...
Configuring nginx with HTTPS...
Configuring gitlab with HTTPS...
Updating gitlab_url in gitlab-shell configuration...
Configuring letsencrypt...
Let's encrypt certificate already present.
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/git-test.darkbolt.net
with new version
Reloading nginx configuration...
dbconfig-common: writing config to /etc/dbconfig-common/gitlab.conf

Creating config file /etc/dbconfig-common/gitlab.conf with new version
creating postgres user gitlab:  already exists.
resetting password:  success.
creating database gitlab_production: success.
verifying database gitlab_production exists: success.
dbconfig-common: flushing administrative password
CREATE EXTENSION
Verifying we have all required libraries...
Resolving dependencies..............
Using rake 12.3.1
[...output ommited...]
Using wikicloth 0.8.1
Bundle complete! 172 Gemfile dependencies, 319 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Running final rake tasks and tweaks...
Initializing database...
/usr/lib/ruby/vendor_ruby/builder/xchar.rb:111: warning: constant
::Fixnum is deprecated
Missing Rails.application.secrets.secret_key_base for production
environment. The secret will be generated and stored in
config/secrets.yml.
Missing Rails.application.secrets.otp_key_base for production
environment. The secret will be generated and stored in
config/secrets.yml.
Missing Rails.application.secrets.db_key_base for production
environment. The secret will be generated and stored in
config/secrets.yml.
Missing Rails.application.secrets.openid_connect_signing_key for
production environment. The secret will be generated and stored in
config/secrets.yml.
- -- enable_extension("plpgsql")
[...output ommited...]
- -- initialize_schema_migrations_table()
   -> 0.1061s
/usr/lib/ruby/vendor_ruby/builder/xchar.rb:111: warning: constant
::Fixnum is deprecated
Installing node modules...
yarn at 1.5.1 node_modules/yarn
yarn install v1.5.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents at 1.1.3: The platform "linux" is incompatible with this module.
info "fsevents at 1.1.3" is an optional dependency and failed
compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 44.71s.
Precompiling locales...
/usr/lib/ruby/vendor_ruby/builder/xchar.rb:111: warning: constant
::Fixnum is deprecated
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/ru
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/fr
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/es
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/ja
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/zh_TW
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/ko
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/it
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/bg
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/nl_NL
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/zh_CN
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/pl_PL
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/de
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/pt_BR
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/eo
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/zh_HK
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/en
Created app.js in /usr/share/gitlab/app/assets/javascripts/locale/uk

All files created, make sure they are being added to your assets.
If they are not, you can add them with this line (configurable):

//= require_tree ./locale
//= require gettext/all

Precompiling assets...
/usr/lib/ruby/vendor_ruby/builder/xchar.rb:111: warning: constant
::Fixnum is deprecated
rake aborted!
Sprockets::Error: manifest requires environment for compilation
/var/lib/gems/2.5.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:178:in
`compile'
/var/lib/gems/2.5.0/gems/rake-12.3.1/exe/rake:27:in `'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
dpkg: error processing package gitlab (--configure):
 installed gitlab package post-installation script subprocess returned
error exit status 1
Processing triggers for systemd (238-3) ...
Errors were encountered while processing:
 gitlab
E: Sub-process /usr/bin/dpkg returned an error code (1)
rin:~#


https://maqui.darkbolt.net/
Linux registered user ~#363219
PGP keys avaiables at KeyServ. ID: 0x4233E9F2
Los hombres somos esclavos de la historia

-----BEGIN PGP SIGNATURE-----
Version: Mailvelope v2.2.0
Comment: https://www.mailvelope.com

wkYEAREIABAFAlq6QRUJEHxYwOBCM+nyAABzuQCffEK8buFJUOwKVGF9cd8y
9l/MW+cAoJvRxyuFViD1e0h+RK88IaUDUqQc
=MnnA
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20180327/ca74d798/attachment-0001.html>


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