[DRE-maint] Bug#914159: Is not working

David López Zajara (Er_Maqui) er_maqui at darkbolt.net
Sat Nov 24 03:48:50 GMT 2018


Hi,

Thanks for the response.

I've tested installing ruby-gpgme 2.0.13 as you suggested. Here's the
relevant log:

kanade:~# dpkg -i ruby-gpgme_2.0.13-1_amd64.deb
dpkg: warning: downgrading ruby-gpgme from 2.0.16-1+b1 to 2.0.13-1
(Reading database ... 210214 files and directories currently installed.)
Preparing to unpack ruby-gpgme_2.0.13-1_amd64.deb ...
Unpacking ruby-gpgme (2.0.13-1) over (2.0.16-1+b1) ...
Setting up ruby-gpgme (2.0.13-1) ...
Processing triggers for gitlab (11.3.10+dfsg-2) ...
Could not find gem 'gpgme' in any of the gem sources listed in your Gemfile.
#########################################################################
# Failed to detect gitlab dependencies; if you are in the middle of an #
# upgrade, this is probably fine, there will be another attempt later.  #
#                                                                       #
# If you are NOT in the middle of an upgrade, there is probably a real  #
# issue. Please report a bug.                                           #
#########################################################################

kanade:~# dpkg -l | grep gpgme
ii  libgpgme11:amd64
1.12.0-4                              amd64        GPGME - GnuPG Made Easy
(library)
ii  ruby-gpgme
2.0.13-1                              amd64        Ruby GPGME binding

Without restarting gitlab, I've tested to add the key. Here's the log:

Started POST "/profile/gpg_keys" for x.x.x.x at 2018-11-24 04:06:14 +0100
Processing by Profiles::GpgKeysController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]",
"gpg_key"=>"[FILTERED]"}
[ActiveJob] Enqueued ActionMailer::DeliveryJob (Job ID:
9dbc484b-d75d-453f-99e9-48f8600477b8) to Sidekiq(mailers) with arguments:
"Notify", "new_gpg_key_email", "deliver_now", 8
Redirected to https://git.example.com/profile/gpg_keys
Completed 302 Found in 564ms (ActiveRecord: 33.9ms)
[ActiveJob] [ActionMailer::DeliveryJob]
[9dbc484b-d75d-453f-99e9-48f8600477b8] Performing ActionMailer::DeliveryJob
from Sidekiq(mailers) with arguments: "Notify", "new_gpg_key_email",
"deliver_now", 8
Started GET "/profile/gpg_keys" for x.x.x.x at 2018-11-24 04:06:15 +0100
Processing by Profiles::GpgKeysController#index as HTML
Completed 200 OK in 205ms (Views: 190.8ms | ActiveRecord: 3.1ms)

Restarting gitlab fails because gem change. Log message (from syslog)

