Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Upgrade dilemma 25 to 27 #2079

Open
4 tasks done
xeruf opened this issue Oct 3, 2023 · 3 comments
Open
4 tasks done

[Bug]: Upgrade dilemma 25 to 27 #2079

xeruf opened this issue Oct 3, 2023 · 3 comments
Labels
docs feature: upgrading Upgrading an existing deployment to a new image/NC version needs info Additional info needed to triage question

Comments

@xeruf
Copy link

xeruf commented Oct 3, 2023

⚠️ This issue respects the following points: ⚠️

Bug description

I am trying to upgrade from Nextcloud 25 to 27, accidentally ending up with a skipped version in my kubernetes cluster.
I tried to run occ upgrade in version 27 and got:

Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed

Then I tried to go back to Nextcloud 26, but that failed too:

Can't start Nextcloud because the version of the data (27.0.2.1) is higher than the docker image version (26.0.2.1) and downgrading is not supported. Are you sure you have pulled the newest image version?

So I cannot run at 26 because the data is supposedly at 27 but I cannot upgrade it to 27 because the data is supposedly at 25. What the heck?

Steps to reproduce

good question

Expected behavior

Either the data is at 25 or 27, not both at once?

Installation method

Stackspin Kubernetes Cluster

@szaimen szaimen transferred this issue from nextcloud/server Oct 3, 2023
@joshtrichards joshtrichards added the feature: upgrading Upgrading an existing deployment to a new image/NC version label Oct 25, 2023
@wetneb
Copy link
Contributor

wetneb commented Nov 25, 2023

I have recently made a change which intended to address exactly this issue (#2018).
I wonder if this change was already included in the Docker image of NextCloud 27 that you used. Can you tell us about the exact name of the Docker image you used, and when you pulled it?

For workarounds about how to restore your instance, see #1809, #1129, #616 and #617.

@joshtrichards joshtrichards added the needs info Additional info needed to triage label Jan 20, 2024
@J0WI
Copy link
Contributor

J0WI commented Mar 4, 2024

  1. backup everything
  2. remove Nextcloud files in var/www/html except apps, config, data etc. (see https://github.com/nextcloud/docker/blob/master/upgrade.exclude)
  3. run with Nextcloud 25/26 image again and do the upgrade

See https://github.com/nextcloud/docker/blob/master/docker-entrypoint.sh#L174-L180 to replace the Nextcloud files manually

@isdnfan
Copy link

isdnfan commented Apr 25, 2024

IMHO this comment resolves the problem at 99% success rate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs feature: upgrading Upgrading an existing deployment to a new image/NC version needs info Additional info needed to triage question
Projects
None yet
Development

No branches or pull requests

5 participants