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 each step, however a few weird things happened:
I needed to run basically every command with sudo, even though only specific commands are listed as needing sudo in the guide
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?
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
backed up the config file
removed the old Mattermost installation
installed the new Mattermost installation
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.