FS#58708 - [gitlab] gitlab-sidekiq is missing some ruby module

Attached to Project: Community Packages
Opened by Jakub Klinkovský (lahwaacz) - Wednesday, 23 May 2018, 21:36 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 02 June 2018, 13:09 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

I got this in my logs after upgrading to gitlab-10.8.0-1:

gitlab-sidekiq[31526]: /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.27.0/lib/rugged.rb:10:in `require': libhttp_parser.so.2.8: cannot open shared object file: No such file or directory - /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.27.0/lib/rugged/rugged.so (LoadError)
gitlab-sidekiq[31526]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.27.0/lib/rugged.rb:10:in `rescue in <top (required)>'
gitlab-sidekiq[31526]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.27.0/lib/rugged.rb:6:in `<top (required)>'
gitlab-sidekiq[31526]: from /opt/ruby2.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:81:in `require'
gitlab-sidekiq[31526]: from /opt/ruby2.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
gitlab-sidekiq[31526]: from /opt/ruby2.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:76:in `each'
gitlab-sidekiq[31526]: from /opt/ruby2.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:76:in `block in require'
gitlab-sidekiq[31526]: from /opt/ruby2.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:65:in `each'
gitlab-sidekiq[31526]: from /opt/ruby2.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/runtime.rb:65:in `require'
gitlab-sidekiq[31526]: from /opt/ruby2.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.2/lib/bundler.rb:114:in `require'
gitlab-sidekiq[31526]: from /usr/share/webapps/gitlab/config/application.rb:5:in `<top (required)>'
gitlab-sidekiq[31526]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/cli.rb:249:in `require'
gitlab-sidekiq[31526]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/cli.rb:249:in `boot_system'
gitlab-sidekiq[31526]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/lib/sidekiq/cli.rb:54:in `run'
gitlab-sidekiq[31526]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/sidekiq-5.0.5/bin/sidekiq:12:in `<top (required)>'
gitlab-sidekiq[31526]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/bin/sidekiq:22:in `load'
gitlab-sidekiq[31526]: from /usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/bin/sidekiq:22:in `<main>'
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 02 June 2018, 13:09 GMT
Reason for closing:  Fixed
Comment by Jakub Klinkovský (lahwaacz) - Wednesday, 23 May 2018, 21:44 GMT
After installing http-parser, I got a similar message complaining that javascript runtime is missing. Apparently something still depends on nodejs, removing that dependency should be reverted.
Comment by Jonas Hahnfeld (hahnjo) - Friday, 25 May 2018, 08:33 GMT
I requested nodejs to be removed in https://bugs.archlinux.org/task/58546, but my patch hasn't been applied completely. In particular:
- http-parser needs to become a dependency (was pulled in transitively before).
- The systemd units need to be patched (EXECJS_RUNTIME=Disabled)
- 'node_modules/' and some other directories can be removed, reducing package size by one third.
Comment by Jonas Hahnfeld (hahnjo) - Saturday, 26 May 2018, 18:01 GMT
For reference: This diff builds a package that is running fine on my server.
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 30 May 2018, 21:28 GMT
I built this from a dirty dir apparently where I played around with removing nodejs stuff. Will fix.
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 31 May 2018, 18:17 GMT
Please test now.
Comment by Jonas Hahnfeld (hahnjo) - Thursday, 31 May 2018, 18:40 GMT
gitlab 10.8.2-1 doesn't depend on http-parser -> can't work (without testing)
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 31 May 2018, 22:28 GMT
Alright, weird. I thought I had applied your patch. Try again.
Comment by Jonas Hahnfeld (hahnjo) - Saturday, 02 June 2018, 12:32 GMT
Works for me with gitlab 10.8.3-2

Loading...