Open Haso58 opened 4 years ago
no one? this problem is staying no matter what I do
I'm getting the same error. no luck. I've tried with 12.x and now upgraded to 13.x, the issue still the same.
I'm using Nginx reverse proxy with lets-encrypt certificate.
Have the same issue, here the traceback on the call to the registry:
Started GET "/xxx/xxx/container_registry" for 141.13.230.29 at 2020-08-19 07:56:03 +0000
Processing by Projects::Registry::RepositoriesController#index as HTML
Parameters: {"namespace_id"=>"xxx", "project_id"=>"xxx"}
Completed 500 Internal Server Error in 36ms (ActiveRecord: 3.9ms | Elasticsearch: 0.0ms | Allocations: 13907)
Errno::EACCES (Permission denied @ rb_sysopen - /certs/registry.key):
lib/json_web_token/rsa_token.rb:23:in `read'
lib/json_web_token/rsa_token.rb:23:in `key_data'
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:51:in `access_token'
app/services/auth/container_registry_authentication_service.rb:32:in `full_access_token'
app/models/container_repository.rb:39:in `registry'
app/models/container_repository.rb:14:in `client'
app/models/container_repository.rb:63:in `manifest'
app/models/container_repository.rb:67:in `tags'
app/models/container_repository.rb:87:in `has_tags?'
app/controllers/projects/registry/repositories_controller.rb:57:in `block (2 levels) in ensure_root_container_repository!'
app/controllers/projects/registry/repositories_controller.rb:56:in `tap'
app/controllers/projects/registry/repositories_controller.rb:56:in `block in ensure_root_container_repository!'
app/controllers/projects/registry/repositories_controller.rb:53:in `tap'
app/controllers/projects/registry/repositories_controller.rb:53:in `ensure_root_container_repository!'
app/controllers/application_controller.rb:491:in `set_current_admin'
lib/gitlab/session.rb:11:in `with_session'
app/controllers/application_controller.rb:482: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:476:in `set_locale'
lib/gitlab/error_tracking.rb:50:in `with_context'
app/controllers/application_controller.rb:541:in `sentry_context'
app/controllers/application_controller.rb:469:in `block in set_current_context'
lib/gitlab/application_context.rb:52:in `block in use'
lib/gitlab/application_context.rb:52:in `use'
lib/gitlab/application_context.rb:20:in `with_context'
app/controllers/application_controller.rb:462:in `set_current_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:140:in `call'
lib/gitlab/middleware/read_only/controller.rb:51:in `call'
lib/gitlab/middleware/read_only.rb:18:in `call'
lib/gitlab/middleware/same_site_cookies.rb:27:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/middleware/handle_ip_spoof_attack_error.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:60:in `call'
lib/gitlab/middleware/release_env.rb:12:in `call'
As it says permission error but even setting 777 on the key does not help
Update: Issue were the permissions on the certs directory on the file system for me
Hope this helps someone
Hi,
I followed this guide https://github.com/sameersbn/docker-gitlab/blob/master/docs/container_registry.md to activate gitlab docker registry. But I am getting a 500 Error when I click on container-registry. I found an identical issue the fix was to upgrade redis to redis:4.0.9-1 but I am already using redis:4.0.9-2. Here is my yml file. I hope someone can help me because I don't know what to do anymore.
this is the log what comes from registry: