用户在 Welcome 页面提交后返回 500 错误
问题描述
通过 API 创建的用户,在进入 Welcome 页面并填写完成提交后,页面返回 500 错误
(通过页面注册的用户,不出现这个问题)
复现步骤
- 通过 API 创建一个用户
- 使用该用户进行登录,通过 URL 访问 Welcome 页面(URL: /users/sign_up/welcome#login-pane)
- 在页面填写相关信息后,点击 Continue Button
- 查看页面返回情况
预期结果
成功进入 Group Project 创建页面
实际结果
页面返回 500 错误 (Staging 环境和 GDK 环境都可以成功复现)
错误相关 Log 信息
{"severity":"WARN","time":"2024-04-11T03:22:51.463Z","retry":25,"queue":"default","backtrace":true,"version":0,"store":null,"args":["[FILTERED]"],"class":"Onboarding::CreateIterableTriggerWorker","jid":"4306fe5efb03a92934a8b818","created_at":"2024-04-11T03:22:50.838Z","correlation_id":"01HV5JVXET49Q05ZDEPC9K3QA4","meta.caller_id":"Registrations::WelcomeController#update","meta.remote_ip":"127.0.0.1","meta.feature_category":"onboarding","meta.user":"fakeuser_2aqlwqq7","meta.user_id":221,"meta.client_id":"user/221","meta.root_caller_id":"Registrations::WelcomeController#update","worker_data_consistency":"delayed","wal_locations":{},"wal_location_source":"primary","idempotency_key":"resque:gitlab:duplicate:default:554976b5bb635875a51da43d48e2889bc6e5c1ddb0567fc8b36f6b0921d657fa","size_limiter":"validated","enqueued_at":"2024-04-11T03:22:50.839Z","job_size_bytes":241,"pid":22232,"message":"Onboarding::CreateIterableTriggerWorker JID-4306fe5efb03a92934a8b818: fail: 0.622322 sec","job_status":"fail","scheduling_latency_s":0.000637,"redis_calls":2,"redis_duration_s":0.00355,"redis_read_bytes":2,"redis_write_bytes":211,"redis_queues_metadata_calls":1,"redis_queues_metadata_duration_s":0.003461,"redis_queues_metadata_read_bytes":1,"redis_queues_metadata_write_bytes":123,"redis_shared_state_calls":1,"redis_shared_state_duration_s":8.9e-05,"redis_shared_state_read_bytes":1,"redis_shared_state_write_bytes":88,"db_count":0,"db_write_count":0,"db_cached_count":0,"db_txn_count":0,"db_replica_txn_count":0,"db_primary_txn_count":0,"db_main_txn_count":0,"db_ci_txn_count":0,"db_jh_txn_count":0,"db_main_replica_txn_count":0,"db_ci_replica_txn_count":0,"db_jh_replica_txn_count":0,"db_replica_count":0,"db_primary_count":0,"db_main_count":0,"db_ci_count":0,"db_jh_count":0,"db_main_replica_count":0,"db_ci_replica_count":0,"db_jh_replica_count":0,"db_replica_cached_count":0,"db_primary_cached_count":0,"db_main_cached_count":0,"db_ci_cached_count":0,"db_jh_cached_count":0,"db_main_replica_cached_count":0,"db_ci_replica_cached_count":0,"db_jh_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_jh_wal_count":0,"db_main_replica_wal_count":0,"db_ci_replica_wal_count":0,"db_jh_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_jh_wal_cached_count":0,"db_main_replica_wal_cached_count":0,"db_ci_replica_wal_cached_count":0,"db_jh_replica_wal_cached_count":0,"db_replica_txn_max_duration_s":0.0,"db_primary_txn_max_duration_s":0.0,"db_main_txn_max_duration_s":0.0,"db_ci_txn_max_duration_s":0.0,"db_jh_txn_max_duration_s":0.0,"db_main_replica_txn_max_duration_s":0.0,"db_ci_replica_txn_max_duration_s":0.0,"db_jh_replica_txn_max_duration_s":0.0,"db_replica_txn_duration_s":0.0,"db_primary_txn_duration_s":0.0,"db_main_txn_duration_s":0.0,"db_ci_txn_duration_s":0.0,"db_jh_txn_duration_s":0.0,"db_main_replica_txn_duration_s":0.0,"db_ci_replica_txn_duration_s":0.0,"db_jh_replica_txn_duration_s":0.0,"db_replica_duration_s":0.0,"db_primary_duration_s":0.0,"db_main_duration_s":0.0,"db_ci_duration_s":0.0,"db_jh_duration_s":0.0,"db_main_replica_duration_s":0.0,"db_ci_replica_duration_s":0.0,"db_jh_replica_duration_s":0.0,"external_http_count":1,"external_http_duration_s":0.4109220000100322,"cpu_s":0.017349,"worker_id":"sidekiq_0","rate_limiting_gates":[],"duration_s":0.622322,"completed_at":"2024-04-11T03:22:51.462Z","load_balancing_strategy":"primary_no_wal","exception.class":"Onboarding::CreateIterableTriggerWorker::CreateIterableTriggerError","exception.message":"Onboarding::CreateIterableTriggerWorker::CreateIterableTriggerError","exception.backtrace":["ee/app/workers/onboarding/create_iterable_trigger_worker.rb:30:in `perform'","lib/gitlab/sidekiq_middleware/skip_jobs.rb:51:in `call'","lib/gitlab/sidekiq_middleware/duplicate_jobs/strategies/until_executed.rb:17:in `perform'","lib/gitlab/sidekiq_middleware/duplicate_jobs/duplicate_job.rb:44:in `perform'","lib/gitlab/sidekiq_middleware/duplicate_jobs/server.rb:8:in `call'","lib/gitlab/sidekiq_middleware/concurrency_limit/middleware.rb:32:in `perform'","lib/gitlab/sidekiq_middleware/concurrency_limit/server.rb:8:in `call'","lib/click_house/migration_support/sidekiq_middleware.rb:7:in `call'","lib/gitlab/sidekiq_middleware/pause_control/strategies/base.rb:31:in `perform'","lib/gitlab/sidekiq_middleware/pause_control/strategy_handler.rb:22:in `perform'","lib/gitlab/sidekiq_middleware/pause_control/server.rb:8:in `call'","lib/gitlab/sidekiq_middleware/worker_context.rb:9:in `wrap_in_optional_context'","lib/gitlab/sidekiq_middleware/worker_context/server.rb:19:in `block in call'","lib/gitlab/application_context.rb:133:in `block in use'","lib/gitlab/application_context.rb:133:in `use'","lib/gitlab/application_context.rb:66:in `with_context'","lib/gitlab/sidekiq_middleware/worker_context/server.rb:17:in `call'","lib/gitlab/sidekiq_status/server_middleware.rb:7:in `call'","lib/gitlab/sidekiq_versioning/middleware.rb:9:in `call'","lib/gitlab/sidekiq_middleware/query_analyzer.rb:7:in `block in call'","lib/gitlab/database/query_analyzer.rb:40:in `within'","lib/gitlab/sidekiq_middleware/query_analyzer.rb:7:in `call'","lib/gitlab/sidekiq_middleware/admin_mode/server.rb:14:in `call'","lib/gitlab/sidekiq_middleware/instrumentation_logger.rb:9:in `call'","lib/gitlab/sidekiq_middleware/batch_loader.rb:7:in `call'","lib/gitlab/sidekiq_middleware/extra_done_log_metadata.rb:7:in `call'","lib/gitlab/sidekiq_middleware/request_store_middleware.rb:8:in `block in call'","lib/gitlab/sidekiq_middleware/request_store_middleware.rb:7:in `call'","lib/gitlab/sidekiq_middleware/server_metrics.rb:103:in `block in call'","lib/gitlab/sidekiq_middleware/server_metrics.rb:131:in `block in instrument'","lib/gitlab/metrics/background_transaction.rb:33:in `run'","lib/gitlab/sidekiq_middleware/server_metrics.rb:131:in `instrument'","lib/gitlab/sidekiq_middleware/server_metrics.rb:102:in `call'","lib/gitlab/sidekiq_middleware/monitor.rb:10:in `block in call'","lib/gitlab/sidekiq_daemon/monitor.rb:46:in `within_job'","lib/gitlab/sidekiq_middleware/monitor.rb:9:in `call'","lib/gitlab/sidekiq_middleware/size_limiter/server.rb:13:in `call'","lib/gitlab/sidekiq_logging/structured_logger.rb:21:in `call'"],"db_duration_s":0.0,"urgency":"low","target_duration_s":300,"target_scheduling_latency_s":60}
由 Wei Duan(Wilson) 编辑于