Skip to main content


Not thrilled that there’s no #NextCloud upgrade path between #PHP 7.4 and PHP 8.2 as I just changed #Devuan ’s major version.

This is because NextCloud refuses to upgrade more than one major version at a time, and on the upgrade path from PHP 7.4 to PHP 8.2, NextCloud version 25 supports neither of them.

Currently compiling a PHP 8.1 executable to hopefully run the version 25 upgrade console command before I move on to version 26 which supports PHP 8.2.

Phew 🥵
You should be able to use Surys repo to get other PHP versions, so no need for manually compile it
@:debian: 𝚜𝚎𝚕𝚎𝚊 :fedora: So far I haven’t had any luck using these sources with Devuan, the installer complains there no available target architecture as it’s apparently looking explicitly for “debian”. It’s been a while though, I’d say a couple years, maybe it has changed since.
I think you can change it to "bookworm" or approprioate in the sources-file

I have to check
I don't get it, how did you find yourself in this situation?
@Emmanuel Florac - Initial situation: PHP 7.4 Nextcloud 24 (apparently?)
- Upgrade to PHP 8.2
- Nextcloud refuses to start because of missing support for PHP 8.2
- Download Nextcloud 27 (latest) manually
- Upgrade console command refuses to skip a major version
- Download Nextcloud 26 manually
- Upgrade console command refuses to skip a major version
- Download NextCloud 25 manually
- Upgrade console command refuses to start because of missing support for PHP 8.2
Ah I see, that's going from Debian 11 to Debian 12. jurisic.org has a proper Nextcloud 25 package for Debian 12.
@Hypolite Petovan yeah that's tricky... That's why I'm using Jurisic's packages, they take care of the gory details (upgrade from 24-deb11 to 24-deb12, then 25, then 26, etc) Check https://www.jurisic.org/

@Hypolite Petovan
I do the same last week, upgrading debian 11 to 12 and after that upgrading nextcloud from 25 to 27 version. I have made a small modification for the first upgrade of nextcloud 25 to 26.
Problem solved ?

edit
i follow this post to make the upgrade
https://help.nextcloud.com/t/upgrade-to-debian-12-bookworm/163944/14

This entry was edited (1 year ago)
@⚡Thierry Talbert🐧 Merci Thierry, j’ai pensé à faire ça aussi mais j’ai eu peur d’être coincé au milieu de la mise à jour du coup j’ai préféré la faire à la réglementaire.
@⚡Thierry Talbert🐧 Le problème dans ce cas c’est NextCloud et sa vérification stricte d’un éventail de versions autorisées très étroit. Iels font ça pour se couvrir un max, comme tu as pu le constater ce n’est pas une limite technique.
@Hypolite Petovan ah ! Mais donc tu sous-entends qu'il y a bien une compatibilité ascendante dans les fonctions php.
Donc yep, ils sont bien fautifs, ils devraient au moins mettre en place un update version free ou un truc qui ne bloque pas tout Nextcloud dans un cas comme celui-là.
@⚡Thierry Talbert🐧 Oui, il y a une compatibilité ascendante. Elle n’est pas parfaite, PHP retire des fonctions ou ajoute des mots réservés lors des montées de version majeures, mais la plupart des scripts peuvent encore fonctionner.
I know this is hours old now, but there's a great php repository I use on my debian boxes that has all the versions, and updated frequently. Now if I were in front of a computer, I could share that easily. Just mentioning it as if you were still fighting with it all it might save you some time.
And now I see the rest of the thread... lol, sorry.
Update: I've realized I was running NextCloud 19 (!) which means I will have to go through 7-8 different manual upgrades until I reach a PHP 8.2 compatible version.

I've been able to import the Sury PHP repository by changing the Devuan's daedalus release name by the Debian's bookworm release name thanks to @:debian: 𝚜𝚎𝚕𝚎𝚊 :fedora: 's suggestion, and so I won't have to build all the PHP versions I'll need on this painstaking upgrade path.

Onwards!
Final update: NextCloud 27, here I am at last! I still have to remove three extra PHP binaries and eight extra NextCloud code repository folders and reinstall a few apps but at least it’s working now. 😌