Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.
Problem to solve
In the Personal access tokens view, the message “An error occurred while fetching the tokens.” is displayed.
And the tokens created are not listed.
How can i fix this?
Steps to reproduce
The error is displayed again and again when i call up the website.
I’ having the same error when trying to create access token, the notice shows “An error occurred while creating the token.” This error only happened since I updated to version gitlab-ce:18.1.2-ce.0
This info may or may not be useful for your use case, but… setting external_url to use https:// instead of http:// solved the problem.
I regularly upgrade gitlab instances and somewhere inbetween minor upgrades to v18 I run into the same issue on one of my gitlab servers.
The server is behind a reverse proxy, and external_url was set to be http:// and redirection to https:// done on proxy.
Turns out setting external_url to use “https://” needs other step to be done - explicitly disabling https in configuration because gitlab wants to engage in certificate management otherwise and reconfiguration step fails.
So, it is also necessary to set