there is another issue with php on Nextcloud, when changing from Bookworm to Trixie. On Bookworm Nextcloud runs with php 8.2, whereas Trixie comes along with 8.4.11. which throws errors when trying to start nextcloud.
“This version of Nextcloud is not compatible with PHP>=8.2.
You are currently running 8.4.11.”
Since I run Nextcloud 32.01, which is said to be compatible with PHP 8.4, there must be a hidden bug somewhere. On Nextcloud there a currently no updates available.
He, you guys,
I am very sorry to have wasted your time with this, because I repeatedly mixed things up. Since I am running the two raspberry machines for testing reasons in the same network and they only differ by the last digit of the IP-address, I was not aware, what I was doing when calling the new Trixie-machine-Nextcloud-address with the old “Bookworm” Nextcloud client-address. So that messed things up.
When I found out, I uninstalled nextcloud on the Trixie-machine via your software repository and afterwards I reinstalled it. What I learned was, that the repository does not conain Nextcloud 31 or 32 because afterwards it did not work as before. You have certainly good reasons for an older version in the repository.
So I downloaded Nextcloud 32.01 from github and installed it manually. Now it works as intended.
Again , sorry for that !
So im my opinon updating from Bookworm to Trixie via your update script, having nextcloud installed, will not work concerning nextcloud due to their different PHP Versions.
We don’t have an own repository for Nextcloud. Its installed from NC official sources. And it should be latest version available. You would need to share logs from the installation process, otherwise we don’t know what you did.
This is not correct. Or have you any evidence?
Being on latest NC should allow migration from Bookworm to Trixie without issues
When you uninstall Nextcloud, a backup is created of the data, database, and install dir. If you install it again, this backup, if present, is restored. Reason is that data, database, config, and Nextcloud version all need to match to function.
The question is what you want to achieve: Starting over with an entirely fresh Nextcloud instance + data? Then remove /mnt/dietpi_usedata/nextcloud_data or the data dir you chose via dietpi.txt. But this removes really everything, including all data. Fine if this is just a testing system, but be careful to not do that on a production system, of course.
So you have two systems with hence two Nextcloud instances, a new one that was in production, and an old one on a testing system, which you upgraded to Trixie? So you want to use the testing system as production system now, or does it remain the testing system and you ultimately want to upgrade the Bookworm production system to Trixie?
I thought about triggering a Nextcloud CLI upgrade as part of the distro upgrade. Could be also done after checking the versioncheck.php whether it is compatible with PHP 8.4 already or not. Usually I would expect Nextcloud instances to be on at least v31 already, but on some stale testing systems of course this might not be the case.
I will certainly switch from production to testing system, when it runs smooth without any major drawbacks (which seems to be so already). The fresh Nextcloud instance is not much of a problem since it’s mainly about documents and files, which are easily to be synchronized via the current local folder structure. The rest of it is not much work to reinstall manually.
You can also transfer the old Nextcloud instance: Uninstall it on the old system, then copy the /mnt/dietpi_userdata/nextcloud_data to the new system, and install Nextcloud there afterwards. It will then restore the backups automatically.