从原来的容器版,迁移到现在的Omnibus版后,点击新建项目或者设置就直接报错500。
使用gitlab-rake gitlab:doctor:secrets VERBOSE=1检查也都正常
具体报错如下:
Completed 500 Internal Server Error in 204ms (ActiveRecord: 19.0ms | Elasticsearch: 0.0ms | Allocations: 150769)
{"method":"GET","path":"/projects/new","format":"html","controller":"ProjectsController","action":"new","status":500,"time":"2024-10-10T06:26:10.387Z","params":[],"remote_ip":"192.168.2.98","user_id":1,"username":"root","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36","db_count":4,"db_write_count":0,"db_cached_count":1,"correlation_id":"xI0fPTA4Ff7","meta.user":"root","meta.caller_id":"ProjectsController#new","redis_calls":10,"redis_duration_s":0.001879,"redis_read_bytes":2254,"redis_write_bytes":1119,"redis_cache_calls":9,"redis_cache_duration_s":0.001488,"redis_cache_read_bytes":1745,"redis_cache_write_bytes":533,"redis_shared_state_calls":1,"redis_shared_state_duration_s":0.000391,"redis_shared_state_read_bytes":509,"redis_shared_state_write_bytes":586,"queue_duration_s":0.007835,"cpu_s":0.19,"exception.class":"NoMethodError","exception.message":"undefined method values' for nil:NilClass","exception.backtrace":["app/models/application_setting_implementation.rb:302:in
block in normalized_repository_storage_weights'","lib/gitlab/utils/strong_memoize.rb:30:in strong_memoize'","app/models/application_setting_implementation.rb:301:in
normalized_repository_storage_weights'","app/models/application_setting_implementation.rb:314:in pick_repository_storage'","lib/gitlab/current_settings.rb:20:in
method_missing'","app/models/concerns/has_repository.rb:23:in pick_repository_storage'","app/models/project.rb:72:in
block in class:Project'","app/models/project.rb:727:in initialize'","app/controllers/projects_controller.rb:54:in
new'","app/controllers/application_controller.rb:497:in set_current_admin'","lib/gitlab/session.rb:11:in
with_session'","app/controllers/application_controller.rb:488:in set_session_storage'","app/controllers/application_controller.rb:482:in
set_locale'","lib/gitlab/error_tracking.rb:51:in with_context'","app/controllers/application_controller.rb:547:in
sentry_context'","app/controllers/application_controller.rb:475: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:468:in `set_current_context'"],"db_duration_s":0.01898,"view_duration_s":0.0,"duration_s":0.20392}
Completed 500 Internal Server Error in 293ms (ActiveRecord: 1.8ms | Elasticsearch: 0.0ms | Allocations: 599357)