CI/CD page error 500

,

Hello

I am having this error for a few months now, and I haven’t been able to figure out what the problem is.

description of the problem

Every time I go to CI/CD settings for a project, an error 500 is returned. My CI/CD jobs keep getting stuck, so they are timed out.

Setup

My gitlab instance is selfhosted, running in a docker container. The gitlab-runners are external containers.

  • host OS version: Ubuntu 21.04 x86_64
  • docker version: Docker version 20.10.12, build e91ed57
  • gitlab version: 14.5.0-ee

What I already have tried

gitlab-rake gitlab:check --trace

→ everything seems working

gitlab-rake db:migrate:status --trace

→ everything is up

I tried restarting my gitlab container, my runner containers, my host etc

Logs

/var/log/gitlab/gitlab-rails

ActionView::Template::Error ():
     9:       = render partial: 'ci/runner/setup_runner_in_aws',
    10:                locals: { registration_token: @project.runners_token }
    11:     %hr
    12:     = render partial: 'ci/runner/how_to_setup_runner',
    13:             locals: { registration_token: @project.runners_token,
    14:                       type: s_('Runners|specific'),
    15:                       reset_token_url: reset_registration_token_namespace_project_settings_ci_cd_path,
  
lib/gitlab/crypto_helper.rb:28:in `aes256_gcm_decrypt'
app/models/concerns/token_authenticatable_strategies/encryption_helper.rb:18:in `decrypt_token'
app/models/concerns/token_authenticatable_strategies/encrypted.rb:45:in `get_token'
app/models/concerns/token_authenticatable_strategies/base.rb:38:in `ensure_token!'
app/models/concerns/token_authenticatable.rb:48:in `block in add_authentication_token_field'
app/models/project.rb:1862:in `runners_token'
app/views/projects/runners/_specific_runners.html.haml:12
app/views/projects/runners/_settings.html.haml:5
app/views/projects/settings/ci_cd/show.html.haml:46
ee/app/helpers/ee/application_helper.rb:63:in `render_ce'
ee/app/views/projects/settings/ci_cd/show.html.haml:1
app/controllers/application_controller.rb:136:in `render'
app/controllers/projects/settings/ci_cd_controller.rb:31:in `block in show'
lib/gitlab/database.rb:168:in `allow_cross_joins_across_databases'
app/controllers/projects/settings/ci_cd_controller.rb:30:in `show'
ee/app/controllers/ee/projects/settings/ci_cd_controller.rb:22:in `show'
ee/lib/gitlab/ip_address_state.rb:10:in `with'
ee/app/controllers/ee/application_controller.rb:44:in `set_current_ip_address'
app/controllers/application_controller.rb:504:in `set_current_admin'
lib/gitlab/session.rb:11:in `with_session'
app/controllers/application_controller.rb:495:in `set_session_storage'
lib/gitlab/i18n.rb:105:in `with_locale'
lib/gitlab/i18n.rb:111:in `with_user_locale'
app/controllers/application_controller.rb:489:in `set_locale'
app/controllers/application_controller.rb:483:in `set_current_context'
lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in `call'
lib/gitlab/middleware/rails_queue_duration.rb:33:in `call'
lib/gitlab/middleware/speedscope.rb:13:in `call'
lib/gitlab/request_profiler/middleware.rb:17:in `call'
lib/gitlab/database/load_balancing/rack_middleware.rb:23: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/etag_caching/middleware.rb:21: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/handle_malformed_strings.rb:21:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call'
lib/gitlab/middleware/request_context.rb:21:in `call'
config/initializers/fix_local_cache_middleware.rb:11:in `call'
lib/gitlab/middleware/compressed_json.rb:26: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:75:in `call'
lib/gitlab/middleware/release_env.rb:13:in `call'
Started GET "/favicon.ico" for 84.199.255.188 at 2022-10-04 14:23:49 +0000
Started GET "/-/metrics" for 127.0.0.1 at 2022-10-04 14:23:50 +0000
Processing by MetricsController#index as HTML
Completed 200 OK in 130ms (Views: 0.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms | Allocations: 647)