🫠

Gitlabエラー解決

2024/09/04に公開

GitLabで「空のプロジェクトを作成」を作成中に以下のようなエラーが出た場合の解決策

formに次のエラーが含まれています。
undefined method `id_token_sub_claim_components' for #<ProjectCiCdSetting id: nil, project_id: 56, group_runners_enabled: true, merge_pipelines_enabled: nil, default_git_depth: nil, forward_deployment_enabled: true, merge_trains_enabled: false, auto_rollback_enabled: false, keep_latest_artifact: true, restrict_user_defined_variables: [FILTERED], job_token_scope_enabled: false, runner_token_expiration_interval: nil, separated_caches: true, allow_fork_pipelines_to_run_in_parent_project: true, inbound_job_token_scope_enabled: true, forward_deployment_rollback_allowed: true, merge_trains_skip_train_allowed: false, restrict_pipeline_cancellation_role: "developer", pipeline_variables_minimum_override_role: [FILTERED], push_repository_for_job_token_allowed: false>

try this:

gitlab-rake gitlab:check SANITIZE=true

Ok my bad, just fixed the issue by :

gitlab-rake db:migrate:status

saw that some migrations were down

gitlab-rake db:migrate

詳細はこちら...
URL: https://forum.gitlab.com/t/solved-undefined-method-error-500/18837

実行後、GitLabを再起動すれば、解決します。

gitlab-ctl restart

Discussion