Hello NextClouders,
I have a problem that there is a lot to read about - too much for me to get clarity.
My plan is to migrate a Nextcloud (25.0.8) from a RaspberryOS Bullseye (32bit) to a RaspberryOS Bookworm (64bit) on a new machine.
For this I moved the database and all files /var/www//nextcloud to the new box.
Now I get “This version of Nextcloud is not compatible with PHP>=8.2. You are currently running 8.2.7.”
Threads about this issue are plentiful, mostly related to container environments or other prerequisites.
I think I found that switching to the testing repo, i.e. to NC26.x would help me.
Since the GUI is not running, I would have to do this from the CLI.
One can ‘bend’ the version test in /lib/versioncheck.php:
if (PHP_VERSION_ID >= 80200)
change to
if (PHP_VERSION_ID >= 80300)
Then the updater runs and wants to upgrade to 25.0.9, but fails at ‘occ upgrade’ with:
An unhandled exception has been thrown:
RedisException: Connection refused in /var/www//nextcloud/lib/private/RedisFactory.php:137
Looks like I need to fix redis…
Is there any point in following this plan?
How do I set the repository to 26.x without GUI ?
Thanks and greetings,
Boris