-
-
Notifications
You must be signed in to change notification settings - Fork 128
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] This version of Nextcloud is not compatible with PHP>=8.2. #313
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
What version is your nextcloud? You need to keep updating as long as it lets you. It does incremental updates. |
25.0.7 and the support for php 8.2 comes with 26 so I have to change to 26.0.2. docker exec -it nextcloud updater.phar Current version is 25.0.7. No update available. Nothing to do. seems from 25 to 26 is not a auto update at this point. I did go back to 26.0.2-ls246 and updated via settings UI and go back to latest image works. But I guess 25 is still long term stable release from nextcloud and it won't work with php 8.2 |
Just to chime in. I am having the same issue. Like paskalll I run the manual update from the server "docker exec -it nextcloud updater.phar" and the latest it takes me to is 25.0.7. It seems 26 was released but the updater is not seeing it? Is the easiest way to fix this just to go back to an older docker image? |
Going back to "26.0.2-ls246" like @paskalll mentioned atleast let me use nextcloud again. |
|
Same for me, " This version of Nextcloud is not compatible with PHP>=8.2." |
@An4cl3t0 then read the comments above you. It's already well documented what to do. |
If only they had a "stable" tag :/ |
Or just don't use latest and pin to an actual version tag. If you just run with using The reason so many people are experiencing this issue is due to
Our nextcloud has always been like this and it's documented in our readme. |
Maintenance mode is active after starting with this tag... Edit: I am coninuing to use latest & watchtower. |
Sema for me: https://nextcloud.tiozaodolinux.com/ This environment is a test environment. I'll leave it until the fix comes out. |
There is no "fix" - you need to roll back to a previous image tag, run |
Switching tag won't make nextcloud go into maintenance mode, as our containers don't run any nextcloud commands on start up. It would've been due to a command you ran previously before you switched tag. |
To confirm these instructions are still relevant: #288 |
I also ran into this issue. Setting the container version to :26.0.2-ls246 and running updater.phar afterwards solved it. |
+1 for me too. Updated and running without issue following the instructions above. |
But how do I switch back? I cannot get into the gui and have no place to change the tag. Currently on 25.0.7 |
Unraid forums and their docker faq have plenty of info on managing docker images and tags and various other aspects of their docker gui management system. |
Solved. Thanks |
How are you running Docker? Installed on Ubuntu, Unraid etc |
I was able to figure it out to get back to the nextcloud (NC) ui
But I am running it in docker on UNRaid. I am trying to install the updates from the nc ui
Don't only practice your art, but force your way into its secrets; art deserves that, for it and knowledge can raise man to the Divine.
— Ludwig van Beethoven
… On Jun 3, 2023, at 19:36, say-no-to-deer-pressure ***@***.***> wrote:
I am sorry to ask this but how do i fix this? i have looked at the instructions
Change Repository to lscr.io/linuxserver/nextcloud:26.0.2-ls246
Start Nextcloud
Update via WEB GUI to 26.0x
Remove version Tag :26.0.2-ls246 from step 1
Done
how do i change the repository? and from now on i should update using the nextcloud gui instead of using he unraid docker management? i am sorry for the hand holding that is needed.
How are you running Docker? Installed on Ubuntu, Unraid etc
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
the instructions above fixed it. Thanks |
Much thanks Eric, you are my hero :) |
This procedure has worked for me. Careful to read the word repeatedly as there is multiple updates Execute docker exec -it nextcloud updater.phar repeatedly until there are no more updates |
Using the updater.phar resulted in error after extracting about the version.php missing?!?! Literally just ran the command and that's it
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Hey I am a bit confused and not sure how to progress :D I basically changed the tag in Unraid to: Nextcloud works again then and I wanted to update to the 26 version. `Nextcloud Updater - version: v25.0.3-2-gd49ee0d Current version is 25.0.4. Update to Nextcloud 25.0.7 available. (channel: "stable") Why can't I update to the 26 version? Super confused also about the version discrepancy from the tags. BR |
You have to run the updater multiple times, You can't just jump to the latest version. |
Is that supported with the docker container? but why is there a version missmatch? |
Yes it's supported within our container, it's the update process we recommend in our readme. The tags are for what version is included for a new install. For exisiting installs, you need to make sure you're on a newer tag for the correct dependencies. |
The container doesn't update nextcloud automatically when you updated the container image. Updates to nextcloud are done manually. I am in the process of building nextcloud into the container. Builds that should work are ready, but need more testing than just me. I haven't asked for user testing at this point because testing requires a well planned backup and restore procedure, which is something we advise everyone have in general. If testing is successful, this build could eventually replace our current builds, and it would replace the current manual upgrade process. Tldr: the test builds could break your install in an unrecoverable way. |
If I attempt to run the updater when on tag 26.0.2 and 26.0.2-247, I receive this: The updater loops infinitely like so, and upgrading to version 26 is impossible. And occ upgrade can't be run after the update.
However, if I try to run the upgrader on tag 26.0.2-ls246 like people are recommending, I get told:
I'm using MariaDB as my database. What should I attempt from here? Edit: Resolved, My MariaDB instance was unavailable due to an incorrect shutdown, and was updated before rebooting. This caused it to fail to launch properly. |
hi @j0nnymoe same issue here:
and here the log after try to upgrade manually: `root@d2b6296cfc12:/#updater.phar Current version is 25.0.7. Update to Nextcloud 25.0.7 available. (channel: "stable") Steps that will be executed: Continue update? [y/N] y Info: Pressing Ctrl-C will finish the currently running step and then stops the updater. [✔] Check for expected files Update of code successful. Should the "occ upgrade" command be executed? [Y/n] y any way to fix it and can work normally? thanks for the support! |
#288 has all the instructions needed to fix this issue. |
FINALLY got the update to 26.x.x to work, being new to all this stuff i had to first figure out WHERE to try running these commands. I had to open the containers console (terminal) and run the command "updater.phar" there, no clue where to use "docker exec -it nextcloud updater.phar" as it didn't work in the containers terminal/console window (maybe Unraid terminal window?!). after it finally taking 26 i removed the version tag on the repo line and it works correctly, currently trying to update to 27.x.x (and beyond) the same way, hope it works (knock on wood). too bad there isn't a way to have the internals of the container to auto-update, or is there and I'm missing something? |
It's being worked on #317 |
|
You're on a non-docker installation. This support thread isn't relevant for you. |
Understood, nevermind. |
Is there an existing issue for this?
Current Behavior
After Update commit c07466d yesterday Nextcloud only shows:
This version of Nextcloud is not compatible with PHP>=8.2.
You are currently running 8.2.6.
I did the steps from pinned Issue but it changed nothing. Going back to 26.0.2-ls246 works for me. But with Change 26.0.2-ls247 and php 8.2 it won't work anymore for me even if I update the install as explained.
Expected Behavior
No response
Steps To Reproduce
Use latest Image
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: