Closed Maelstromeous closed 2 years ago
Two things:
docker exec -it nextcloud updater.phar
The following active confs have different version dates than the samples that are shipped. This may be due to user customization or an update to the samples. You should compare the following files to the samples in the same folder and update them. Use the link at the top of the file to view the changelog. /config/nginx/nginx.conf /config/nginx/site-confs/default.conf
root@NAS:~# docker exec -it nextcloud updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 20.0.5. <<<< This was very incorrect, it should be around v24 if it's at all close to the nextcloud version
Update to Nextcloud 20.0.14 available. (channel: "stable")
Steps that will be executed:
<steps to do>
Start update? [y/N] Y
<steps completed>
Update of code successful.
Should the "occ upgrade" command be executed? [Y/n] y
This version of Nextcloud is not compatible with > PHP 7.4.<br/>You are currently running 8.0.18.
Keep maintenance mode active? [y/N] n
nginx: [emerg] "map" directive is not allowed here in /config/nginx/nginx.conf:4
Hmm this is very strange, I commented out the map directive thinking it would be fine, also saying the server directive is not allowed now. My nginx is a bit rusty but pretty sure the config is correct. It's the exact same as the sample link, just with map
commented out currently, still erroring.
Also wrapped the server block in a http block thinking it was just an inheritance problem and http is defined somewhere else, errors about SSL locations now. Is this the right config sample to use?
Ah I did a slight dumb, there's two conf files. I've done the following now:
/config/nginx/site-confs/default.conf
now matches the default.conf.sample
file./config/nginx/nginx.conf
to the newer alpine image you've created defaults as well, as that was also horribly out of date, it is now the same as https://raw.githubusercontent.com/linuxserver/docker-baseimage-alpine-nginx/master/root/defaults/nginx/nginx.conf.sampleStill getting the PHP version error :(
You must still be on an old version of nextcloud within the container. You have to continue to run updater.phar
until it reaches at least v24.
It doesn't appear to want to update any further?
root@NAS:/mnt/user/appdata/nextcloud/nginx/site-confs# docker exec -it nextcloud updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 20.0.14.
Update to Nextcloud 20.0.14 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-20.0.14.zip
Open changelog β
You will need to downgrade your image to a tag where we had php7.4 then do the update command to get nextcloud 24 installed, then switch back to the latest tag.
Do you have a recommended version @nemchik ? I rolled it back to tag version 24.0.6 which looks like it uses php7.x, updater.phar executes but it still doesn't detect new versions.
Do I have to go to v21 and upgrade path each major version till I get to 25?
Ah. The occ update didn't work last time, it's now detecting new versions...
I'll update the thread if I'm successful π
24.0.6-ls204
That version of the image should work. You do not have to swap images for each version, just switch to that version, run the update until nextcloud shows you're running v24, then switch to latest.
Awesome, after about 6 upgrades this issue is resolved. Thank you @nemchik! π I'll close the issue now, hopefully this helps someone in the future.
Resolution was:
docker exec -it nextcloud updater.phar
repeatedly until you reach version 25If there's NGINX / PHP issues still, replace files (paths are container relative):
/config/nginx/site-confs/default.conf
with default.conf.sample/config/nginx/nginx.conf
with nginx.conf.sampleI seem to be having a similar issue to OP, but downgrading the container on Unraid did not solve the problem. I've updated the default.conf and nginx.conf already. I have downgraded as far as lscr.io/linuxserver/nextcloud:23.0.4-ls181
. Should I keep trying to downgrade the container and update the app?
The GUI updater, when I click Continue Update, just kicks me back to the main dashboard. And updating through Console spits out Nextcloud is already latest version
. Nextcloud current version is 22.2.10. It says the update that is available is 23.0.10.
root@homegrown:~# docker exec -it nextcloud updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 22.2.10.
Update to Nextcloud 23.0.10 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-23.0.10.zip
Open changelog β
Steps that will be executed:
[β] Check for expected files
[β] Check for write permissions
[β] Create backup
[β] Downloading
[β] Verify integrity
[β] Extracting
[β] Enable maintenance mode
[β] Replace entry points
[β] Delete old files
[β] Move new files in place
[β] Done
Continue update? [y/N] y
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
[β] Check for expected files
[β] Check for write permissions
[β] Create backup
[β] Downloading
[β] Verify integrity
[β] Extracting
[β] Enable maintenance mode
[β] Replace entry points
[β] Delete old files
[β] Move new files in place
[β] Done
Update of code successful.
Should the "occ upgrade" command be executed? [Y/n] y
Nextcloud is already latest version
Keep maintenance mode active? [y/N] n
Maintenance mode already disabled
Maintenance mode is disabled
Use the tag 24.0.6-ls204
for our image, regardless of which version of nextcloud you have installed. Do not use another tag.
Just switch to that tag, run docker exec -it nextcloud updater.phar
until it says you're up to date (should be nextcloud 25.x, also say yes to the occ updates), then switch to the latest
tag and check the container logs for warnings about which nginx configs to update.
24.0.6-ls204
and running docker exec -it nextcloud updater.phar
still says that I have the latest version.
root@homegrown:~# docker exec -it nextcloud updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 22.2.10.
Update to Nextcloud 23.0.10 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-23.0.10.zip
Open changelog β
Steps that will be executed:
[β] Check for expected files
[β] Check for write permissions
[β] Create backup
[β] Downloading
[β] Verify integrity
[β] Extracting
[β] Enable maintenance mode
[β] Replace entry points
[β] Delete old files
[β] Move new files in place
[β] Done
Continue update? [y/N] y
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
[β] Check for expected files
[β] Check for write permissions
[β] Create backup
[β] Downloading
[β] Verify integrity
[β] Extracting
[β] Enable maintenance mode
[β] Replace entry points
[β] Delete old files
[β] Move new files in place
[β] Done
Update of code successful.
Should the "occ upgrade" command be executed? [Y/n] y
Nextcloud is already latest version
Keep maintenance mode active? [y/N] n
Maintenance mode already disabled
Maintenance mode is disabled
The updater.phar version is v20.0.0beta4-11-g68fa0d4
. Not sure if that could have something to do with it? Or maybe that's correct.
I think I figured it out. The issue was the two .step files in the data folder. There was .step
and .step-previous-update
. I moved both out of that folder, restarted the container and now the update seems to be going through.
Just a follow up, this did indeed work. After moving those step files out of the data folder, I was able to complete numerous updates and am now on Nextcloud 25.0.0
You will need to downgrade your image to a tag where we had php7.4 then do the update command to get nextcloud 24 installed, then switch back to the latest tag.
Can you tell me how to do this via unraid? I am assuming I need to edit my unraid docker for next cloud. I just want to make sure before I mess it up. I am having no lucks updated. I went to 20.0.14 but now it says the OCC upgrade will not work because it's not compatible with > 7.4. Thanks
@russellmoran99 edit the container in unraid and under repository
append :24.0.6-ls204
E.g. linuxserver/nextcloud:24.0.6-ls204
@russellmoran99 edit the container in unraid and under
repository
append:24.0.6-ls204
E.g.
linuxserver/nextcloud:24.0.6-ls204
Thanks - I figured it out before you replied, but I appreciate the quick response. I'm running the OCC upgrade now and about to upgrade to v25. Fingers crossed!
I'm using NGINX proxy manager. Will I need to change the NGINX/PHP files?
@nemchik @j0nnymoe
I have went to :24.0.0.6-ls204 and ran the updater.phar
Here's my latest error trying to get to 21.0.9
[β] Check for expected files [β] Check for write permissions [β] Create backup [β] Downloading [β] Verify integrity [β] Extracting [β] Enable maintenance mode [β] Replace entry points [ ] Delete old files ...PHP Warning: rmdir(/config/www/nextcloud/updater/../resources): Directory not empty in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 871 [β] Delete old files failed Could not rmdir: /config/www/nextcloud/updater/../resources
Update failed. To resume or retry just execute the updater again.
I was able to get 2 successful updates in without this error message.
I'm not a maintainer of this project so I can't answer that query, I'm a regular guy same as you
The command you should be using is updater.phar
as per the readme and if the script is having issues to do an rm, it sounds like you might have permissions issues on your appdata share.
The command you should be using is
updater.phar
as per the readme and if the script is having issues to do an rm, it sounds like you might have permissions issues on your appdata share.
Makes sense. The part that confuses me is I have had 2 successful updates using update.phar without problems. This one gave me an issue. How do I go about fixing the permissions issue? Thanks
Not 100% it's a permissions issue, more of a suggestion to investigate yourself to see what user owns your /config
mount or maybe restore a back of that then try the update again.
I am experiencing this same problem, but I must have some mixed file versions, since I can't successfully run the updater.phar without an error.
I am running Portainer. Was running version 25 of NextCloud and I stopped the container, then did a recreate on the container with Nextcloud:latest. When it started, I got the error message that I was trying to update from 25 to 27. I changed my version to 26 and did another recreate on the container and it ran, but I could not connect with my client or the web browser. Since then I have tried various version of 26 and did a recreate to no avail. I have also tried to run the updater.phar and it fails with Downloaded version is lower than installed version. I'm a NextCloud noob, so excuse my ignorance.
frodo:/mnt/Main_Data/NextCloud/Data$ docker exec -it nextcloud updater.phar Nextcloud Updater - version: v26.0.0beta2-9-g64e2e4c dirty
Current version is 26.0.2.
Update to Nextcloud 25.0.13 available. (channel: "stable") Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip Open changelog β
Steps that will be executed: [ ] Check for expected files [ ] Check for write permissions [ ] Create backup [ ] Downloading [ ] Verify integrity [ ] Extracting [ ] Enable maintenance mode [ ] Replace entry points [ ] Delete old files [ ] Move new files in place [ ] Done
Start update? [y/N] y
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
[β] Check for expected files [β] Check for write permissions [ ] Create backup ... [β] Create backup [β] Downloading [β] Verify integrity [β] Extracting failed Downloaded version is lower than installed version
Update failed. To resume or retry just execute the updater again.
You're commenting on an year old issue where a lot had changed with this image a few months back. Read through this https://info.linuxserver.io/issues/2023-06-25-nextcloud/ and if you still have further issues, please post on our discord/discourse.
In SHA version
sha256:1358eeb15362cd1ed60ea22d44a481e9819da9745eeaa3751e823f402da86fe1
or50f0e4fe9593
from Dockerhub (should be amd64 latest, image tag25.0.0
as of writing) the container will fail to load the web UI with the following error:Expected Behavior
This error should not occur and the web UI should load normally.
Current Behavior
This error occurs upon loading the web UI.
Steps to Reproduce
Environment
OS: Linux / Unraid CPU architecture: amd64 How docker service was installed: Shouldn't matter, but via Unraid internals
Command used to create docker container (run/create/compose/screenshot)
Presumbly docker run, unraid takes care of it.
Docker logs