-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Was on image 25.0.4 and now image says 27.0.0 but unable to upgrade #2015
Comments
Just to clarify With image version 26.0.2.1 I get the following error: With image 27.0 (Latest) |
You may want to override the |
So I use the version.php from v27 or v26? |
your title said 25, so maybe start from 25? |
I just did... and after the reboot it stays in a loop asking to update again: Nextcloud will be updated to version 25.0.7 |
Something is still wrong... I pushed version 25.0.4 version.php and image 25.0.4 I'll go into the logs later. Probably a mismatch between the image and the files. |
I've had similar issues and keep running into them as I run a docker instance for personal use, and I keep falling behind the versions quite substantially. Recently I went from 24 to 27 in a single step and winded up in the same situation. This is risky and I take no responsibility as I'm a complete noob/idiot at nextcloud things.
The next upgrade from 25 to 26 etc i do that in a loop, but no need to delete the version.php file again. As stated, I take no responsibility for any data loss etc, but it's worked for me. |
I'll give it a try... thanks for sharing and yes I understand the risky part of it! |
#1809 has some insights about how to get out of this situation. In my case (upgrading from 24 to 27), I downloaded the To prevent this annoying problem from happening in the future, I have proposed #2018 so that the Docker image does not start the upgrade process at all if the major versions are too far apart. |
It doesn't even upgrade from 25 to 26:
|
I have no idea what is it with that folder. My /var/www/html only has index.nginx-debian.html. Nothing about nextcloud. What am I doing wrong? I am running in the same issue and can't find a damn version.php. |
I just goofed this myself exactly the same and was able to fix everything by basically doing a manual upgrade inside the container. First of all, you can browse all releases at https://download.nextcloud.com/server/releases/ Per the title, say the last working run was Nextcloud 25 and you mistakenly ran 27. So some install files think they're 27, but others think they're 25. This should work from any version. You just need to do the manual install from one version higher than your last correctly running Nextcloud. So we're going to manually install 26 (25+1). These instructions are paraphrased notes from the official manual upgrade instructions.
cd /var/www
cp -a html old-html
# move old-html into html so it's in a volume/mount so it's not lost
mv old-html html/
chown -R www-data:www-data html
# Yes you need to escape the semicolon this is not a formatting error
find html/ -type d -exec chmod 750 {} \;
find html/ -type f -exec chmod 640 {} \;
You probably need to restart the container at this point but the upgrade should now be successful. If the upgrade is successful, you'll now want to carefully increment your nextcloud image by 1 full version. So once the 26 manual upgrade is complete, and you've verified everything is working, stop your container and now run |
@Skinner927 It's a working fix. Thank you. |
I had a similar problem with my Nextcloud deployment:
I tried the approach suggested by @Skinner927, but I didn't get it working. The main problem appeared to be acquiring bash access to the restarting container. Instead, I ended up incrementing the Nextcloud container version, restarting, and letting it update in between. So I did the following to update mine from 25 to 27: 1. Set the Nextcloud container version to 26 in the version: '3'
nextcloud:
# https://github.com/nextcloud/docker
# https://hub.docker.com/_/nextcloud/
image: nextcloud:26
container_name: nextcloud 2. Let the Nextcloud container update, follow the logs with 3. Set the Nextcloud container version in the 'docker-compose.yml' file to the most recent and recreate the container: version: '3'
nextcloud:
# https://github.com/nextcloud/docker
# https://hub.docker.com/_/nextcloud/
image: nextcloud
container_name: nextcloud 3. {ALTERNATIVE} Pin to version 27 in the version: '3'
nextcloud:
# https://github.com/nextcloud/docker
# https://hub.docker.com/_/nextcloud/
image: nextcloud:27
container_name: nextcloud |
I currently have the same problem trying to upgrade from 26.0.1. In this situation, I can't update with the same as above.
The version 0.0.0.0 means the volume was clear. Also, I tried to start a new instance with the nextcloud:apache image, which you can do.
So, I guess there's something wrong with my image OR in the config. I'll look if I can modify the tag set for the version. Maybe it'll work. |
@TheIceMagmaCube Your issue is the same as in #2002 and caused by the Lines 150 to 154 in 37ee8cf
Fix the cause of that and you'll be fine. @JuniorJPDJ Your situation looks similar to the above. Are there some other log lines missing in between what you posted? They will provide the clues. @helsan74 Are you sure there weren't extra lines in the log output? You're the original reporter here, but my best guess is it was similar to the above / #2002. |
Closing due to no further follow-up info received. |
This was exactly like you mentioned - it's about something (possibly imap.so) breaking the check. |
When I try to upgrade I get:
Exception: Updates between multiple major versions and downgrades are unsupported.
Tried to downgrade to 26.0.2 But says I'm not using the correct image.
Can't start Nextcloud because the version of the data (27.0.0.8) 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?
Error when upgrading:
Preparing update
Set log level to debug
Turned on maintenance mode
Exception: Updates between multiple major versions and downgrades are unsupported.
What are my options to fix the issue?
The text was updated successfully, but these errors were encountered: