Errno::ENOENT (No such file or directory @ rb_sysopen - /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/device_detector-1.0.0/regexes/client/feed_readers.yml)
Summary
After upgrading from 10.8.4 -> 11.0.0-rc2, any page load results in a 500. A sudo gitlab-ctl restart unicorn is required to address the issue.
Steps to reproduce
curl -s https://packages.gitlab.com/install/repositories/gitlab/unstable/script.deb.sh | sudo bash- Followed steps at https://docs.gitlab.com/omnibus/update/README.html#geo-deployment
- Experienced issue on the primary and the secondard
Example Project
N/A
What is the current bug behavior?
500 page appears.
What is the expected correct behavior?
Page renders correctly, 200.
Relevant logs and/or screenshots
Started GET "/admin/geo_nodes" for 10.1.1.148 at 2018-06-15 01:03:27 +0000
Processing by Admin::GeoNodesController#index as HTML
Completed 500 Internal Server Error in 116ms (ActiveRecord: 3.1ms | Elasticsearch: 0.0ms)
Errno::ENOENT (No such file or directory @ rb_sysopen - /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/device_detector-1.0.0/regexes/client/feed_readers.yml):
app/models/active_session.rb:26:in `block in set'
lib/gitlab/redis/wrapper.rb:17:in `block in with'
lib/gitlab/redis/wrapper.rb:17:in `with'
app/models/active_session.rb:19:in `set'
config/initializers/warden.rb:15:in `block (2 levels) in <top (required)>'
app/controllers/concerns/with_performance_bar.rb:9:in `peek_enabled?'
lib/gitlab/middleware/multipart.rb:95:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
ee/lib/gitlab/jira/middleware.rb:15: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:28:in `call'
lib/gitlab/middleware/read_only.rb:16:in `call'
lib/gitlab/request_context.rb:18:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.4.4p296 Gem Version: 2.7.6 Bundler Version:1.16.2 Rake Version: 12.3.1 Redis Version: 3.2.11 Git Version: 2.17.1 Sidekiq Version:5.1.3 Go Version: unknownGitLab information Version: 11.0.0-rc12-ee Revision: 17323d9 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.8 URL: https://ee-primary.local HTTP Clone URL: https://ee-primary.local/some-group/some-project.git SSH Clone URL: git@ee-primary.local:some-group/some-project.git Elasticsearch: no Geo: yes Geo node: Primary Using LDAP: no Using Omniauth: no
GitLab Shell Version: 7.1.4 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 >= 7.1.4 ? ... OK (7.1.4) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 1/1 ... ok 1/2 ... 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 Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml 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? ... skipped (no tmp uploads folder yet) 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: ... 1/1 ... yes 1/2 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.4.4) Git version >= 2.9.5 ? ... yes (2.17.1) Git user has default SSH configuration? ... yes Active users: ... 1 Elasticsearch version 5.1 - 5.5? ... skipped (elasticsearch is disabled)
Checking GitLab ... Finished
Possible fixes
A workaround is to sudo gitlab-ctl restart unicorn.