Docker Registry not working under same Domain
Summary
We have installed gitlab Omnibus 12.7 version, and to enable registry we use same domain with port 4567.
sudo gitlab-ctl reconfigure
is not giving any error.
When I checked status I get below error, It shows registry is down.
root@ip-172-30-1-190:/etc/gitlab# gitlab-ctl status
run: alertmanager: (pid 13256) 203s; run: log: (pid 1488) 4656698s
run: crond: (pid 13280) 203s; run: log: (pid 1504) 4656698s
run: gitaly: (pid 13316) 202s; run: log: (pid 1496) 4656698s
run: gitlab-workhorse: (pid 13332) 202s; run: log: (pid 1485) 4656698s
run: grafana: (pid 13364) 201s; run: log: (pid 1484) 4656698s
run: logrotate: (pid 13380) 201s; run: log: (pid 1514) 4656697s
run: nginx: (pid 17610) 54s; run: log: (pid 1491) 4656698s
run: node-exporter: (pid 14305) 170s; run: log: (pid 1498) 4656698s
run: postgres-exporter: (pid 14321) 169s; run: log: (pid 1511) 4656697s
down: postgresql: 1s, normally up, want up; run: log: (pid 1513) 4656697s
run: prometheus: (pid 15132) 138s; run: log: (pid 1503) 4656698s
run: redis: (pid 15160) 138s; run: log: (pid 1510) 4656697s
run: redis-exporter: (pid 15165) 137s; run: log: (pid 1497) 4656698s
down: registry: 1s, normally up, want up; run: log: (pid 16971) 2912501s
run: sidekiq: (pid 17692) 51s; run: log: (pid 1502) 4656698s
run: unicorn: (pid 15520) 124s; run: log: (pid 1515) 4656697s
Steps to reproduce
Omnibus 12.7
Same domain is used for gitlab https://gitlab.example.com
registry_external_url 'https://gitlab.example.com:4567'
gitlab_rails['registry_enabled'] = true
And Regonfigure
What is the current bug behavior?
We get 500 error page on url /<Project Name>/container_registry
What is the expected correct behavior?
Should show registry page
Relevant logs
Here is the rails log
Processing by Projects::Registry::RepositoriesController#index as HTML
Parameters: {"namespace_id"=>"nation", "project_id"=>"elixir-nation"}
Completed 500 Internal Server Error in 32ms (ActiveRecord: 6.9ms | Elasticsearch: 0.0ms)
OpenSSL::PKey::RSAError (Neither PUB key nor PRIV key: nested asn1 error):
lib/json_web_token/rsa_token.rb:27:in `initialize'
lib/json_web_token/rsa_token.rb:27:in `new'
lib/json_web_token/rsa_token.rb:27:in `key'
lib/json_web_token/rsa_token.rb:31:in `public_key'
lib/json_web_token/rsa_token.rb:36:in `kid'
lib/json_web_token/rsa_token.rb:14:in `encoded'
app/services/auth/container_registry_authentication_service.rb:39:in `access_token'
app/services/auth/container_registry_authentication_service.rb:20:in `full_access_token'
app/models/container_repository.rb:22:in `registry'
app/models/container_repository.rb:11:in `client'
app/models/container_repository.rb:46:in `manifest'
app/models/container_repository.rb:50:in `tags'
app/models/container_repository.rb:64:in `has_tags?'
app/controllers/projects/registry/repositories_controller.rb:48:in `block (2 levels) in ensure_root_container_repository!'
app/controllers/projects/registry/repositories_controller.rb:47:in `tap'
app/controllers/projects/registry/repositories_controller.rb:47:in `block in ensure_root_container_repository!'
app/controllers/projects/registry/repositories_controller.rb:44:in `tap'
app/controllers/projects/registry/repositories_controller.rb:44:in `ensure_root_container_repository!'
lib/gitlab/session.rb:11:in `with_session'
app/controllers/application_controller.rb:467:in `set_session_storage'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:461:in `set_locale'
lib/gitlab/application_context.rb:18:in `with_context'
app/controllers/application_controller.rb:453:in `set_current_context'
lib/gitlab/error_tracking.rb:34:in `with_context'
app/controllers/application_controller.rb:545:in `sentry_context'
lib/gitlab/request_profiler/middleware.rb:17:in `call'
lib/gitlab/middleware/go.rb:20:in `call'
lib/gitlab/etag_caching/middleware.rb:13:in `call'
lib/gitlab/middleware/multipart.rb:117:in `call'
lib/gitlab/middleware/read_only/controller.rb:48:in `call'
lib/gitlab/middleware/read_only.rb:18:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/middleware/request_context.rb:23:in `call'
config/initializers/fix_local_cache_middleware.rb:9:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:49:in `call'
lib/gitlab/middleware/release_env.rb:12:in `call'
Details of package version
12.7
Edited by Vishal Zambre