Problem with personal token and two gitlab server instances

Hi,

I’ve a high available solution with two GitLab servers running on separated servers, both are configured to use the same Postgres database and Redis Sentinel. For some unknown reason Personal Access tokens generated on one server does not work on another, for example, if I request a new personal token o server A and try to execute API calls on server B, I receive an 401 unauthorized error. If the request is done on the same server where the token is generated, it works as expected.

Anyone can help me please to understand that behavior and fix that?

Thanks

The problem was solved. I followed the chapter “Extra configuration for additional GitLab application servers”. Basically I was using two different gitlab-secrets.json which was causing different token digest generation for each personal token.

[1] - https://docs.gitlab.com/ee/administration/high_availability/gitlab.html