Summary
Issue with user access token error after migrating to PostgreSQL and upgrading Mattermost.
Steps to reproduce
- Start with Mattermost 9.0.0 with MySQL 5.7.36.
- Migrate from MySQL 5.7.36 to PostgreSQL 15.12 using the official “Automated PostgreSQL migration” process.
- Upgrade Mattermost to version 10.5.1 ESR using the official “Upgrade Mattermost Server” guide.
- Login and then logout from the Mattermost web GUI.
- Optionally, activate the last Jitsi plugin (v2.0.1) and logout again.
Expected behavior
I expect no errors after logout
Observed behavior
Everything appears to be functioning correctly; however, when i logout of the WEB GUI, i encounter the following error/warning in the log file /opt/mattermost/log/mattermost.log:
{"timestamp":"2025-03-05 12:26:19.422 +01:00","level":"warn","msg":"Error while creating session for user access token","caller":"app/session.go:113","error":"createSessionForUserAccessToken: Invalid or missing token., resource \"UserAccessToken\" not found, id: token=56dm******************gjqgr"}
Additionally, when switch the Jitsi plugin (v2.0.1) to enabled, i encounter the same error after logout. The error repeats twice without any token specified:
{"timestamp":"2025-03-05 12:15:56.640 +01:00","level":"warn","msg":"Error while creating session for user access token","caller":"app/session.go:113","error":"createSessionForUserAccessToken: Invalid or missing token., resource \"UserAccessToken\" not found, id: token="}
{"timestamp":"2025-03-05 12:15:56.640 +01:00","level":"warn","msg":"Error while creating session for user access token","caller":"app/session.go:113","error":"createSessionForUserAccessToken: Invalid or missing token., resource \"UserAccessToken\" not found, id: token="}
Everything else seems to be functioning fine, but the error persists when logging out.
Has anyone encountered a similar issue? Could it be related to the migration or the plugins? Any advice would be greatly appreciated.