hi,
i recently upgraded my dietpi from buster to bookworm.
and so did php to 8.##.
now i need to upgrade nextcloud.
i used
sudo -u www-data php /var/www/nextcloud/updater/updater.phar
to upgrade from 22.2.04 (i think) to 22.2.10.
then i tried:
sudo -u www-data php /var/www/nextcloud/occ
but i got this error message:
This version of Nextcloud is not compatible with > PHP 8.0.
You are currently running 8.2.7.#
i’m not sure if i need to run the occ upgrade after every nextcloud upgrade, or only when i’m at the last current version.
but when i ran
sudo -u www-data php /var/www/nextcloud/updater/updater.phar
again, i got this:
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 22.2.10.
Update to Nextcloud 22.2.10 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-22.2.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] n
so basically update version and current version are the same.
any idea, what to do?
thanks.
did you tried something like this already? Update of nextcloud fails - #5 by Joulinar
hi.
thanks, no i haven’t…
but i will now…
just i’m not sure where to put this bypass script…
This should do hopefully
sed -i 's/>= 80200/>= 80300/' /var/www/nextcloud/lib/versioncheck.php
ok, so i just run this, and then i run the occ update? or updater.phar?
excuse me for my ignorance and thank you for your patience…
Try
sudo -u www-data php /var/www/nextcloud/updater/updater.phar
not working for me…
i’m on nc 22.2.10…
i think it runs php7.4 or so…
i tried your sed script:
╰─# sed -i ‘s/>= 80200/>= 80300/’ /var/www/nextcloud/lib/versioncheck.php
and then
sudo -u www-data php /var/www/nextcloud/updater/updater.phar
also tried
╰─# sed -i 's/>= 70000/>= 80300/' /var/www/nextcloud/lib/versioncheck.php
Can you share the correct error message.
As well following please
cat /var/www/nextcloud/lib/versioncheck.php
ah, not exactly error message, only occ update just said wrong php version, and updater.phar asked if i want to upgrade but is the same version i have already…
anyways, i can’t show you an error message, because i decided to purge and start from scratch…
actually i’m doing that right now…
i can come back to you and tell you how that went, if you’re interested…
i hope i purged everything relevant and start with a new nextcloud without any problems…
thank you for the effort, though…