Skip to content

Error when creating personal access tokens (GitLab 18.1.0 + 18.1.1, self-managed)

Hello,

currently I am not able to create personal access tokens with our self-managed instance of Gitlab. I am not entirely sure when this regression occurred for the time, but I've noticed it in 18.1.0 and I also see it happening in 18.1.1.

When I try to create a new personal access token no matter what kind of scopes I add, the post request quickly ends in an error:

image

The error changed slightly due the course of the last versions:

18.1.0: HTTP 404

Request URL: xxx/-/user_settings/personal_access_tokens
Request Method: POST
Status Code: 404

18.1.1: HTTP 422

Request URL: xxx/-/user_settings/personal_access_tokens
Request Method: POST
Status Code: 422

The initial load of the same page works properly, so no issues with a GET:

Request URL: xxx/-/user_settings/personal_access_tokens?page=1&state=active&sort=expires_asc Request Method: GET Status Code: 200

There is also a forum post related to this issue:

https://forum.gitlab.com/t/routing-error-when-creating-personal-access-tokens-gitlab-18-1-0-self-managed/127435

  • Gitlab versions: 18.1.0, 18.1.1
  • Package: gitlab-ee
  • OS:
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
Edited by 🤖 GitLab Bot 🤖