Reinstall of NextCloud on Raspberry PI 5 don't work

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.1.17.1
What app is this about: Nextcloud

Describe your issue

J’avais une vieille version de Nextcloud qui fonctionnait mais impossible de la mettre à jour depuis longtemps. J’ai (re)fait une sauvegarde, désinstallé, fait toutes les mises à jour système & Apps, ok. Mais l’install de la nouvelle version de Nextcloud échoue. Apparemment il y a un problème de dépendances (voir logs)

Share relevant logs or error messages

args:
app: nextcloud
force: false
ignore_yunohost_version: false
label: Icloud
no_remove_on_failure: false
ended_at: 2025-09-03 15:16:43.057534
error: ‘An error occured inside the script snippet : Unable to install apt dependencies’
interface: api
operation: app_install
parent: 20250903-143124-resource_snippet-nextcloud
related_to:

    • app
    • nextcloud
      started_at: 2025-09-03 15:15:59.911298
      success: false
      yunohost_version: 12.1.17.1

============

2025-09-03 17:15:59,920: INFO - Installing nextcloud…
2025-09-03 17:15:59,938: INFO - Provisioning sources…
2025-09-03 17:15:59,939: DEBUG - Prefetching asset main: https://download.nextcloud.com/server/releases/nextcloud-31.0.8.tar.bz2
2025-09-03 17:16:37,542: INFO - Provisioning system_user…
2025-09-03 17:16:38,633: INFO - Provisioning install_dir…
2025-09-03 17:16:38,637: INFO - Provisioning data_dir…
2025-09-03 17:16:38,641: INFO - Provisioning permissions…
2025-09-03 17:16:38,644: DEBUG - Permission ‘nextcloud.main’ updated
2025-09-03 17:16:38,650: DEBUG - Permission ‘nextcloud.main’ created
2025-09-03 17:16:38,657: DEBUG - Permission ‘nextcloud.main’ updated
2025-09-03 17:16:38,660: DEBUG - Permission ‘nextcloud.main’ updated
2025-09-03 17:16:38,663: DEBUG - Permission ‘nextcloud.api’ updated
2025-09-03 17:16:38,670: DEBUG - Permission ‘nextcloud.api’ created
2025-09-03 17:16:38,675: DEBUG - Permission ‘nextcloud.api’ updated
2025-09-03 17:16:38,677: DEBUG - Permission ‘nextcloud.api’ updated
2025-09-03 17:16:38,704: DEBUG - Creating LDAP perm nextcloud.api
2025-09-03 17:16:38,818: DEBUG - Updating LDAP perm nextcloud.main
2025-09-03 17:16:38,917: DEBUG - Permissions were resynchronized to LDAP
2025-09-03 17:16:38,942: DEBUG - Formating result in ‘export’ mode
2025-09-03 17:16:38,943: DEBUG - SSO and portal configurations regenerated
2025-09-03 17:16:38,943: INFO - Provisioning apt…
2025-09-03 17:16:38,950: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./provision_or_update_apt” 7>&1’]’
2025-09-03 17:16:38,964: DEBUG - + source /usr/share/yunohost/helpers
2025-09-03 17:16:38,965: DEBUG - ++++ dirname – /usr/share/yunohost/helpers
2025-09-03 17:16:38,965: DEBUG - +++ cd – /usr/share/yunohost
2025-09-03 17:16:38,966: DEBUG - +++ pwd
2025-09-03 17:16:38,966: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-09-03 17:16:38,966: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-09-03 17:16:38,967: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
2025-09-03 17:16:38,968: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
2025-09-03 17:16:38,978: DEBUG - + ynh_abort_if_errors
2025-09-03 17:16:38,980: DEBUG - + trap ynh_exit_properly EXIT
2025-09-03 17:16:38,980: DEBUG - + ynh_apt_install_dependencies imagemagick acl tar smbclient at mariadb-server redis-server php8.3-apcu php8.3-bcmath php8.3-bz2 php8.3-curl php8.3-fpm php8.3-gd php8.3-gmp php8.3-igbinary php8.3-imagick php8.3-imap php8.3-intl php8.3-ldap php8.3-mbstring php8.3-mysql php8.3-redis php8.3-sqlite3 php8.3-xml php8.3-zip libmagickcore-6.q16-6-extra
2025-09-03 17:16:38,981: DEBUG - ++ sed ‘s/([^<=>])\ ([^(])/\1, \2/g’
2025-09-03 17:16:38,982: DEBUG - ++ sed ‘s/|/ | /’
2025-09-03 17:16:38,982: DEBUG - + local ‘dependencies=imagemagick, acl, tar, smbclient, at, mariadb-server, redis-server, php8.3-apcu, php8.3-bcmath, php8.3-bz2, php8.3-curl, php8.3-fpm, php8.3-gd, php8.3-gmp, php8.3-igbinary, php8.3-imagick, php8.3-imap, php8.3-intl, php8.3-ldap, php8.3-mbstring, php8.3-mysql, php8.3-redis, php8.3-sqlite3, php8.3-xml, php8.3-zip, libmagickcore-6.q16-6-extra’
2025-09-03 17:16:38,983: DEBUG - ++ ynh_read_manifest version
2025-09-03 17:16:38,984: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_9mjo64jo/manifest.toml
2025-09-03 17:16:38,984: DEBUG - ++ toml_to_json
2025-09-03 17:16:38,984: DEBUG - ++ python3 -c ‘import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))’
2025-09-03 17:16:38,985: DEBUG - ++ jq .version --raw-output
2025-09-03 17:16:39,022: DEBUG - + local version=31.0.8~ynh1
2025-09-03 17:16:39,022: DEBUG - + local app_ynh_deps=nextcloud-ynh-deps
2025-09-03 17:16:39,023: DEBUG - + grep ‘[<=>]’
2025-09-03 17:16:39,024: DEBUG - ++ grep -oP ‘(?<=php)[0-9.]+(?=-|>|)’
2025-09-03 17:16:39,024: DEBUG - ++ sort -u
2025-09-03 17:16:39,025: DEBUG - + local specific_php_version=8.3
2025-09-03 17:16:39,026: DEBUG - + [[ -n 8.3 ]]
2025-09-03 17:16:39,026: DEBUG - ++ echo 8.3
2025-09-03 17:16:39,026: DEBUG - ++ wc -l
2025-09-03 17:16:39,027: DEBUG - + [[ 1 -eq 1 ]]
2025-09-03 17:16:39,027: DEBUG - + dependencies+=‘, php8.3, php8.3-fpm, php8.3-common’
2025-09-03 17:16:39,028: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-09-03 17:16:39,083: DEBUG - + local old_php_version=
2025-09-03 17:16:39,084: DEBUG - + ‘[’ -n ‘’ ‘]’
2025-09-03 17:16:39,084: DEBUG - + ynh_app_setting_set --key=php_version --value=8.3
2025-09-03 17:16:39,154: DEBUG - + test -e /usr/bin/php7.4
2025-09-03 17:16:39,154: DEBUG - + update-alternatives --set php /usr/bin/php7.4
2025-09-03 17:16:39,155: DEBUG - ++ _ynh_apt_package_is_installed postgresql-15
2025-09-03 17:16:39,156: DEBUG - ++ local package=postgresql-15
2025-09-03 17:16:39,156: DEBUG - ++ dpkg-query --show ‘–showformat=${db:Status-Status}’ postgresql-15
2025-09-03 17:16:39,157: DEBUG - ++ grep --quiet ‘^installed$’
2025-09-03 17:16:39,167: DEBUG - ++ echo no
2025-09-03 17:16:39,167: DEBUG - + local psql_installed=no
2025-09-03 17:16:39,167: DEBUG - + [[ true == \t\r\u\e ]]
2025-09-03 17:16:39,168: DEBUG - + YNH_APT_INSTALL_DEPENDENCIES_REPLACE=false
2025-09-03 17:16:39,168: DEBUG - ++ mktemp --directory
2025-09-03 17:16:39,168: DEBUG - + local TMPDIR=/tmp/tmp.w2sloh3Gxd
2025-09-03 17:16:39,169: DEBUG - + mkdir -p /tmp/tmp.w2sloh3Gxd/nextcloud-ynh-deps/DEBIAN
2025-09-03 17:16:39,169: DEBUG - + chmod -R 755 /tmp/tmp.w2sloh3Gxd/nextcloud-ynh-deps
2025-09-03 17:16:39,170: DEBUG - + cat
2025-09-03 17:16:39,171: DEBUG - + _ynh_apt update
2025-09-03 17:16:39,171: DEBUG - + _ynh_wait_dpkg_free
2025-09-03 17:16:39,294: DEBUG - + return 0
2025-09-03 17:16:39,295: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2025-09-03 17:16:39,392: DEBUG - Hit:1 Index of /debian bookworm InRelease
2025-09-03 17:16:39,403: DEBUG - Hit:2 Index of /debian bookworm InRelease
2025-09-03 17:16:39,428: DEBUG - Hit:4 http://deb.debian.org/debian-security bookworm-security InRelease
2025-09-03 17:16:39,435: DEBUG - Hit:5 https://dl.yarnpkg.com/debian stable InRelease
2025-09-03 17:16:39,450: DEBUG - Hit:6 Index of /debian bookworm-updates InRelease
2025-09-03 17:16:39,455: DEBUG - Hit:7 https://packages.sury.org/php bookworm InRelease
2025-09-03 17:16:39,528: DEBUG - Hit:3 Index of /debian/ bookworm InRelease
2025-09-03 17:16:41,177: DEBUG - Reading package lists…
2025-09-03 17:16:41,195: DEBUG - + _ynh_wait_dpkg_free
2025-09-03 17:16:41,314: DEBUG - + return 0
2025-09-03 17:16:41,315: DEBUG - + dpkg-deb --build /tmp/tmp.w2sloh3Gxd/nextcloud-ynh-deps /tmp/tmp.w2sloh3Gxd/nextcloud-ynh-deps.deb
2025-09-03 17:16:41,349: DEBUG - + dpkg --force-depends --install /tmp/tmp.w2sloh3Gxd/nextcloud-ynh-deps.deb
2025-09-03 17:16:41,350: DEBUG - + tee /tmp/tmp.w2sloh3Gxd/dpkg_log
2025-09-03 17:16:41,367: DEBUG - dpkg: unrecoverable fatal error, aborting:
2025-09-03 17:16:41,368: DEBUG - unknown system user ‘redis’ in statoverride file; the system user got removed
2025-09-03 17:16:41,368: DEBUG - before the override, which is most probably a packaging bug, to recover you
2025-09-03 17:16:41,368: DEBUG - can remove the override manually with dpkg-statoverride
2025-09-03 17:16:41,375: DEBUG - + _ynh_apt_install --fix-broken
2025-09-03 17:16:41,375: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install --fix-broken
2025-09-03 17:16:41,375: DEBUG - + _ynh_wait_dpkg_free
2025-09-03 17:16:41,490: DEBUG - + return 0
2025-09-03 17:16:41,491: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install --fix-broken
2025-09-03 17:16:41,528: DEBUG - Reading package lists…
2025-09-03 17:16:41,935: DEBUG - Building dependency tree…
2025-09-03 17:16:41,936: DEBUG - Reading state information…
2025-09-03 17:16:42,499: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2025-09-03 17:16:42,499: DEBUG - + rm --recursive --force /tmp/tmp.w2sloh3Gxd
2025-09-03 17:16:42,500: DEBUG - + _ynh_apt_package_is_installed nextcloud-ynh-deps
2025-09-03 17:16:42,501: DEBUG - + local package=nextcloud-ynh-deps
2025-09-03 17:16:42,501: DEBUG - + dpkg-query --show ‘–showformat=${db:Status-Status}’ nextcloud-ynh-deps
2025-09-03 17:16:42,502: DEBUG - + grep --quiet ‘^installed$’
2025-09-03 17:16:42,511: DEBUG - + ynh_die ‘Unable to install apt dependencies’
2025-09-03 17:16:42,551: WARNING - Unable to install apt dependencies
2025-09-03 17:16:43,057: ERROR - provision_or_update failed for apt : An error occured inside the script snippet : Unable to install apt dependencies

Zblerf je dois aller dormir mais apriori c’est ça la source de l’erreur, pas sur de comment ça se produit ni ce que ça veut vraiment dire … je me souviens avoir dépanné des users avec des pb similaires dans le passé, si tu cherches “statoverride” sur le forum peut-être que tu trouveras des pistes

J’ai trouvé. Apparemment il restait un dossier nextcloud dans /home/yunohost.app, avec des droits incorrects. Aprés suppression du dossier l’installation s’est passée sans soucis.

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