$ docker exec -ti gitlab-service-1 gitlab-rails dbconsole
-- Clear project tokens UPDATE projects SET runners_token = NULL, runners_token_encrypted = NULL; -- Clear group tokens UPDATE namespaces SET runners_token = NULL, runners_token_encrypted = NULL; -- Clear instance tokens UPDATE application_settings SET runners_registration_token_encrypted = NULL; -- Clear key used for JWT authentication -- This may break the $CI_JWT_TOKEN job variable: -- https://gitlab.com/gitlab-org/gitlab/-/issues/325965 UPDATE application_settings SET encrypted_ci_jwt_signing_key = NULL; -- Clear runner tokens UPDATE ci_runners SET token = NULL, token_encrypted = NULL;
$ docker exec -ti gitlab-service-1 gitlab-ctl reconfigure $ docker exec -ti gitlab-service-1 gitlab-ctl restart