gitlab-backup: already initialized constant Gitlab::Instrumentation::Redis::ActionCable
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
When creating a gitlab-backup, the following two warnings will be written to stderr:
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/instrumentation/redis.rb:9: warning: already initialized constant Gitlab::Instrumentation::Redis::ActionCable
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/instrumentation/redis.rb:9: warning: previous definition of ActionCable was here
The problem occurs on Debian Buster (10) and Bullseye (11). A newly deployed Debian 11 system with a freshly gitlab-ce installed show the warnings, too.
$ apt policy gitlab-ce
gitlab-ce:
Installed: 15.6.1-ce.0
Candidate: 15.6.1-ce.0
Version table:
*** 15.6.1-ce.0 500
500 https://packages.gitlab.com/gitlab/gitlab-ce/debian bullseye/main amd64 Packages
100 /var/lib/dpkg/status
Steps to reproduce
- Execute
/opt/gitlab/bin/gitlab-backup create - The warnings also appear when
gitlab-rake gitlab:env:inforesp.gitlab-rake gitlab:check SANITIZE=trueis executed.
What is the current bug behavior?
The backup (tar file) will be completed and is usable, but as written in the summary, two warnings will be reported:
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/instrumentation/redis.rb:9: warning: already initialized constant Gitlab::Instrumentation::Redis::ActionCable
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/instrumentation/redis.rb:9: warning: previous definition of ActionCable was here
What is the expected correct behavior?
Completing the backup w/o the two ruby warnings
Results of GitLab environment info
System information
System: Debian 11
Current User: git
Using RVM: no
Ruby Version: 2.7.6p219
Gem Version: 3.1.6
Bundler Version:2.3.15
Rake Version: 13.0.6
Redis Version: 6.2.7
Sidekiq Version:6.5.7
Go Version: unknown
GitLab information
Version: 15.6.1
Revision: 779fe6c4b74
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 13.8
URL: -
HTTP Clone URL: -
SSH Clone URL: -
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: cas3
GitLab Shell
Version: 14.13.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Results of GitLab application Check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.13.0 ? ... OK (14.13.0)
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Internal API available: OK
Redis available via internal API: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes
Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
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? ... skipped (no tmp uploads folder yet)
Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units)
Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units)
Projects have namespace: ...
2/1 ... yes
Redis version >= 6.0.0? ... yes
Ruby version >= 2.7.2 ? ... yes (2.7.6)
Git user has default SSH configuration? ... yes
Active users: ... 1
Is authorized keys file accessible? ... yes
GitLab configured to store new projects in hashed storage? ... yes
All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Edited by 🤖 GitLab Bot 🤖