Erreur mise à jour Nextcloud

Mon serveur YunoHost

Matériel: Raspberry Pi à la maison (version 4B)
Version de YunoHost: 11.2.5
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : oui
**Si oui, expliquer: j’ai deux disques externe branché
Si votre requête est liée à une application, précisez son nom et sa version: nextcoud version 22

Description du problème

Bonjour,
J’ai mis à jour yunohost vers la version 11.2.5.
J’essaye de mettre à jour nextcloud : de la version 22 à la version 27 (ou 28 je ne sais pas exactement).
La version 23 de nextcloud s’intalle correctement. C’est l’installation de la version 24 qui ne fonctionne pas.
J’ai php7.4 sur mon serveur. Cependant la mise à jour installe la version 8.2 de php et voici l’erreur que j’ai ensuite;

This version of Nextcloud is not compatible with PHP>=8.2.<br/>You are currently running 8.2.11.+ ynh_exit_properly

Voici les logs en totalité : https://paste.yunohost.org/raw/rudonakoya

Je comprends que la version 24 n’est pas compatible avec php8.2, mais alors pourquoi la mise à jour install php8.2 alors que j’ai déja php7.4 …

Comment faire la mise à jour ?

Je vous remercie et vous souhaite une bonne journée.

Bonjour charbino,

My French is not good enough for writing, so I’ll reply in English :wink:

The cause of the problem is quite clear, and PHP can have multiple versions installed concurrently

I saw a couple of threads on the Nextcloud forum where people experience a similar problem, even though it was for another version of NC.

At the bottom of one of the threads, someone installs PHP 8.1 alongside PHP 8.2+, and runs update-alternatives --config php

They had to disable some services to get NC to upgrade.

On my Yunohost there aro multiple PHP’s installed as well, to give you an idea:

# update-alternatives --list php
/usr/bin/php5.6
/usr/bin/php7.0
/usr/bin/php7.1
/usr/bin/php7.2
/usr/bin/php7.3
/usr/bin/php7.4
/usr/bin/php8.0
/usr/bin/php8.1
/usr/bin/php8.2


# update-alternatives --config php
There are 9 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
------------------------------------------------------------
  0            /usr/bin/php8.2   82        auto mode
  1            /usr/bin/php5.6   56        manual mode
  2            /usr/bin/php7.0   70        manual mode
  3            /usr/bin/php7.1   71        manual mode
  4            /usr/bin/php7.2   72        manual mode
  5            /usr/bin/php7.3   73        manual mode
* 6            /usr/bin/php7.4   74        manual mode
  7            /usr/bin/php8.0   80        manual mode
  8            /usr/bin/php8.1   81        manual mode
  9            /usr/bin/php8.2   82        manual mode

Press <enter> to keep the current choice[*], or type selection number: ^C

My Nexctloud is 27.1.2~ynh1, I am not sure when I upgraded.

Good luck!

Je comprends que tu as mis longtemps avant de upgrader Yunohost ! Est-ce que tu as bien effectué toutes les migrations ?? que retourne la commande yunohost tools migrations run ?
Sinon, en effet la dernière version de Nextcloud va utiliser php8.2, suivant les apps il peut y avoir différentes versions de php utilisées…
La version 25 était en php8.1, ça date de 2022 les versions 24 et 25…

Tu peux peut-être essayer cela:
mettre à jour d’abord vers la version 26.0.7 qui utilise php8.1 en utilisant la branche oldstable du projet

sudo app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/oldstable

et si ça fonctionne tu devrais pouvoir ensuite faire l’upgrade vers la dernière version…

Peut-être bien penser à faire une sauvegarde auparavant de l’application

sudo yunohost backup create nextcloud --apps et une synchro des données en local…

Bonjour,

Je vous remercie de votre aide.
J’ai réussi à mettre à jour nextcloud, j’ai fait exactement ce que vous avez dit :

  • installation de php8.1
  • mise à jours vers la version 26.0.7 avec yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/oldstable
  • mise à jour vers la version 27.0.x avec yunohost app upgrade nextcloud

Merci et bonne journée


Hello,

Sorry for my bad English :wink:

Thank you for your help.
I managed to update nextcloud, I did exactly what you said:

  • install php8.1
  • upgrade to version 26.0.7 with yunohost app upgrade nextcloud -u https://github.com/YunoHost-Apps/nextcloud_ynh/tree/oldstable
  • upgrade to version 27.0.x with yunohost app upgrade nextcloud

Thank you and have a nice day

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.