Might be related to this (even though it’s an installation on Ubuntu without Bitnami): Mattermost.service & user missing after upgrade to 10.5.1
Has your config.json also been reset?
Unfortunately, Mattermost Inc does not seem to have analyzed the problem further, although it looks clearly like a problem in the upgrade process (or a wrong documentation).