Nextcloud upgrade not allowed : PHP not supported

Hello every one. :slight_smile:

My YunoHost server

Hardware: online server
YunoHost version: 11.2.9.1
I have access to my server : Through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : i don’t think so
If your request is related to an app, specify its name and version: :
YNH_APP_CURRENT_VERSION: 25.0.6~ynh1
YNH_APP_ID: nextcloud
YNH_APP_INSTANCE_NAME: nextcloud
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_APP_MANIFEST_VERSION: 27.1.4~ynh1
YNH_APP_PACKAGING_FORMAT: ‘1.0’
YNH_APP_UPGRADE_TYPE: UPGRADE_APP
YNH_ARCH: amd64
YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_jj5qfmns/scripts
YNH_DEBIAN_VERSION: bullseye
YNH_INTERFACE: api
YNH_STDRETURN: /tmp/tmp1f3cbsue/stdreturn
error: “Une erreur s’est produite durant l’ex\xE9cution du script de mise \xE0 niveau
\ de l’application”
interface: api
operation: app_upgrade
parent: null
related_to:

    • app
    • nextcloud
      success: false

Description of my issue

First, i should say thank you for your time. :pray:

I tried to run an upgrade of my Nextcloud Instance 25.0.6 to 27.1.4 but it failed. Logs say

datadir=/home/yunohost.app/nextcloud/data
2023-12-28 09:26:11,465: DEBUG - + ‘[’ UPGRADE_APP == UPGRADE_APP ‘]’
2023-12-28 09:26:11,546: INFO - [#############+…] > Upgrading Nextcloud…
2023-12-28 09:26:11,546: DEBUG - + source upgrade.d/upgrade.last.sh
2023-12-28 09:26:11,547: DEBUG - ++ next_version=27.1.4
2023-12-28 09:26:11,547: DEBUG - ++ nextcloud_source_sha256=bec65f2166b82c9303baf476c1e424f71aa196dad010ffe4c0c39d03990d594c
2023-12-28 09:26:11,547: DEBUG - + last_version=27.1.4
2023-12-28 09:26:11,547: DEBUG - + last_major_version=27
2023-12-28 09:26:11,547: DEBUG - + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
2023-12-28 09:26:13,830: DEBUG - + exec_occ -V
2023-12-28 09:26:13,833: DEBUG - + ‘[’ 25 = last ‘]’
2023-12-28 09:26:13,834: DEBUG - + ‘[’ 25 -ge 24 ‘]’
2023-12-28 09:26:13,834: DEBUG - + NEXTCLOUD_PHP_VERSION=8.2
2023-12-28 09:26:13,834: DEBUG - + cd /var/www/nextcloud
2023-12-28 09:26:13,834: DEBUG - + ynh_exec_as nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi -V
2023-12-28 09:26:13,834: DEBUG - + local user=nextcloud
2023-12-28 09:26:13,835: DEBUG - + shift 1
2023-12-28 09:26:13,835: DEBUG - ++ whoami
2023-12-28 09:26:13,835: DEBUG - + [[ nextcloud = root ]]
2023-12-28 09:26:13,835: DEBUG - + sudo -u nextcloud php8.2 --define apc.enable_cli=1 occ --no-interaction --no-ansi -V
2023-12-28 09:26:13,929: DEBUG - This version of Nextcloud is not compatible with PHP>=8.2.
You are currently running 8.2.14.+ ynh_exit_properly

So, i went see my tools on my webadmin interface. I can see this versions :

  • php 7.4 (Why ? O_o)
  • php 8.0 (again, why ? O_o)
  • php 8.1 (ok)
  • php 8.2 (good)

No php 8.3.

I went on Nextcloud website to look, and PHP 8.2 should work. Like 8.1 or 8.3.

Bonus question : Should i deactivate old PHP versions ?

Thank you again for your time. :smiling_face_with_three_hearts:

You should try to update to Nextcloud 26.0.10 first. (there is a bug that should be fixed hopefully soon when trying to update from 25 to 27/28 version)

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

It depends on the applications you have installed on your server.
Each application installs its own version of PHP

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