# Upgrading Mattermost Ver 5.39.0

**URL:** <https://forum.mattermost.com/t/upgrading-mattermost-ver-5-39-0/14878>\
**Category:** Troubleshooting\
**Created:** [January 24, 2023, 7:39pm UTC](https://forum.mattermost.com/t/upgrading-mattermost-ver-5-39-0/14878 "2023-01-24T19:39:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexGi](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@AlexGi](https://forum.mattermost.com/u/AlexGi)\
**Post date:** [January 24, 2023, 7:39pm UTC](https://forum.mattermost.com/t/upgrading-mattermost-ver-5-39-0/14878/1 "2023-01-24T19:39:54Z")

</div>

Attempting to upgrade Mattermost Version 5.39.0 to the most recent version 7.7.1. Attempted to upgrade to the most recent version, but kept getting an error message.  
 ![123Image Pasted at 2023-1-24 14-08](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/6/69a7d0612884e16a6cc25ec557176c61aa1372df.png)

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [January 25, 2023, 4:03pm UTC](https://forum.mattermost.com/t/upgrading-mattermost-ver-5-39-0/14878/2 "2023-01-25T16:03:22Z")

</div>

Hi @AlexGi and welcome to the Mattermost forums!

This is not the correct way to upgrade Mattermost, please have a look at the official upgrade instructions and please make sure to create a backup first.  
Not sure what exactly happened here now, did you also move the `/opt/mattermost` folder away before or did you just try to move one folder over the other?

[https://docs.mattermost.com/upgrade/upgrading-mattermost-server.html](https://docs.mattermost.com/upgrade/upgrading-mattermost-server.html)
