Error: Unit mattermost.service not found after version upgrade

Hi all,

I am using Mattermost Team Edition hosted on Google Cloud using Bitnami. Today I wanted to upgrade Mattermost from Mattermost 9.X.X to Mattermost 10.5.1.

I followed Bitnamis guide on that: Upgrade Mattermost Team Edition

I followed each step, however a few weird things happened:

  1. I needed to run basically every command with sudo, even though only specific commands are listed as needing sudo in the guide
  2. When running sudo chown -R mattermost:mattermost logs client data I get an error stating that the data folder doesn’t exist. I suspect that the command for copying the backed up folder is just missing.

Finally, when running sudo /opt/bitnami/ctlscript.sh restart mattermost and then sudo /opt/bitnami/ctlscript.sh status, I get the following output:

mattermost not running
mysql already running
nginx already running

I tried running sudo systemctl start mattermost and I get:

Failed to start mattermost.service: Unit mattermost.service not found.

What am I doing wrong? I am not a total noob, but I am far from being a sysadmin. Why doesn’t the upgrade work when following the official guide?

Thank you so much in advance for your help!

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).

Thanks for sharing this post. As per the guide I am using, I

  1. backed up the config file
  2. removed the old Mattermost installation
  3. installed the new Mattermost installation
  4. copied the config file from the backup into the new installation

So the config should be fine, if they didn’t introduce breaking changes with that in the new version.

In the new installation, no data folder is provided. That’s why I also suspected, that I need to copy the data folder from the backup as well and they just missed that in the guide. However, if I do, I am not even allowed to cd into it and it makes no differences to the error running mattermost, whether I copy it or not.

In the meantime, I have rerolled to the previous Mattermost installation, since I made a complete backup before. It is working, but it is getting deprecated.