Upgrade of nextcloud 25 server not possible (debian 11, php 7.4)

error-message of ā€˜ncp-dist-upgradeā€™:

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

Debian 11 does not offer PHP 8.0.

This post is referring to

I dunno how ncp handles thisā€¦ but apparently this must be done first.
isnā€™t there a point where you can set your php via the NCP-GUI?

At least itā€™s better to wait for some ncp-maintainers to chime in here and letting you know how to proceed on from here.

I moved your topic to the correct subfolderā€¦ itā€™s tagged correctly ā€¦

Try to update your ncp first.
php 8.1 arrives about ncp v.1.5 (nc 25)

ncp-update

Hello,

ncp was already up to date (v1.54.3) when i entered the above commands.

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

@geoW thatā€™s of course the common wayā€¦ but NCP comes with everything doneā€¦ so letā€™s try to donā€™t mix things here for the sake of @fkol

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.

@geoW

are you into NCP?

No, user. (10 Characters)

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.

Sorry, Iā€™m not aware of means in ā€œncp-boundariesā€ to fix this messed-up instance:
ncp 1.54.3
nc 25.0.13
php 7.4.33

So this

should be read as setup a fresh instance?

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. :smiley: