FS#58292 - [gitlab] database migration fails for version 10.7.0-1

Attached to Project: Community Packages
Opened by Jakub Klinkovský (lahwaacz) - Friday, 20 April 2018, 23:01 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 23 April 2018, 14:21 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 3
Private No

Details

The database migration procedure fails after upgrading to gitlab-10.7.0-1:

$ sudo -u gitlab -s /bin/sh -c "cd '/usr/share/webapps/gitlab'; bundle-2.3 exec rake db:migrate RAILS_ENV=production"
rake aborted!
LoadError: cannot load such file -- omniauth/strategies/jwt
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-jwt-0.0.2/lib/omniauth/jwt.rb:2:in `<top (required)>'
/usr/share/webapps/gitlab/config/application.rb:5: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.0/exe/rake:27:in `<top (required)>'

Caused by:
LoadError: cannot load such file -- omniauth-jwt
/usr/share/webapps/gitlab/config/application.rb:5: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.0/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Monday, 23 April 2018, 14:21 GMT
Reason for closing:  Fixed
Comment by DeLord (DeLord) - Friday, 20 April 2018, 23:54 GMT
I can confirm this problem. Are there any workarounds/bugfixes available that I can test?
Comment by Lauri Annala (noxoriaz) - Saturday, 21 April 2018, 05:58 GMT
Having the same issue as well.
Comment by Johan (Johnnei) - Sunday, 22 April 2018, 09:26 GMT
The guys at GitLab patched the omniauth-jwt gem permissions in the Omnibus installer: https://gitlab.com/gitlab-org/gitlab-qa/issues/212
To do the same locally: sudo chmod 644 /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-jwt-0.0.2/lib/omniauth/strategies/jwt.rb
This allowed me run the migrations and start GitLab again.
Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 22 April 2018, 17:54 GMT
Try rel -2.
Comment by Lauri Annala (noxoriaz) - Monday, 23 April 2018, 06:27 GMT
Works after updating to 10.7.0-2

Loading...