This is a dangerous process that is only guaranteed to work properly if you have not made manual changes in the system. Backup the SD card first and proceed at your own risk.
Note that this is not a requirement for NCP to continue working properly. The current distribution will keep receiving updates for some time.
Do you want to continue? [y/N] y You still have PHP version 7.4 installed. Please update to the latest supported version of nextcloud (which will also update your PHP version) before proceeding with the distribution upgrade.
error-message of āncp-update-nextcloudā:
Current Nextcloud version 25.0.13 Available Nextcloud version 26.0.13 INFO: You have requested an update to ā26.0.10ā, but a direct update to ā26.0.10ā cannot be performed, so the latest available version that can be updated to has been selected automatically. Download Nextcloud 26.0.13ā¦ Back up current instanceā¦ check free spaceā¦ Maintenance mode enabled backup databaseā¦ backup filesā¦ backup /var/www/nextcloud-bkp_20240820_1724156651.tar.gz generated Maintenance mode disabled Storing backup at ā/var/www/nextcloud-bkp_20240820_1724156651-25.0.13.tar.gzāā¦ Install Nextcloud 26.0.13ā¦ Fix permissionsā¦ Upgradeā¦ This version of Nextcloud requires at least PHP 8.0 You are currently running 7.4.33. Please update your PHP version.Abort Clean upā¦ Rolling back
Now I would do a search about updating php nevertheless.
Imho therefore you have to add a special repository before apt update and apt upgrade. Do a search installing package alternatives it should give you ocassionally choice of versions; choose max v. 8.1
No, he stucks in a mismatch situation, to correct the php version seems to me the least miserable approach to go on with the ncp update scheme.
Another try would be older backups to start with, but in my opinion -if at all- second best.
thatās ok.
So why was I asking you?
I dunno what exactly happened to our TS here since NCP is known to do everything āunderneathā for their usersā¦ which, on the other hand, means every NCP user has litterally the same setup and stuff. SO if you would solve the problem like a normal user (and of course there are solutions out there which would solve it) it could happend as a sideeffect that the setup isnāt identically anymoreā¦ which could lead to later problems with later updates/grades.
This is the only reason for me to not suggest any other solution to TS than solving it within NCPāboundaries.
yes. and no. because do you know what NCP-devs/Maintainers did under the hood? what are the configs/setups etc.? this isnāt covered by the sheer versions.
To install ncp from scratch you should follow the ncp-manual. on a pi thereās a ready img you should spin up. With everything/setting done underneath the hood.
Totally agree, let spread the hope of new ncp-version so we can easily and joyfully follow the true path of ncp in future times, but now lets get rid of the wrong php version.