# Upgrade MM 5.3.1 to latest version fails

**URL:** <https://forum.mattermost.com/t/upgrade-mm-5-3-1-to-latest-version-fails/10266>\
**Category:** Troubleshooting\
**Created:** [August 11, 2020, 11:32pm UTC](https://forum.mattermost.com/t/upgrade-mm-5-3-1-to-latest-version-fails/10266 "2020-08-11T23:32:29Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![andrew.bimba](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/andrew.bimba/32/4064_2.png) [@andrew.bimba](https://forum.mattermost.com/u/andrew.bimba)\
**Post date:** [August 14, 2020, 12:11am UTC](https://forum.mattermost.com/t/upgrade-mm-5-3-1-to-latest-version-fails/10266/8 "2020-08-14T00:11:11Z")

</div>

Hi @SuziQ,

Can you switch to your last working backup and perform the upgrade again, using the steps provided below:

> cd /tmp  
> wget [https://releases.mattermost.com/5.25.2/mattermost-5.25.2-linux-amd64.tar.gz](https://releases.mattermost.com/5.25.2/mattermost-5.25.2-linux-amd64.tar.gz)  
> tar -xzf mattermost\*.gz  
> cp -R /opt/mattermost/config/\* /tmp/mattermost/config/  
> sudo su  
> mv /opt/mattermost/data /tmp/mattermost/data  
> rsync -au /opt/mattermost/plugins/ /tmp/mattermost/plugins  
> rsync -au /opt/mattermost/client/plugins/ /tmp/mattermost/client/plugins  
> systemctl stop mattermost  
> mv /opt/mattermost /opt/old.mattermost  
> mv /tmp/mattermost /opt/mattermost  
> chown -R mattermost:mattermost /opt/mattermost  
> (If you have setup TLS) sudo setcap cap\_net\_bind\_service=+ep ./bin/mattermost  
> systemctl start mattermost  
> **Confirm Mattermost is working**  
> rm /tmp/mattermost\*.gz  
> rm -rf /opt/old.mattermost/

If the issue persists, provide the output of `journalctl -u mattermost` and any errors in the `/opt/mattermost/logs/mattermost.log` file

---

_[View the full topic](https://forum.mattermost.com/t/upgrade-mm-5-3-1-to-latest-version-fails/10266)._
