Installation impossible de Nextcloud

Mon serveur YunoHost

Brique Internet : Lime 2
Version de YunoHost: 3.6.5.3 (stable)
J’ai accès à mon serveur : En SSH
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

Bonjour,

J’avais installé il y a quelques temps Nextcloud sur ma carte Lime 2, et cela fonctionnait.
Malheureusement, une mise à jour (je ne sais plus dire laquelle, j’ai lancé ça un soir avant de me coucher) a échoué.
J’ai alors tenté de supprimer Nextcloud avant de le réinstaller, mais cela n’a plus jamais été possible.
J’ai retenté une installation ce soir, et cela ne fonctionne toujours pas.
Voici un extrait du journal d’installation :

2020-01-30 21:33:44,229: DEBUG - + declare -Ar args_array
2020-01-30 21:33:44,231: DEBUG - + local message
2020-01-30 21:33:44,233: DEBUG - + local ret_code
2020-01-30 21:33:44,235: DEBUG - + ynh_handle_getopts_args '--message=Unable to install Nextcloud'
2020-01-30 21:33:44,237: DEBUG - + set +x
2020-01-30 21:33:44,239: DEBUG - + echo 'Unable to install Nextcloud'
2020-01-30 21:33:44,242: DEBUG - + exit 1
2020-01-30 21:33:44,244: DEBUG - + ynh_exit_properly
2020-01-30 21:33:44,246: DEBUG - + local exit_code=1
2020-01-30 21:33:44,247: DEBUG - + '[' 1 -eq 0 ']'
2020-01-30 21:33:44,249: DEBUG - + trap '' EXIT
2020-01-30 21:33:44,251: DEBUG - + set +eu
2020-01-30 21:33:44,253: DEBUG - + sleep 0.5
2020-01-30 21:33:44,756: DEBUG - + ynh_print_err '--message=!!\n  nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-01-30 21:33:44,758: DEBUG - + local legacy_args=m
2020-01-30 21:33:44,761: DEBUG - + args_array=([m]=message=)
2020-01-30 21:33:44,762: WARNING - e[91me[1m[ERR]e[0m !!
2020-01-30 21:33:44,766: DEBUG - + declare -Ar args_array
2020-01-30 21:33:44,768: WARNING -   nextcloud's script has encountered an error. Its execution was cancelled.
2020-01-30 21:33:44,772: DEBUG - + local message
2020-01-30 21:33:44,774: WARNING - !!
2020-01-30 21:33:44,779: DEBUG - + ynh_handle_getopts_args '--message=!!\n  nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-01-30 21:33:44,781: DEBUG - + set +x
2020-01-30 21:33:44,783: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n  nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-01-30 21:33:44,786: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n  nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!'
2020-01-30 21:33:44,788: DEBUG - + '[' cli == cli ']'
2020-01-30 21:33:44,790: WARNING - e[34me[1mPlease find here an extract of the log before the crash:e[0m
2020-01-30 21:33:44,793: DEBUG - + set +x
2020-01-30 21:33:44,897: DEBUG - + type -t ynh_clean_setup
2020-01-30 21:33:44,898: WARNING - e[34me[1m[DEBUG]e[0m: DEBUG   -=ret_code=)
2020-01-30 21:33:44,901: DEBUG - + ynh_die
2020-01-30 21:33:44,902: WARNING - e[34me[1m[DEBUG]e[0m: WARNING - Unable to install Nextcloud
2020-01-30 21:33:44,905: DEBUG - + local legacy_args=mc
2020-01-30 21:33:44,906: WARNING - e[34me[1m[DEBUG]e[0m: DEBUG   - + declare -Ar args_array
2020-01-30 21:33:44,908: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2020-01-30 21:33:44,909: WARNING - e[34me[1m[DEBUG]e[0m: DEBUG   - + local message
2020-01-30 21:33:44,912: DEBUG - + declare -Ar args_array
2020-01-30 21:33:44,913: WARNING - e[34me[1m[DEBUG]e[0m: DEBUG   - + local ret_code
2020-01-30 21:33:44,915: DEBUG - + local message
2020-01-30 21:33:44,917: WARNING - e[34me[1m[DEBUG]e[0m: DEBUG   - + ynh_handle_getopts_args '--message=Unable to install Nextcloud'
2020-01-30 21:33:44,919: DEBUG - + local ret_code
2020-01-30 21:33:44,920: WARNING - e[34me[1m[DEBUG]e[0m: DEBUG   - + set +x
2020-01-30 21:33:44,922: DEBUG - + ynh_handle_getopts_args
2020-01-30 21:33:44,924: WARNING - e[34me[1m[DEBUG]e[0m: DEBUG   - + echo 'Unable to install Nextcloud'
2020-01-30 21:33:44,926: DEBUG - + set +x
2020-01-30 21:33:44,927: WARNING - e[34me[1m[DEBUG]e[0m: DEBUG   - + exit 1
2020-01-30 21:33:44,929: DEBUG - + echo ''
2020-01-30 21:33:44,930: WARNING - e[34me[1m[DEBUG]e[0m: DEBUG   - + ynh_exit_properly
2020-01-30 21:33:44,933: DEBUG - + exit 1
2020-01-30 21:33:44,934: WARNING - 

Si je comprends bien, il semble qu’il y ait une erreur dans un script (python ?)
Quelqu’un aurait-il une idée ?
Je me demande s’il reste des résidus de l’installation précédente ou bien si le problème est nouveau : à chaque tentative d’installation (espacées de plusieurs semaines/mois), j’ai l’impression qu’il ne s’agit pas des mêmes erreurs.
Y a-t-il un moyen de supprimer “proprement” toute trace de l’installation précédente s’il en reste ?

Merci

Salut,

Je suis d’accord avec toi, il y a probablement des traces de la précédente installation. Par contre l’extrait que tu montres ne donne pas du tout d’indice sur ce qu’il ne va pas. Peux-tu partager le log complet (celui accessible avec yunohost log display ...) ?

Bonjour,

Merci pour ta réponse.
Si j’ai bien compris, j’ai partagé le log dans yunopaste ici : https://paste.yunohost.org/raw/yawuricowo
Et effectivement, en y regardant de plus près, je vois des erreurs qui indiquent qu’il manque des modules PHP :

2020-01-30 21:33:44,142: DEBUG - PHP module zip not installed.
2020-01-30 21:33:44,145: DEBUG - Please ask your server administrator to install the module.
2020-01-30 21:33:44,148: DEBUG - 
2020-01-30 21:33:44,150: DEBUG - PHP module dom not installed.
2020-01-30 21:33:44,152: DEBUG - Please ask your server administrator to install the module.
2020-01-30 21:33:44,154: DEBUG - 
2020-01-30 21:33:44,155: DEBUG - PHP module XMLWriter not installed.
2020-01-30 21:33:44,162: DEBUG - Please ask your server administrator to install the module.
2020-01-30 21:33:44,164: DEBUG - 
2020-01-30 21:33:44,166: DEBUG - PHP module XMLReader not installed.
2020-01-30 21:33:44,169: DEBUG - Please ask your server administrator to install the module.
2020-01-30 21:33:44,172: DEBUG - 
2020-01-30 21:33:44,174: DEBUG - PHP module libxml not installed.
2020-01-30 21:33:44,176: DEBUG - Please ask your server administrator to install the module.
2020-01-30 21:33:44,178: DEBUG - 
2020-01-30 21:33:44,180: DEBUG - PHP module mbstring not installed.
2020-01-30 21:33:44,184: DEBUG - Please ask your server administrator to install the module.
2020-01-30 21:33:44,186: DEBUG - 
2020-01-30 21:33:44,189: DEBUG - PHP module SimpleXML not installed.
2020-01-30 21:33:44,191: DEBUG - Please ask your server administrator to install the module.
2020-01-30 21:33:44,194: DEBUG - 
2020-01-30 21:33:44,196: DEBUG - An unhandled exception has been thrown:
2020-01-30 21:33:44,198: DEBUG - Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:166
2020-01-30 21:33:44,200: DEBUG - Stack trace:
2020-01-30 21:33:44,203: DEBUG - #0 /var/www/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
2020-01-30 21:33:44,206: DEBUG - #1 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')

J’avais pourtant fait un yunohost tools upgrade --apps/yunohost tools upgrade --system avant de lancer l’installation de Nextcloud, et maintenant, au login, j’ai un message qui dit qu’il y a des mises à jour :

[ 0 security updates available, 66 updates total: apt upgrade ]
Last check: 2020-01-31 00:00

… et apt upgrade me dit :

Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
Les paquets suivants ont été conservés :
  linux-image-next-sunxi
Les paquets suivants seront mis à jour :
  php-common php-curl php-fpm php-gd php-intl php-ldap php-mbstring php-mysql php-xml php-zip php7.0-cli
  php7.0-common php7.0-curl php7.0-fpm php7.0-gd php7.0-intl php7.0-json php7.0-ldap php7.0-mcrypt php7.0-mysql
  php7.0-opcache php7.0-readline php7.2-cli php7.2-common php7.2-curl php7.2-fpm php7.2-gd php7.2-intl php7.2-json
  php7.2-mysql php7.2-opcache php7.2-readline php7.3 php7.3-bcmath php7.3-cli php7.3-common php7.3-curl php7.3-fpm
  php7.3-gd php7.3-intl php7.3-json php7.3-ldap php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-readline
  php7.3-sqlite3 php7.3-xml php7.3-zip php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-gd php7.4-intl
  php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-zip
  python-apt python-apt-common python3-apt
66 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.

Il y a notamment une mise à jour de beaucoup de paquets relatifs à PHP.
Bizarre …
Je lance un upgrade, je ré-essaierai l’installation ensuite.

Bon, ben, après apt upgrade, même résultat :

2020-01-31 06:20:24,977: DEBUG - ++ whoami
2020-01-31 06:20:24,978: DEBUG - + [[ nextcloud = root ]]
2020-01-31 06:20:24,989: DEBUG - + sudo -u nextcloud php occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass ********** --admin-user admin --admin-pass ZQXdf1 --data-dir /home/yunohost.app/nextcloud/data
2020-01-31 06:20:26,098: DEBUG - PHP module zip not installed.
2020-01-31 06:20:26,100: DEBUG - Please ask your server administrator to install the module.
2020-01-31 06:20:26,101: DEBUG - 
2020-01-31 06:20:26,103: DEBUG - PHP module dom not installed.
2020-01-31 06:20:26,109: DEBUG - Please ask your server administrator to install the module.
2020-01-31 06:20:26,111: DEBUG - 
2020-01-31 06:20:26,112: DEBUG - PHP module XMLWriter not installed.
2020-01-31 06:20:26,114: DEBUG - Please ask your server administrator to install the module.
2020-01-31 06:20:26,122: DEBUG - 
2020-01-31 06:20:26,127: DEBUG - PHP module XMLReader not installed.
2020-01-31 06:20:26,131: DEBUG - Please ask your server administrator to install the module.
2020-01-31 06:20:26,133: DEBUG - 
2020-01-31 06:20:26,135: DEBUG - PHP module libxml not installed.
2020-01-31 06:20:26,141: DEBUG - Please ask your server administrator to install the module.
2020-01-31 06:20:26,144: WARNING - Unable to install Nextcloud
2020-01-31 06:20:26,147: DEBUG - 
2020-01-31 06:20:26,149: DEBUG - PHP module mbstring not installed.
2020-01-31 06:20:26,151: DEBUG - Please ask your server administrator to install the module.
2020-01-31 06:20:26,153: DEBUG - 
2020-01-31 06:20:26,155: DEBUG - PHP module SimpleXML not installed.
2020-01-31 06:20:26,157: DEBUG - Please ask your server administrator to install the module.
2020-01-31 06:20:26,159: DEBUG - 
2020-01-31 06:20:26,160: DEBUG - An unhandled exception has been thrown:
2020-01-31 06:20:26,162: DEBUG - Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:166
2020-01-31 06:20:26,163: DEBUG - Stack trace:

Il semble y avoir un soucis avec les modules PHP.
Pourtant je ne crois pas avoir bricolé cette brique …

Je pense que tu as le même problème qu’ici. En gros, PHP 7.4 s’est retrouvé installé sans qu’on lui ait vraiment demandé.

Avant tout, vérifie qu’aucune de tes applications a besoin de PHP 7.4 (de mémoire non), puis tente un apt remove php7.4* et retente une installation de Nextcloud.
(cette commande semble un peu dangereuse si d’autres applications sont installées, cf. la réponse de maxime plus bas)

Merci,
Je regarde ça ce soir/ce week end.

@tituspijean j’ai essayé la commande de suppression que tu proposes mais je n’ai pas osé aller jusqu’au bout car je pense que ça aurait fait des dégâts :

   Les paquets suivants seront ENLEVÉS :
  baikal-ynh-deps php-cli php-curl php-fpm php-gd php-imap php-intl php-ldap php-mbstring php-mysql
  php-soap php-sqlite3 php-xml php-zip php7.4-cli php7.4-common php7.4-curl php7.4-fpm php7.4-gd
  php7.4-imap php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-mysql php7.4-opcache
  php7.4-readline php7.4-soap php7.4-sqlite3 php7.4-xml php7.4-zip
0 mis à jour, 0 nouvellement installés, 31 à enlever et 1 non mis à jour.
Après cette opération, 20,9 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] n

@tituspijean
@Al105

J’ai résolu mon soucis en sélectionnant la version 7.3 de PHP :

update-alternatives --config php

1 Like

Cela semble mieux, en effet ! Je pense que l’utilisateur sur l’autre fil n’avait pas d’autre application. Je modifie ma réponse pour éviter des désagréments à d’autres dans le même cas.

Bonsoir,
J’ai refait un test, et j’avais une application qui utilisait PHP 7.4 : Pilea
J’ai désinstallé Pilea, fait le ménage pour virer PHP 7.4, et maintenant j’ai l’erreur suivante :

2020-02-01 05:55:21,836: DEBUG - + sudo -u nextcloud php occ --no-interaction --no-ansi ldap:test-config ''\'''\'''
2020-02-01 05:55:22,843: DEBUG - An unhandled exception has been thrown:
2020-02-01 05:55:22,854: DEBUG - RedisException: Connection refused in /var/www/nextcloud/lib/private/RedisFactory.php:88
2020-02-01 05:55:22,857: DEBUG - Stack trace:

J’ai redémarré ma brique, je re-tente une install maintenant …

Bon, ben, même erreur :

2020-02-02 22:17:25,820: DEBUG - + sudo -u nextcloud php occ --no-interaction --no-ansi ldap:test-config ''\'''\'''
2020-02-02 22:17:26,826: DEBUG - An unhandled exception has been thrown:
2020-02-02 22:17:26,829: DEBUG - RedisException: Connection refused in /var/www/nextcloud/lib/private/RedisFactory.php:88
2020-02-02 22:17:26,831: DEBUG - Stack trace:
2020-02-02 22:17:26,833: DEBUG - #0 /var/www/nextcloud/lib/private/RedisFactory.php(88): Redis->connect('localhost', '6379', '0.0')
2020-02-02 22:17:26,836: DEBUG - #1 /var/www/nextcloud/lib/private/RedisFactory.php(104): OC\RedisFactory->create()
2020-02-02 22:17:26,838: DEBUG - #2 /var/www/nextcloud/lib/private/Memcache/Redis.php(42): OC\RedisFactory->getInstance()
2020-02-02 22:17:26,840: DEBUG - #3 /var/www/nextcloud/lib/private/Memcache/Factory.php(136): OC\Memcache\Redis->__construct('a6dd314f9f456f8...')
2020-02-02 22:17:26,842: DEBUG - #4 /var/www/nextcloud/lib/private/Server.php(861): OC\Memcache\Factory->createLocking('lock')
2020-02-02 22:17:26,845: DEBUG - #5 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
2020-02-02 22:17:26,847: DEBUG - #6 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...')
2020-02-02 22:17:26,849: DEBUG - #7 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...')
2020-02-02 22:17:26,852: DEBUG - #8 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OCP\\Lock\\ILocki...')
2020-02-02 22:17:26,854: DEBUG - #9 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
2020-02-02 22:17:26,856: DEBUG - #10 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('LockingProvider')
2020-02-02 22:17:26,858: DEBUG - #11 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('LockingProvider')
2020-02-02 22:17:26,861: DEBUG - #12 /var/www/nextcloud/lib/private/Server.php(1804): OC\ServerContainer->query('LockingProvider')
2020-02-02 22:17:26,863: DEBUG - #13 /var/www/nextcloud/lib/private/Files/View.php(117): OC\Server->getLockingProvider()
2020-02-02 22:17:26,865: DEBUG - #14 /var/www/nextcloud/lib/private/Server.php(221): OC\Files\View->__construct()
2020-02-02 22:17:26,867: DEBUG - #15 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
2020-02-02 22:17:26,870: DEBUG - #16 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('OCP\\Encryption\\...')
2020-02-02 22:17:26,872: DEBUG - #17 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Encryption\\...')
2020-02-02 22:17:26,874: DEBUG - #18 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OCP\\Encryption\\...')
2020-02-02 22:17:26,877: DEBUG - #19 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
2020-02-02 22:17:26,879: DEBUG - #20 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('EncryptionManag...')
2020-02-02 22:17:26,881: DEBUG - #21 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('EncryptionManag...')
2020-02-02 22:17:26,884: DEBUG - #22 /var/www/nextcloud/lib/private/Server.php(1277): OC\ServerContainer->query('EncryptionManag...')
2020-02-02 22:17:26,886: DEBUG - #23 /var/www/nextcloud/lib/base.php(845): OC\Server->getEncryptionManager()
2020-02-02 22:17:26,888: DEBUG - #24 /var/www/nextcloud/lib/base.php(730): OC::registerEncryptionWrapper()
2020-02-02 22:17:26,891: DEBUG - #25 /var/www/nextcloud/lib/base.php(1068): OC::init()
2020-02-02 22:17:26,893: DEBUG - #26 /var/www/nextcloud/console.php(46): require_once('/var/www/nextcl...')
2020-02-02 22:17:26,895: DEBUG - #27 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
2020-02-02 22:17:26,897: DEBUG - #28 {main}+ ynh_die '--message=An error occured during LDAP configuration'
2020-02-02 22:17:26,899: WARNING - An error occured during LDAP configuration

Là, je sèche …

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