500错误:TypeError(没有将nil隐式转换为String):

时间:2016-12-01 12:02:59

标签: docker gitlab gitlab-ci docker-registry

我已启用我的GitLab服务器以使用托管在另一台服务器上的GitLab注册表。它是从源头安装的。

GitLab管理控制台指示注册表已启用且处于活动状态,但是当我尝试访问注册表时,会引发500错误。

生产日志显示以下内容

    Started GET "/root/Test/container_registry" for 10.188.144.64 at 2016-12-01 11:42:00 +0000
Processing by Projects::ContainerRegistryController#index as HTML
  Parameters: {"namespace_id"=>"root", "project_id"=>"Test"}
Completed 500 Internal Server Error in 61ms (ActiveRecord: 4.0ms)

TypeError (no implicit conversion of nil into String):
  lib/json_web_token/rsa_token.rb:20:in `read'
  lib/json_web_token/rsa_token.rb:20:in `key_data'
  lib/json_web_token/rsa_token.rb:24:in `key'
  lib/json_web_token/rsa_token.rb:28:in `public_key'
  lib/json_web_token/rsa_token.rb:33:in `kid'
  lib/json_web_token/rsa_token.rb:12:in `encoded'
  app/services/auth/container_registry_authentication_service.rb:30:in `full_access_token'
  app/models/project.rb:463:in `container_registry_repository'
  app/controllers/projects/container_registry_controller.rb:28:in `container_registry_repository'
  app/controllers/projects/container_registry_controller.rb:8:in `index'
  lib/gitlab/request_profiler/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'

任何有关解决此问题的建议或指导都将受到欢迎! 提前致谢。

0 个答案:

没有答案