[DRE-maint] Bug#845935: gitlab postinst fails

Johannes Schauer josch at debian.org
Sun Nov 27 04:31:02 UTC 2016


Package: gitlab
Version: 8.13.3+dfsg1-2
Severity: normal

Hi,

when upgrading my gitlab 8.8.2+dfsg-5 to 8.13.3+dfsg1-2 I encountered
the following error during package configuration:

Using health_check 2.4.0
Using jquery-turbolinks 2.1.0
Using devise-two-factor 3.0.0
Bundle complete! 135 Gemfile dependencies, 244 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Running final rake tasks and tweaks...
gitlab_production database is not empty, skipping gitlab setup
Precompiling assets...
rake aborted!
ExecJS::RuntimeError: 
(execjs):1
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
dpkg: error processing package gitlab (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-5) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)


It is not obvious to me what to run with "--trace". Would you like a
separate bug about adding some more helpful output to the postinst?

After reading the postinst script, I assumed that what failed was
rake-tasks.sh:

$ /usr/lib/gitlab/scripts/rake-tasks.sh --trace
gitlab_production database is not empty, skipping gitlab setup
Precompiling assets...
I, [2016-11-27T05:16:05.711600 #1428]  INFO -- : Writing /usr/share/gitlab/public/assets/application-baf30f6e3b767ce447b6336a8926954f3e5cbf33d224f80f966eb3215fba4a23.js
I, [2016-11-27T05:16:05.712798 #1428]  INFO -- : Writing /usr/share/gitlab/public/assets/application-baf30f6e3b767ce447b6336a8926954f3e5cbf33d224f80f966eb3215fba4a23.js.gz
rake aborted!
ExecJS::RuntimeError: 
(execjs):1
/usr/share/rubygems-integration/all/gems/ace-rails-ap-4.1.1/vendor/assets/javascripts/set_ace_paths.js.erb:4:in `block in _evaluate_template'
/usr/share/rubygems-integration/all/gems/ace-rails-ap-4.1.1/vendor/assets/javascripts/set_ace_paths.js.erb:2:in `each'
/usr/share/rubygems-integration/all/gems/ace-rails-ap-4.1.1/vendor/assets/javascripts/set_ace_paths.js.erb:2:in `_evaluate_template'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

But the last line of the output suggests that I'm supplying --trace to
the wrong process again...

Thanks!

cheers, josch



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