FS#59762 - [gitlab] upgrade to 11.2.0 fails with stacktrace

Attached to Project: Community Packages
Opened by Giovanni Harting (IdleGandalf) - Thursday, 23 August 2018, 00:47 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 23 August 2018, 10:38 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Migrating database from 11.1.4-2 to 11.2.0 fails with the following:

# su - gitlab -s /bin/sh -c "cd '/usr/share/webapps/gitlab'; EXECJS_RUNTIME=Disabled bundle-2.3 exec rake db:migrate RAILS_ENV=production --trace"
rake aborted!
LoadError: cannot load such file -- /etc/webapps/gitlab/boot
/usr/share/webapps/gitlab/config/application.rb:1:in `require'
/usr/share/webapps/gitlab/config/application.rb:1:in `<top (required)>'
/usr/share/webapps/gitlab/Rakefile:5:in `require'
/usr/share/webapps/gitlab/Rakefile:5:in `<top (required)>'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load_rakefile'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:703:in `raw_load_rakefile'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:104:in `block in load_rakefile'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:103:in `load_rakefile'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:82:in `block in run'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/bin/rake:22:in `load'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/bin/rake:22:in `<main>'


Additional info:
gitlab 11.2.0-1
gitlab-gitaly 0.118.0-1
gitlab-shell 2:8.1.1-1
gitlab-workhorse 6.0.0-1
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 23 August 2018, 10:38 GMT
Reason for closing:  Fixed
Comment by Giovanni Harting (IdleGandalf) - Thursday, 23 August 2018, 00:56 GMT
Seems like commit https://gitlab.com/gitlab-org/gitlab-ce/commit/4ee08b77bc5ae11553d59c182ea8292b77699115 changed config/application.rb line 1 from "require File.expand_path('../boot', __FILE__)" to "require File.expand_path('boot', __dir__)".

Changing it back fixes the problem.
Comment by coldsphinx (ColdSphinX) - Thursday, 23 August 2018, 05:05 GMT
Or we just link the file in the new path: ln -s /usr/share/webapps/gitlab/config/boot.rb /etc/webapps/gitlab/boot.rb

Loading...