# Cannot upgrade docker-based nextcloud

**URL:** <https://help.nextcloud.com/t/cannot-upgrade-docker-based-nextcloud/133345>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** update\_problems, docker, multiple\_versions\
**Created:** [February 7, 2022, 10:36pm UTC](https://help.nextcloud.com/t/cannot-upgrade-docker-based-nextcloud/133345 "2022-02-07T22:36:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [February 9, 2022, 11:27am UTC](https://help.nextcloud.com/t/cannot-upgrade-docker-based-nextcloud/133345/4 "2022-02-09T11:27:47Z")

</div>

the problem is reported often. Downgrade is no supported, so the **safe** way to return to previous version after upgrade is full recovery of your data and database.

Sometimes removing/editing files like `version.php` helps

> [@Can't start Nextcloud because the version of the data is higher than the docker image version and downgrading is not supported](https://help.nextcloud.com/t/cant-start-nextcloud-because-the-version-of-the-data-is-higher-than-the-docker-image-version-and-downgrading-is-not-supported/109438):
>
> Nextcloud version (eg, 20.0.5): 19.0.3.1 Operating system and version (eg, Ubuntu 20.04): Docker Image 19.0.3.1 Apache or nginx version (eg, Apache 2.4.25): Docker Image 19.0.3.1 PHP version (eg, 7.4): Docker Image 19.0.3.1 The issue you are facing: I accidentally pulled the v21 docker image while my NC installation was still 19.0.3.1. After noticing the error, I followed the advice from the linked how-to thread [Updates between multiple major versions are unsupported - #27](https://help.nextcloud.com/t/updates-between-multiple-major-versions-are-unsupported/7094/27) and tried to upg…

---

_[View the full topic](https://help.nextcloud.com/t/cannot-upgrade-docker-based-nextcloud/133345)._
