安装完16.11.1版本后,后台保存设置时页面一直提示500错误,查看后台日志发现request timeout,以保存import source为例,save change后,production_json.log内容如下:
{
"method": "PATCH",
"path": "/admin/application_settings/general",
"format": "html",
"controller": "Admin::ApplicationSettingsController",
"action": "general",
"status": 500,
"time": "2024-05-20T00:40:10.428Z",
"params": [
{
"key": "_method",
"value": "patch"
},
{
"key": "authenticity_token",
"value": "[FILTERED]"
},
{
"key": "application_setting",
"value": {
"default_project_creation": "2",
"default_project_visibility": "0",
"default_snippet_visibility": "0",
"default_group_visibility": "0",
"restricted_visibility_levels": [
""
],
"import_sources": [
"",
"git",
"gitlab_project"
],
"project_export_enabled": "1",
"bulk_import_enabled": "0",
"enabled_git_access_protocol": "",
"custom_http_clone_url_root": "",
"rsa_key_restriction": "0",
"dsa_key_restriction": "0",
"ecdsa_key_restriction": "0",
"ed25519_key_restriction": "0",
"ecdsa_sk_key_restriction": "0",
"ed25519_sk_key_restriction": "0",
"disable_feed_token": "[FILTERED]"
}
}
],
"correlation_id": "01HY9Q07MHHDZTMZVN4NWZ90SZ",
"meta.caller_id": "Admin::ApplicationSettingsController#general",
"meta.remote_ip": "192.168.145.14",
"meta.feature_category": "not_owned",
"meta.user": "root",
"meta.user_id": 1,
"meta.client_id": "user/1",
"remote_ip": "192.168.145.14",
"user_id": 1,
"username": "root",
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36",
"queue_duration_s": 0.006419,
"request_urgency": "default",
"target_duration_s": 1,
"redis_calls": 8,
"redis_allowed_cross_slot_calls": 1,
"redis_duration_s": 0.001284,
"redis_read_bytes": 380,
"redis_write_bytes": 1090,
"redis_feature_flag_calls": 3,
"redis_feature_flag_duration_s": 0.000623,
"redis_feature_flag_read_bytes": 200,
"redis_feature_flag_write_bytes": 391,
"redis_sessions_calls": 3,
"redis_sessions_allowed_cross_slot_calls": 1,
"redis_sessions_duration_s": 0.000456,
"redis_sessions_read_bytes": 180,
"redis_sessions_write_bytes": 595,
"redis_shared_state_calls": 2,
"redis_shared_state_duration_s": 0.000205,
"redis_shared_state_write_bytes": 104,
"db_count": 6,
"db_write_count": 0,
"db_cached_count": 1,
"db_replica_count": 0,
"db_primary_count": 6,
"db_main_count": 6,
"db_ci_count": 0,
"db_main_replica_count": 0,
"db_ci_replica_count": 0,
"db_replica_cached_count": 0,
"db_primary_cached_count": 1,
"db_main_cached_count": 1,
"db_ci_cached_count": 0,
"db_main_replica_cached_count": 0,
"db_ci_replica_cached_count": 0,
"db_replica_wal_count": 0,
"db_primary_wal_count": 0,
"db_main_wal_count": 0,
"db_ci_wal_count": 0,
"db_main_replica_wal_count": 0,
"db_ci_replica_wal_count": 0,
"db_replica_wal_cached_count": 0,
"db_primary_wal_cached_count": 0,
"db_main_wal_cached_count": 0,
"db_ci_wal_cached_count": 0,
"db_main_replica_wal_cached_count": 0,
"db_ci_replica_wal_cached_count": 0,
"db_replica_duration_s": 0,
"db_primary_duration_s": 0.014,
"db_main_duration_s": 0.014,
"db_ci_duration_s": 0,
"db_main_replica_duration_s": 0,
"db_ci_replica_duration_s": 0,
"cpu_s": 0.063859,
"mem_objects": 45647,
"mem_bytes": 5226032,
"mem_mallocs": 22145,
"mem_total_bytes": 7051912,
"pid": 13253,
"worker_id": "puma_6",
"rate_limiting_gates": [],
"exception.class": "Rack::Timeout::RequestTimeoutException",
"exception.message": "Request ran for longer than 60000ms ",
"exception.backtrace": [
"lib/gitlab/url_blocker.rb:180:in `getaddrinfo'",
"lib/gitlab/url_blocker.rb:180:in `get_address_info'",
"lib/gitlab/url_blocker.rb:74:in `validate_url_with_proxy!'",
"lib/gitlab/url_blocker.rb:122:in `validate!'",
"app/validators/addressable_url_validator.rb:86:in `validate_each'",
"lib/gitlab/database/load_balancing/connection_proxy.rb:127:in `public_send'",
"lib/gitlab/database/load_balancing/connection_proxy.rb:127:in `block in write_using_load_balancer'",
"lib/gitlab/database/load_balancing/load_balancer.rb:133:in `block in read_write'",
"lib/gitlab/database/load_balancing/load_balancer.rb:204:in `retry_with_backoff'",
"lib/gitlab/database/load_balancing/load_balancer.rb:122:in `read_write'",
"lib/gitlab/database/load_balancing/connection_proxy.rb:126:in `write_using_load_balancer'",
"lib/gitlab/database/load_balancing/connection_proxy.rb:78:in `transaction'",
"app/services/application_settings/update_service.rb:51:in `update_settings'",
"app/services/application_settings/update_service.rb:12:in `execute'",
"app/controllers/admin/application_settings_controller.rb:212:in `perform_update'",
"app/controllers/admin/application_settings_controller.rb:50:in `block (2 levels) in <class:ApplicationSettingsController>'",
"app/controllers/application_controller.rb:500:in `set_current_admin'",
"lib/gitlab/session.rb:11:in `with_session'",
"app/controllers/application_controller.rb:491:in `set_session_storage'",
"lib/gitlab/i18n.rb:107:in `with_locale'",
"lib/gitlab/i18n.rb:113:in `with_user_locale'",
"app/controllers/application_controller.rb:482:in `set_locale'",
"app/controllers/application_controller.rb:475:in `set_current_context'",
"lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in `call'",
"lib/gitlab/middleware/memory_report.rb:13:in `call'",
"lib/gitlab/middleware/speedscope.rb:13:in `call'",
"lib/gitlab/database/load_balancing/rack_middleware.rb:23:in `call'",
"lib/gitlab/middleware/rails_queue_duration.rb:33:in `call'",
"lib/gitlab/etag_caching/middleware.rb:21:in `call'",
"lib/gitlab/metrics/rack_middleware.rb:16:in `block in call'",
"lib/gitlab/metrics/web_transaction.rb:46:in `run'",
"lib/gitlab/metrics/rack_middleware.rb:16:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'",
"lib/gitlab/middleware/go.rb:20:in `call'",
"lib/gitlab/middleware/query_analyzer.rb:11:in `block in call'",
"lib/gitlab/database/query_analyzer.rb:37:in `within'",
"lib/gitlab/middleware/query_analyzer.rb:11:in `call'",
"lib/gitlab/middleware/multipart.rb:173:in `call'",
"lib/gitlab/middleware/read_only/controller.rb:50: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_malformed_strings.rb:21:in `call'",
"lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call'",
"lib/gitlab/middleware/request_context.rb:15:in `call'",
"lib/gitlab/middleware/webhook_recursion_detection.rb:15:in `call'",
"config/initializers/fix_local_cache_middleware.rb:11:in `call'",
"lib/gitlab/middleware/compressed_json.rb:44:in `call'",
"lib/gitlab/middleware/rack_multipart_tempfile_factory.rb:19:in `call'",
"lib/gitlab/middleware/sidekiq_web_static.rb:20:in `call'",
"lib/gitlab/metrics/requests_rack_middleware.rb:79:in `call'",
"lib/gitlab/middleware/release_env.rb:13:in `call'"
],
"db_duration_s": 0.60343,
"view_duration_s": 0,
"duration_s": 60.70025
}