# Deadlock while upgrading Nextcloud on Docker

**URL:** <https://help.nextcloud.com/t/deadlock-while-upgrading-nextcloud-on-docker/125301>\
**Category:** ℹ️ Support\
**Tags:** docker\
**Created:** [October 12, 2021, 8:01pm UTC](https://help.nextcloud.com/t/deadlock-while-upgrading-nextcloud-on-docker/125301 "2021-10-12T20:01:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 13, 2021, 8:19pm UTC](https://help.nextcloud.com/t/deadlock-while-upgrading-nextcloud-on-docker/125301/2 "2021-10-13T20:19:14Z")

</div>

I hope you have a backup just before an upgrade (it’s always a good idea to perform backup before doing something potentially disruptive). In this case the most easiest way would be to restore you old system and upgrade to your desired option going through all major versions.

otherwise try [searching this forum](https://help.nextcloud.com/search?q=Can%E2%80%99t%20start%20Nextcloud%20because%20the%20version%20of%20the%20data%20is%20higher%20than%20the%20docker%20image%20version%20and%20downgrading%20is%20not%20supported.%20Are%20you%20sure%20you%20have%20pulled%20the%20newest%20image%20version%3F) - lot of people reported this problem in the past:

> [@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/2):
>
> Find a solution for me (same but from version 18): just delete www folder before starting docker.

> [@Docker Nextcloud not started upgrade 18-\>20 now incompatible with 19](https://help.nextcloud.com/t/docker-nextcloud-not-started-upgrade-18-20-now-incompatible-with-19/99646):
>
> Nextcloud version: 18,19,20 Operating system and version: Debian Buster + Docker Apache or nginx version: nginx PHP version: 7.4? The issue you are facing: After shortly operating my docker nextcloud service with a v20 image after using v18 before, but NOT upgrading, I now cannot start the docker service with a v19 image, as the logs say the data is already v20 and downgrading is not supported. Can't start Nextcloud because the version of the data (20.0.2.2) is higher than the docker image …

> [@My database is gone](https://help.nextcloud.com/t/my-database-is-gone/76509):
>
> I’m using the official Docker image, and docker-compose to configure Nextcloud, reverse Nginx proxy, Letsencrypt, Nextcloud MariaDB instance and so on. Then I had the idea to move it all from my home folder to root’s home folder at /root because I don’t want those files changed easily, but I also want a friend of mine sharing the server to be able to change things. All well and good, but during the process my brain had the idea of “fixing” a “typo”. So in my docker-compose I had volumes: …

good luck and please report if and how you restored your system.

---

_[View the full topic](https://help.nextcloud.com/t/deadlock-while-upgrading-nextcloud-on-docker/125301)._