Nov 24 04:07:33 kanade systemd[1]: Stopped Gitlab Workhorse handles slow
HTTP requests for Gitlab..
Nov 24 04:07:33 kanade systemd[1]: Stopped Gitlab mailroom Worker.
Nov 24 04:07:33 kanade systemd[1]: Stopping GitLab Unicorn Server...
Nov 24 04:07:34 kanade systemd[1]: Stopped GitLab Unicorn Server.
Nov 24 04:07:34 kanade systemd[1]: gitlab-unicorn.service: Ignoring invalid
environment assignment 'for i in $(grep -v '#'
/etc/gitlab/gitlab-debian.conf | cut -d=-f 1)': /etc/default/gitlab
Nov 24 04:07:34 kanade systemd[1]: gitlab-unicorn.service: Ignoring invalid
environment assignment 'export app_user=${gitlab_user}': /etc/default/gitlab
Nov 24 04:07:34 kanade systemd[1]: Started GitLab Unicorn Server.
Nov 24 04:07:34 kanade systemd[1]: Started Gitlab mailroom Worker.
Nov 24 04:07:34 kanade systemd[1]: Started Gitlab Workhorse handles slow
HTTP requests for Gitlab..
Nov 24 04:07:34 kanade gitlab-workhorse[1771]:
time="2018-11-24T04:07:34+01:00" level=info msg=Starting
version="gitlab-workhorse (unknown version)"
Nov 24 04:07:34 kanade gitlab-sidekiq[32419]: 2018-11-24T03:07:34.384Z
32419 TID-2nzlbozz3 INFO: Pausing to allow workers to finish...
Nov 24 04:07:34 kanade gitlab-unicorn[1766]:
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:289:in `block in
verify_gemfile_dependencies_are_found!': Could not find gem 'gpgme' in any
of the gem sources listed in your Gemfile. (Bundler::$
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:257:in `each'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:257:in
`verify_gemfile_dependencies_are_found!'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:48:in `start'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:22:in `resolve'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:257:in `resolve'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:170:in `specs'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:237:in `specs_for'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:226:in `requested_specs'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:108:in `block in
definition_method'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:20:in `setup'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler.rb:107:in `setup'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/vendor_ruby/bundler/setup.rb:20:in `<top (required)>'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
Nov 24 04:07:34 kanade gitlab-unicorn[1766]: #011from
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
Nov 24 04:07:34 kanade systemd[1]: gitlab-unicorn.service: Main process
exited, code=exited, status=1/FAILURE
Nov 24 04:07:34 kanade systemd[1]: gitlab-unicorn.service: Failed with
result 'exit-code'.
Nov 24 04:07:34 kanade gitlab-mailroom[1769]:
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:289:in `block in
verify_gemfile_dependencies_are_found!': Could not find gem 'gpgme' in any
of the gem sources listed in your Gemfile. (Bundler:$
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:257:in `each'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:257:in
`verify_gemfile_dependencies_are_found!'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:48:in `start'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:22:in `resolve'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:257:in `resolve'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:170:in `specs'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:237:in `specs_for'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:226:in `requested_specs'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:108:in `block in
definition_method'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:20:in `setup'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler.rb:107:in `setup'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/vendor_ruby/bundler/setup.rb:20:in `<top (required)>'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
Nov 24 04:07:34 kanade gitlab-mailroom[1769]: #011from
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
Nov 24 04:07:34 kanade systemd[1]: gitlab-mailroom.service: Main process
exited, code=exited, status=1/FAILURE
Nov 24 04:07:34 kanade systemd[1]: gitlab-mailroom.service: Failed with
result 'exit-code'.
Nov 24 04:07:35 kanade gitlab-sidekiq[32419]: 2018-11-24T03:07:35.385Z
32419 TID-2nzlbozz3 INFO: Bye!
Nov 24 04:07:35 kanade systemd[1]: Stopped GitLab Sidekiq Worker.
Nov 24 04:07:35 kanade systemd[1]: Starting GitLab Sidekiq Worker...
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]:
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:289:in `block in
verify_gemfile_dependencies_are_found!': Could not find gem 'gpgme' in any
of the gem sources listed in your Gemfile. (Bundler::$
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:257:in `each'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:257:in
`verify_gemfile_dependencies_are_found!'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:48:in `start'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:22:in `resolve'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:257:in `resolve'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:170:in `specs'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:237:in `specs_for'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/definition.rb:226:in `requested_specs'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:108:in `block in
definition_method'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:20:in `setup'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler.rb:107:in `setup'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/vendor_ruby/bundler/setup.rb:20:in `<top (required)>'
Nov 24 04:07:35 kanade gitlab-sidekiq[1817]: #011from
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'


(That's probably because ruby_gpgme 2.0.13 is ruby 2.3.0
I've tried with ruby_gpgme 2.0.14 with same results (gitlab not working).

Also, for testing purposes only, I've tried to install ruby_gpgme 2.0.16
from apt repository, and after it, I've replaced this files with 2.0.13
ones:

/usr/lib/ruby/vendor_ruby/gpgme/compat.rb
/usr/lib/ruby/vendor_ruby/gpgme/constants.rb
/usr/lib/ruby/vendor_ruby/gpgme/crypto.rb
/usr/lib/ruby/vendor_ruby/gpgme/ctx.rb
/usr/lib/ruby/vendor_ruby/gpgme/data.rb
/usr/lib/ruby/vendor_ruby/gpgme/engine.rb
/usr/lib/ruby/vendor_ruby/gpgme/error.rb
/usr/lib/ruby/vendor_ruby/gpgme/io_callbacks.rb
/usr/lib/ruby/vendor_ruby/gpgme/key.rb
/usr/lib/ruby/vendor_ruby/gpgme/key_common.rb
/usr/lib/ruby/vendor_ruby/gpgme/key_sig.rb
/usr/lib/ruby/vendor_ruby/gpgme/misc.rb
/usr/lib/ruby/vendor_ruby/gpgme/signature.rb
/usr/lib/ruby/vendor_ruby/gpgme/sub_key.rb
/usr/lib/ruby/vendor_ruby/gpgme/user_id.rb
/usr/lib/ruby/vendor_ruby/gpgme/version.rb
/usr/lib/ruby/vendor_ruby/gpgme.rb

Doing this, gitlab started correctly, but, same failure appears.

At last, I've tested changes on 2.0.14 and 2.0.16 upstream uploads, and
they does not justify this problem. You can see it here:

https://salsa.debian.org/ruby-team/ruby-gpgme/commit/e6660d288aff2d6cffe5aa3baba7e9a270f61ec0
https://salsa.debian.org/ruby-team/ruby-gpgme/commit/c3c10ffae81926a742e83a1d85a06a7ab08415f9


Regards,

https://maqui.darkbolt.net/
Linux registered user ~#363219
PGP keys avaiables at KeyServ. ID: 0x4233E9F2
Los hombres somos esclavos de la historia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20181124/37f0da15/attachment-0001.html>


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