Gitlab-Runner registration failed

  1. Installed the latest Version(15.1) of gitlab on a clean Linux Machine to test CI/CD

  2. Installed the Gitlab-Runner for the CI/CD Pipelines

  3. Installation was succesfully

  4. Tried to register the runner, which leads to the Error : 500 internal Sever Error

  5. Changed installation to use a self signed certificate and again tried the registration, now the following Error occured x509: certificate relies on legacy Common Name field, use SANs instead

  6. tried the Command :curl --request POST -k "https://gitlab-local.xxxxx.net/api/v4/runners"
    --form "token=GR1348941Fcy4dyy27CxMqVyoCCxK" --form "description=Testing"
    --form "tag_list=tag1,tag2" and still got an Error 500

  7. checked the production log under :/var/log/gitlab/gitlab-rails/production.log -> Can't verify CSRF token authenticity.

Edited by Tom Christiansen