Skip to content

Block upgrade if it is not supported because major versions are too different#2018

Merged
J0WI merged 5 commits into
nextcloud:masterfrom
wetneb:1809-block-upgrade-if-unsupported
Jul 9, 2023
Merged

Block upgrade if it is not supported because major versions are too different#2018
J0WI merged 5 commits into
nextcloud:masterfrom
wetneb:1809-block-upgrade-if-unsupported

Conversation

@wetneb

@wetneb wetneb commented Jun 24, 2023

Copy link
Copy Markdown
Contributor

Closes #1809. Closes #1129. Closes #616. Closes #617.

This prevents the install from getting in a state where none of the Docker images will accept running given the contents of the volumes (see issue).

So far, the warning mentioned in
https://github.com/nextcloud/docker#update-to-a-newer-version
was not actually enforced in the docker image.

Closes nextcloud#1809. This prevents the install from getting in a state where none
of the Docker images will accept running given the contents of the volumes.

Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
@wetneb

wetneb commented Jun 24, 2023

Copy link
Copy Markdown
Contributor Author

@J0WI what do you think of this? It seems to have been reported many times and there has already been a PR (#1304) proposing basically the same fix (which I discovered after writing this one).
So I have the impression that this is a pain point for a lot of people - it would be great to see some movement on this!

@JuKu

JuKu commented Jul 4, 2023

Copy link
Copy Markdown

Push!
Very important ticket, in my opinion.

Comment thread docker-entrypoint.sh Outdated
Comment thread docker-entrypoint.sh Outdated
wetneb and others added 2 commits July 7, 2023 22:08
Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
Comment thread docker-entrypoint.sh Outdated
wetneb and others added 2 commits July 9, 2023 12:08
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
@wetneb
wetneb force-pushed the 1809-block-upgrade-if-unsupported branch from 9f399e8 to 6684153 Compare July 9, 2023 10:08
@J0WI
J0WI merged commit a68c6ef into nextcloud:master Jul 9, 2023
@wetneb
wetneb deleted the 1809-block-upgrade-if-unsupported branch July 9, 2023 20:22
@JuKu

JuKu commented Jul 16, 2023

Copy link
Copy Markdown

Thanks for your work! :)

@wetneb wetneb mentioned this pull request Nov 25, 2023
4 tasks
ananace pushed a commit to ananace/docker-nextcloud that referenced this pull request May 10, 2024
…ifferent (nextcloud#2018)

* Block upgrade if it is not supported

Closes nextcloud#1809. This prevents the install from getting in a state where none
of the Docker images will accept running given the contents of the volumes.

Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>

* Update docker-entrypoint.sh

Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>

* Update docker-entrypoint.sh

Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>

* Remove extra function

Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>

* Update docker-entrypoint.sh

Co-authored-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>

---------

Signed-off-by: Antonin Delpeuch <antonin@delpeuch.eu>
Co-authored-by: J0WI <J0WI@users.noreply.github.com>
cuppett added a commit to cuppett/nextcloud-openshift-s2i that referenced this pull request Feb 16, 2026
Prevents upgrades that skip major versions, which are not supported by
Nextcloud. For example, upgrading from version 22 to 24 requires going
through version 23 first. This check prevents data corruption and upgrade
failures.

Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants