Random repositories display "An error occurred while loading commit signatures"
Random repositories display "An error occurred while loading commit signatures"
On an instance with only few users - and only one active user - random repositories display the message "An error occurred while loading commit signatures" and the spinner for GPG Signature keeps on spinning. On hover, it displays the message "GPG signature (loading...)"
Steps to reproduce
No idea. Some projects with this error are new, other are old. Both old and new projects exist with the same permissions, but don't have this problem. However, I suspect it is connected to #54615 (moved), since I have multiple e-mail addresses for all the GPG keys I use.
Example Project
https://gitlab.com/tlex/ceph_exporter
What is the current bug behavior?
The frontend can't load the GPG signature for the commits and fails.
What is the expected correct behavior?
Either the "Verified" or the "Unverified" label to be visible.
Relevant logs and/or screenshots
As commented on #50903 (closed):
==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 500 Internal Server Error in 363ms (ActiveRecord: 7.0ms)
GPGME::Error::General (General error):
lib/gitlab/gpg/commit.rb:72:in `verified_signature'
lib/gitlab/gpg/commit.rb:103:in `verification_status'
lib/gitlab/gpg/commit.rb:87:in `attributes'
lib/gitlab/gpg/commit.rb:79:in `block in create_cached_signature!'
lib/gitlab/gpg/commit.rb:67:in `block in using_keychain'
lib/gitlab/gpg.rb:103:in `optimistic_using_tmp_keychain'
lib/gitlab/gpg.rb:84:in `block in using_tmp_keychain'
lib/gitlab/gpg.rb:83:in `synchronize'
lib/gitlab/gpg.rb:83:in `using_tmp_keychain'
lib/gitlab/gpg/commit.rb:53:in `using_keychain'
lib/gitlab/gpg/commit.rb:78:in `create_cached_signature!'
lib/gitlab/gpg/commit.rb:38:in `signature'
app/models/commit.rb:336:in `signature'
app/controllers/projects/commits_controller.rb:48:in `block (3 levels) in signatures'
app/controllers/projects/commits_controller.rb:45:in `map'
app/controllers/projects/commits_controller.rb:45:in `block (2 levels) in signatures'
app/controllers/projects/commits_controller.rb:42:in `signatures'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:419:in `set_locale'
lib/gitlab/middleware/multipart.rb:101:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:17:in `call'
lib/gitlab/etag_caching/middleware.rb:11:in `call'
lib/gitlab/middleware/rails_queue_duration.rb:22:in `call'
lib/gitlab/metrics/rack_middleware.rb:15:in `block in call'
lib/gitlab/metrics/transaction.rb:53:in `run'
lib/gitlab/metrics/rack_middleware.rb:15:in `call'
lib/gitlab/middleware/read_only/controller.rb:38:in `call'
lib/gitlab/middleware/read_only.rb:16:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/request_context.rb:20:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'
Output of checks
This bug also happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.4.5p335 Gem Version: 2.7.6 Bundler Version:1.16.6 Rake Version: 12.3.1 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.1 Go Version: go1.6.2 linux/amd64
GitLab information Version: 11.5.1 Revision: c90ae59 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.ix.ai HTTP Clone URL: https://gitlab.ix.ai/some-group/some-project.git SSH Clone URL: ssh://git@gitlab.ix.ai:22222/some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: gitlab
GitLab Shell Version: 8.4.1 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab Shell ...GitLab Shell version >= 8.4.1 ? ... OK (8.4.1) hooks directories in repos are links: ... 2/6 ... ok 2/7 ... ok 2/8 ... ok 2/9 ... ok 2/10 ... ok 1/14 ... ok 1/18 ... ok 14/20 ... ok 14/21 ... ok 1/22 ... ok 14/25 ... ok 2/30 ... ok 14/31 ... ok 18/32 ... ok 23/41 ... ok 21/42 ... ok 23/50 ... ok 23/52 ... ok 23/53 ... ok 27/55 ... ok 18/56 ... ok 18/57 ... ok 28/58 ... ok 28/59 ... ok 29/61 ... ok 28/62 ... ok 28/63 ... ok 28/64 ... ok 23/65 ... ok 27/66 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
IMAP server credentials are correct? ... yes Init.d configured correctly? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 2/6 ... yes 2/7 ... yes 2/8 ... yes 2/9 ... yes 2/10 ... yes 1/14 ... yes 1/18 ... yes 14/20 ... yes 14/21 ... yes 1/22 ... yes 14/25 ... yes 2/30 ... yes 14/31 ... yes 18/32 ... yes 23/41 ... yes 21/42 ... yes 23/50 ... yes 23/52 ... yes 23/53 ... yes 27/55 ... yes 18/56 ... yes 18/57 ... yes 28/58 ... yes 28/59 ... yes 29/61 ... yes 28/62 ... yes 28/63 ... yes 28/64 ... yes 23/65 ... yes 27/66 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.4.5) Git version >= 2.9.5 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 4
Checking GitLab ... Finished