Mattermost Upgrade Issue on Ubuntu

I have Mattermost installed on Ubuntu with Mattermost Version: 10.12.0. I was following these steps to update it:

Bash

cd /tmp
wget https://releases.mattermost.com/11.0.4/mattermost-11.0.4-linux-amd64.tar.gz 
tar -xf mattermost*.gz --transform='s,^[^/]\+,\0-upgrade,'
sudo systemctl stop mattermost
cd /opt
sudo cp -ra mattermost/ mattermost-back-$(date +'%F-%H-%M')/  # Backup
sudo find mattermost/ mattermost/client/ -mindepth 1 -maxdepth 1 \! \( -type d \( -path mattermost/client -o -path mattermost/client/plugins -o -path mattermost/config -o -path mattermost/logs -o -path mattermost/plugins -o -path mattermost/data \) -prune \) | sort | sudo xargs rm -r
sudo chown -hR mattermost:mattermost /tmp/mattermost-upgrade/
sudo cp -an /tmp/mattermost-upgrade/. mattermost/
sudo rm -r /tmp/mattermost-upgrade/
sudo systemctl start mattermost

However, I can’t do this anymore because the service no longer starts up, and I cannot update the operating system either.

The database used is MySQL.

What would be the correct procedure to upgrade without issues?

Thanks in advance!

Hi,

your issue is most certainly that you are using MySQL. The version 11 has removed support for MySQL.

  • Support for MySQL has ended. Our Migration Guide outlines the steps, tools and support available for migrating to PostgreSQL. See more details in this forum post.
1 Like

I agree with @MarHerUMR .

In general, it’s very helpful to send logfiles to troubleshoot an issue. Without it, it’s just guessing. If you want to confirm that it’s the database, you should check the mattermost.log or systemctl status mattermost for error messages.

@rtfm98
I think you need to upgrade to PostgreSQL 14 for Mattermost 11.0.4