Problème d'installation d'Applis (MariaDB HS)

Bonjour

Je dispose d’une brique internet, et j’ai un problème d’installation d’applis.

Quand je regarde le log des installations (via le panel web de yunohost), je vois cette erreur :

(l’erreur est tout en bas, il s’en suit plusieurs qui en découlent au-dessus)

dpkg-preconfigure: unable to re-open stdin:
debconf: falling back to frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: unable to initialize frontend: Readline
debconf: falling back to frontend: Readline
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: unable to initialize frontend: Dialog
fatal: loose object aa3ebea1c27deb419c52b2528312c69f4451331c (stored in .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c) is corrupt
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty"

L’installation se poursuit malgré tout (avec plusieurs messages de temps à autres comme quoi tel ou tel fichier est vide ou corrompu), mais elle se fige à la fin sur “La configuration de SSOwat a été générée”.

J’ai essayé en installant plusieurs applis (nextcloud et wordpress), et j’ai obtenu à chaque fois ce message.

Et bien sûr, les nouvelles applis ne sont pas installées.

Quelqu’un voit ce que je peux faire ?

Alors déjà, ce message d’erreur je suis quasiment sûr que c’est un problème avec le dépôt git dans /etc/ utilisé par etckeeper

Ça signifie que le dépôt git est corrompu mais ça ne permet pas de savoir pour quelle raison. Cela dit il est probable que ce soit bénin.
Je ne connais pas assez bien git pour savoir comment réparer ça proprement alors je te propose la solution (bourrine) suivante :

sudo mv /etc/.git/ /root/_backup_etc_.git_corrupted # sauvegarde du dépôt git, au cas où
sudo etckeeper init # création d'un nouveau dépôt git pour etckeeper
sudo etckeeper commit "Initial commit" # premier commit de ce dépôt

Ça va créer un nouveau dépôt git dans /etc donc tu auras perdu l’historique des précédentes modifications mais je ne pense pas que ça va te manquer plus que ça :wink:
Si ce soucis se reproduit par la suite, il faudra peut-être vérifier que tu n’as pas un soucis de carte SD défectueuse.


Maintenant concernant ces messages d’erreur :

dpkg-preconfigure: unable to re-open stdin:
debconf: falling back to frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: unable to initialize frontend: Readline
debconf: falling back to frontend: Readline
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: unable to initialize frontend: Dialog

… je ne sais pas s’ils sont bénins ou pas. À priori il s’agit de warnings uniquement mais qui pourraient expliquer l’échec d’installation de certaines applis.

Parfois lorsqu’on installe un paquet Debian à la main avec apt il faut répondre à des questions qui permettent de customiser l’installation de sorte qu’à la fin de l’installation, le programme est immédiatement fonctionnel.
Il est possible de lancer apt en mode non-interactif pour que ces questions ne soient pas posées (et c’est ce que fait yunohost en général il me semble) mais du coup il faut bien souvent finir de configurer ces paquets à la main.

Là j’imagine que c’est une app pour laquelle ce cas de figure n’a pas été pris en compte et ces messages indiquent que apt n’arrive pas à afficher les questions. Il faudrait identifier le ou les paquets Debian qui produisent ces warnings pour voir si on peut contourner le soucis en les installant manuellement avant d’install l’app yunohost qui en a besoin. Y a-t-il dans les messages de log d’installation les noms des paquets Debian en cause ?

1 Like

Voici le log complet pour l’installation de Nextcloud par exemple :

La configuration de SSOwat a été générée
+ echo 'The user nextcloud was not found'
+ getent passwd nextcloud
+ ynh_system_user_exists nextcloud
+ ynh_system_user_delete nextcloud
+ [[ ! yunohost.conf == yunohost.* ]]
+ for i in '$(ls /home)'
+ [[ ! yunohost.backup == yunohost.* ]]
+ for i in '$(ls /home)'
+ [[ ! yunohost.app == yunohost.* ]]
+ for i in '$(ls /home)'
setfacl: Option -x: Invalid argument near character 3
The user nextcloud was not found
+ setfacl -x g:nextcloud:rwx
+ [[ ! vmail == yunohost.* ]]
+ for i in '$(ls /home)'
setfacl: Option -x: Invalid argument near character 3
+ setfacl -x g:nextcloud:rwx
+ [[ ! smidge == yunohost.* ]]
+ for i in '$(ls /home)'
setfacl: Option -x: Invalid argument near character 3
+ setfacl -x g:nextcloud:rwx
+ [[ ! admin == yunohost.* ]]
+ for i in '$(ls /home)'
++ ls /home
+ echo '/etc/cron.d/nextcloud wasn'\''t deleted because it doesn'\''t exist.'
+ '[' -e /etc/cron.d/nextcloud ']'
+ [[ d = \/ ]]
+ [[ /etc/cron.d/nextcloud =~ ^/[[:alnum:]]+$ ]]
+ [[ /var/www /home/yunohost.app =~ /etc/cron\.d/nextcloud ]]
+ local 'forbidden_path= /var/www /home/yunohost.app'
+ local path_to_remove=/etc/cron.d/nextcloud
+ ynh_secure_remove /etc/cron.d/nextcloud
+ '[' -e /etc/logrotate.d/nextcloud ']'
+ ynh_remove_logrotate
/etc/cron.d/nextcloud wasn't deleted because it doesn't exist.
+ sudo systemctl reload php5-fpm
/etc/php5/fpm/conf.d/20-nextcloud.ini wasn't deleted because it doesn't exist.
+ echo '/etc/php5/fpm/conf.d/20-nextcloud.ini wasn'\''t deleted because it doesn'\''t exist.'
+ '[' -e /etc/php5/fpm/conf.d/20-nextcloud.ini ']'
+ [[ i = \/ ]]
+ [[ /etc/php5/fpm/conf.d/20-nextcloud.ini =~ ^/[[:alnum:]]+$ ]]
+ [[ /var/www /home/yunohost.app =~ /etc/php5/fpm/conf\.d/20-nextcloud\.ini ]]
+ local 'forbidden_path= /var/www /home/yunohost.app'
+ local path_to_remove=/etc/php5/fpm/conf.d/20-nextcloud.ini
+ ynh_secure_remove /etc/php5/fpm/conf.d/20-nextcloud.ini
+ echo '/etc/php5/fpm/pool.d/nextcloud.conf wasn'\''t deleted because it doesn'\''t exist.'
+ '[' -e /etc/php5/fpm/pool.d/nextcloud.conf ']'
+ [[ f = \/ ]]
+ [[ /etc/php5/fpm/pool.d/nextcloud.conf =~ ^/[[:alnum:]]+$ ]]
+ [[ /var/www /home/yunohost.app =~ /etc/php5/fpm/pool\.d/nextcloud\.conf ]]
+ local 'forbidden_path= /var/www /home/yunohost.app'
+ local path_to_remove=/etc/php5/fpm/pool.d/nextcloud.conf
+ ynh_secure_remove /etc/php5/fpm/pool.d/nextcloud.conf
+ fpm_service=php5-fpm
+ fpm_config_dir=/etc/php5/fpm
+ '[' -z '' ']'
+ local fpm_service=
/etc/php5/fpm/pool.d/nextcloud.conf wasn't deleted because it doesn't exist.
++ sudo yunohost app setting nextcloud fpm_service --output-as plain --quiet
++ ynh_app_setting_get nextcloud fpm_service
+ local fpm_config_dir=
++ sudo yunohost app setting nextcloud fpm_config_dir --output-as plain --quiet
++ ynh_app_setting_get nextcloud fpm_config_dir
+ ynh_remove_fpm_config
+ sudo systemctl reload nginx
+ echo '/etc/nginx/conf.d/smidge.nohost.me.d/nextcloud.conf wasn'\''t deleted because it doesn'\''t exist.'
+ '[' -e /etc/nginx/conf.d/smidge.nohost.me.d/nextcloud.conf ']'
+ [[ f = \/ ]]
+ [[ /etc/nginx/conf.d/smidge.nohost.me.d/nextcloud.conf =~ ^/[[:alnum:]]+$ ]]
+ [[ /var/www /home/yunohost.app =~ /etc/nginx/conf\.d/smidge\.nohost\.me\.d/nextcloud\.conf ]]
+ local 'forbidden_path= /var/www /home/yunohost.app'
+ local path_to_remove=/etc/nginx/conf.d/smidge.nohost.me.d/nextcloud.conf
+ ynh_secure_remove /etc/nginx/conf.d/smidge.nohost.me.d/nextcloud.conf
+ ynh_remove_nginx_config
+ echo 'Avoid deleting .'
+ [[ /var/www /home/yunohost.app =~ '' ]]
+ local 'forbidden_path= /var/www /home/yunohost.app'
+ local path_to_remove=
+ ynh_secure_remove ''
/etc/nginx/conf.d/smidge.nohost.me.d/nextcloud.conf wasn't deleted because it doesn't exist.
++ return 1
Avoid deleting .
++ [[ -z '' ]]
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
+++ mysql -u root --password=jxVlmfBCZf -B ''
+++ ynh_mysql_connect_as root jxVlmfBCZf ''
++++ sudo cat /etc/yunohost/mysql
+++ ynh_mysql_execute_as_root 'SELECT User from mysql.user WHERE User = '\''nextcloud'\'';'
++ local user=nextcloud
++ ynh_mysql_user_exists nextcloud
Database nextcloud not found
+ echo 'Database nextcloud not found'
mysqlshow: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
+ mysqlshow -u root -pjxVlmfBCZf
+ grep -q '^| nextcloud'
+ local mysql_root_password=jxVlmfBCZf
++ sudo cat /etc/yunohost/mysql
+ local db_name=nextcloud
+ local db_user=nextcloud
+ ynh_mysql_remove_db nextcloud nextcloud
fatal: loose object aa3ebea1c27deb419c52b2528312c69f4451331c (stored in .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c) is corrupt
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty
Processing triggers for fontconfig (2.11.0-6.3+deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for man-db (2.7.0.2-5) ...
Purging configuration files for libwbclient0:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Removing libwbclient0:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Purging configuration files for libtdb1:armhf (1.3.6-0+deb8u1) ...
Removing libtdb1:armhf (1.3.6-0+deb8u1) ...
Purging configuration files for libtalloc2:armhf (2.1.2-0+deb8u1) ...
Removing libtalloc2:armhf (2.1.2-0+deb8u1) ...
Purging configuration files for python-talloc (2.1.2-0+deb8u1) ...
Removing python-talloc (2.1.2-0+deb8u1) ...
Purging configuration files for libtevent0:armhf (0.9.28-0+deb8u1) ...
Removing libtevent0:armhf (0.9.28-0+deb8u1) ...
Purging configuration files for libntdb1:armhf (1.0-5) ...
Removing libntdb1:armhf (1.0-5) ...
Purging configuration files for libldb1:armhf (2:1.1.20-0+deb8u1) ...
Removing libldb1:armhf (2:1.1.20-0+deb8u1) ...
Purging configuration files for samba-libs:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Removing samba-libs:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Removing ttf-dejavu-core (2.34-1) ...
debconf: falling back to frontend: Readline
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: unable to initialize frontend: Dialog
Purging configuration files for samba-common (2:4.2.14+dfsg-0+deb8u9) ...
Removing samba-common (2:4.2.14+dfsg-0+deb8u9) ...
Removing python-crypto (2.6.1-5+deb8u1) ...
Purging configuration files for php5-redis (2.2.5-1) ...
php5_invoke prerm: Disable module redis for fpm SAPI
php5_invoke prerm: Disable module redis for cli SAPI
Removing php5-redis (2.2.5-1) ...
Purging configuration files for php5-imagick (3.2.0~rc1-1) ...
php5_invoke prerm: Disable module imagick for fpm SAPI
php5_invoke prerm: Disable module imagick for cli SAPI
Removing php5-imagick (3.2.0~rc1-1) ...
Removing python-tdb (1.3.6-0+deb8u1) ...
Purging configuration files for libsmbclient:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Removing libsmbclient:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Removing python-ntdb (1.0-5) ...
Purging configuration files for python-ldb (2:1.1.20-0+deb8u1) ...
Removing python-ldb (2:1.1.20-0+deb8u1) ...
Removing python-samba (2:4.2.14+dfsg-0+deb8u9) ...
Removing samba-common-bin (2:4.2.14+dfsg-0+deb8u9) ...
Purging configuration files for libarchive13:armhf (3.1.2-11+deb8u3) ...
Removing libarchive13:armhf (3.1.2-11+deb8u3) ...
Removing smbclient (2:4.2.14+dfsg-0+deb8u9) ...
Removing nextcloud-ynh-deps (13.0.2~ynh1) ...
(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 50057 files and directories currently installed.)
After this operation, 25.9 MB disk space will be freed.
0 upgraded, 0 newly installed, 22 to remove and 0 not upgraded.
fatal: loose object aa3ebea1c27deb419c52b2528312c69f4451331c (stored in .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c) is corrupt
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty
ttf-dejavu-core*
python-tdb* samba-common* samba-common-bin* samba-libs* smbclient*
python-crypto* python-ldb* python-ntdb* python-samba* python-talloc*
libtevent0* libwbclient0* nextcloud-ynh-deps* php5-imagick* php5-redis*
libarchive13* libldb1* libntdb1* libsmbclient* libtalloc2* libtdb1*
The following packages will be REMOVED:
Reading state information...
Building dependency tree...
Reading package lists...
+ sudo apt-get -y autoremove --purge nextcloud-ynh-deps
+ DEBIAN_FRONTEND=noninteractive
+ ynh_apt autoremove --purge nextcloud-ynh-deps
+ ynh_package_autopurge nextcloud-ynh-deps
+ local dep_app=nextcloud
+ ynh_remove_app_dependencies
+ final_path=
++ sudo yunohost app setting nextcloud final_path --output-as plain --quiet
++ ynh_app_setting_get nextcloud final_path
+ db_name=nextcloud
++ sudo yunohost app setting nextcloud db_name --output-as plain --quiet
++ ynh_app_setting_get nextcloud db_name
+ domain=smidge.nohost.me
++ sudo yunohost app setting nextcloud domain --output-as plain --quiet
++ ynh_app_setting_get nextcloud domain
+ app=nextcloud
++ . /usr/share/yunohost/helpers.d/utils
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/user
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/system
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/string
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/setting
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/psql
++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/print
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/package
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ N_PREFIX=/opt/node_n
+++ export N_PREFIX=/opt/node_n
+++ node_version_path=/opt/node_n/n/versions/node
+++ n_install_dir=/opt/node_n
++ . /usr/share/yunohost/helpers.d/nodejs
++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/network
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ . /usr/share/yunohost/helpers.d/mysql
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/ip
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ CAN_BIND=1
++ . /usr/share/yunohost/helpers.d/filesystem
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/backend
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ run-parts --list /usr/share/yunohost/helpers.d
+ source /usr/share/yunohost/helpers
++ '[' jessie '!=' jessie ']'
+++ lsb_release --codename --short
++ pkg_dependencies='php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-ldap php5-imagick imagemagick acl tar smbclient'
+ source _common.sh
Exécution du script « /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/remove »...
+ exit 1
+ echo ''
+ ynh_die
+ type -t ynh_clean_setup
+ echo -e '!!\n nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!'
+ set +eu
+ trap '' EXIT
!!
+ '[' 1 -eq 0 ']'
nextcloud's script has encountered an error. Its execution was cancelled.
!!
+ local exit_code=1
+ ynh_exit_properly
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
+ mysql -u root --password=jxVlmfBCZf -B ''
+ ynh_mysql_connect_as root jxVlmfBCZf ''
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_execute_as_root 'CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'' IDENTIFIED BY '\''HyNSmGaqM6VzTxs6MBlKrbuW'\'' WITH GRANT OPTION;'
+ sql+=' WITH GRANT OPTION;'
+ sql+=' IDENTIFIED BY '\''HyNSmGaqM6VzTxs6MBlKrbuW'\'''
+ [[ -n HyNSmGaqM6VzTxs6MBlKrbuW ]]
+ sql+=' GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'''
+ [[ 3 -gt 1 ]]
+ local 'sql=CREATE DATABASE nextcloud;'
+ local db=nextcloud
+ ynh_mysql_create_db nextcloud nextcloud HyNSmGaqM6VzTxs6MBlKrbuW
+ db_pwd=HyNSmGaqM6VzTxs6MBlKrbuW
+ local new_db_pwd=HyNSmGaqM6VzTxs6MBlKrbuW
++ dd if=/dev/urandom bs=1 count=200
++ sed -n 's/\(.\{24\}\).*/\1/p'
++ tr -c -d A-Za-z0-9
++ ynh_string_random
+ local db_name=nextcloud
+ local db_user=nextcloud
+ ynh_mysql_setup_db nextcloud nextcloud
+ sudo yunohost app setting nextcloud db_name --value=nextcloud --quiet
+ ynh_app_setting_set nextcloud db_name nextcloud
+ db_name=nextcloud
++ echo nextcloud
++ local dbid=nextcloud
++ ynh_sanitize_dbid nextcloud
+ sudo yunohost app setting nextcloud apt_dependencies --value=php5-gd, --quiet
+ ynh_app_setting_set nextcloud apt_dependencies php5-gd, php5-json, php5-intl, php5-mcrypt, php5-curl, php5-apcu, php5-redis, php5-ldap, php5-imagick, imagemagick, acl, tar, smbclient
+ rm /tmp/nextcloud-ynh-deps.control
+ dpkg-query -W -f '${Status}' nextcloud-ynh-deps
+ grep -c 'ok installed'
+ ynh_package_is_installed nextcloud-ynh-deps
+ rm -rf /tmp/tmp.yXHTt1V63f
+ [[ -n /tmp/tmp.yXHTt1V63f ]]
fatal: loose object aa3ebea1c27deb419c52b2528312c69f4451331c (stored in .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c) is corrupt
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Setting up ttf-dejavu-core (2.34-1) ...
Setting up samba-common-bin (2:4.2.14+dfsg-0+deb8u9) ...
Setting up python-samba (2:4.2.14+dfsg-0+deb8u9) ...
Setting up python-tdb (1.3.6-0+deb8u1) ...
Setting up python-ntdb (1.0-5) ...
Setting up python-crypto (2.6.1-5+deb8u1) ...
php5_invoke: Enable module redis for fpm SAPI
php5_invoke: Enable module redis for cli SAPI
Setting up php5-redis (2.2.5-1) ...
php5_invoke: Enable module imagick for fpm SAPI
php5_invoke: Enable module imagick for cli SAPI
Setting up php5-imagick (3.2.0~rc1-1) ...
Setting up smbclient (2:4.2.14+dfsg-0+deb8u9) ...
Creating config file /etc/samba/smb.conf with new version
debconf: falling back to frontend: Readline
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: unable to initialize frontend: Dialog
Setting up samba-common (2:4.2.14+dfsg-0+deb8u9) ...
Setting up python-ldb (2:1.1.20-0+deb8u1) ...
Setting up libsmbclient:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Setting up samba-libs:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Setting up python-talloc (2.1.2-0+deb8u1) ...
Setting up libwbclient0:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Setting up libntdb1:armhf (1.0-5) ...
Setting up libldb1:armhf (2:1.1.20-0+deb8u1) ...
Setting up libtevent0:armhf (0.9.28-0+deb8u1) ...
Setting up libtdb1:armhf (1.3.6-0+deb8u1) ...
Setting up libtalloc2:armhf (2.1.2-0+deb8u1) ...
Setting up libarchive13:armhf (3.1.2-11+deb8u3) ...
Processing triggers for fontconfig (2.11.0-6.3+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Unpacking ttf-dejavu-core (2.34-1) ...
Preparing to unpack .../ttf-dejavu-core_2.34-1_all.deb ...
Selecting previously unselected package ttf-dejavu-core.
Unpacking samba-common-bin (2:4.2.14+dfsg-0+deb8u9) ...
Preparing to unpack .../samba-common-bin_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Selecting previously unselected package samba-common-bin.
Unpacking python-samba (2:4.2.14+dfsg-0+deb8u9) ...
Preparing to unpack .../python-samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Selecting previously unselected package python-samba.
Unpacking python-tdb (1.3.6-0+deb8u1) ...
Preparing to unpack .../python-tdb_1.3.6-0+deb8u1_armhf.deb ...
Selecting previously unselected package python-tdb.
Unpacking python-ntdb (1.0-5) ...
Preparing to unpack .../python-ntdb_1.0-5_armhf.deb ...
Selecting previously unselected package python-ntdb.
Unpacking python-crypto (2.6.1-5+deb8u1) ...
Preparing to unpack .../python-crypto_2.6.1-5+deb8u1_armhf.deb ...
Selecting previously unselected package python-crypto.
Unpacking php5-redis (2.2.5-1) ...
Preparing to unpack .../php5-redis_2.2.5-1_armhf.deb ...
Selecting previously unselected package php5-redis.
Unpacking php5-imagick (3.2.0~rc1-1) ...
Preparing to unpack .../php5-imagick_3.2.0~rc1-1_armhf.deb ...
Selecting previously unselected package php5-imagick.
Unpacking smbclient (2:4.2.14+dfsg-0+deb8u9) ...
Preparing to unpack .../smbclient_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Selecting previously unselected package smbclient.
Unpacking samba-common (2:4.2.14+dfsg-0+deb8u9) ...
Preparing to unpack .../samba-common_2%3a4.2.14+dfsg-0+deb8u9_all.deb ...
Selecting previously unselected package samba-common.
Unpacking python-ldb (2:1.1.20-0+deb8u1) ...
Preparing to unpack .../python-ldb_2%3a1.1.20-0+deb8u1_armhf.deb ...
Selecting previously unselected package python-ldb.
Unpacking libsmbclient:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Preparing to unpack .../libsmbclient_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Selecting previously unselected package libsmbclient:armhf.
Unpacking samba-libs:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Preparing to unpack .../samba-libs_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Selecting previously unselected package samba-libs:armhf.
Unpacking python-talloc (2.1.2-0+deb8u1) ...
Preparing to unpack .../python-talloc_2.1.2-0+deb8u1_armhf.deb ...
Selecting previously unselected package python-talloc.
Unpacking libwbclient0:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Preparing to unpack .../libwbclient0_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Selecting previously unselected package libwbclient0:armhf.
Unpacking libntdb1:armhf (1.0-5) ...
Preparing to unpack .../libntdb1_1.0-5_armhf.deb ...
Selecting previously unselected package libntdb1:armhf.
Unpacking libldb1:armhf (2:1.1.20-0+deb8u1) ...
Preparing to unpack .../libldb1_2%3a1.1.20-0+deb8u1_armhf.deb ...
Selecting previously unselected package libldb1:armhf.
Unpacking libtevent0:armhf (0.9.28-0+deb8u1) ...
Preparing to unpack .../libtevent0_0.9.28-0+deb8u1_armhf.deb ...
Selecting previously unselected package libtevent0:armhf.
Unpacking libtdb1:armhf (1.3.6-0+deb8u1) ...
Preparing to unpack .../libtdb1_1.3.6-0+deb8u1_armhf.deb ...
Selecting previously unselected package libtdb1:armhf.
Unpacking libtalloc2:armhf (2.1.2-0+deb8u1) ...
Preparing to unpack .../libtalloc2_2.1.2-0+deb8u1_armhf.deb ...
Selecting previously unselected package libtalloc2:armhf.
Unpacking libarchive13:armhf (3.1.2-11+deb8u3) ...
Preparing to unpack .../libarchive13_3.1.2-11+deb8u3_armhf.deb ...
(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 49354 files and directories currently installed.)
Selecting previously unselected package libarchive13:armhf.
After this operation, 25.9 MB of additional disk space will be used.
Need to get 0 B/7668 kB of archives.
0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
dpkg-preconfigure: unable to re-open stdin:
debconf: falling back to frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: unable to initialize frontend: Readline
debconf: falling back to frontend: Readline
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: unable to initialize frontend: Dialog
fatal: loose object aa3ebea1c27deb419c52b2528312c69f4451331c (stored in .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c) is corrupt
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty
error: object file .git/objects/aa/3ebea1c27deb419c52b2528312c69f4451331c is empty
samba-libs smbclient ttf-dejavu-core
python-samba python-talloc python-tdb samba-common samba-common-bin
libwbclient0 php5-imagick php5-redis python-crypto python-ldb python-ntdb
libarchive13 libldb1 libntdb1 libsmbclient libtalloc2 libtdb1 libtevent0
The following NEW packages will be installed:
lrzip python-crypto-dbg python-crypto-doc heimdal-clients cifs-utils
Suggested packages:
samba-libs smbclient ttf-dejavu-core
python-samba python-talloc python-tdb samba-common samba-common-bin
libwbclient0 php5-imagick php5-redis python-crypto python-ldb python-ntdb
libarchive13 libldb1 libntdb1 libsmbclient libtalloc2 libtdb1 libtevent0
The following extra packages will be installed:
Correcting dependencies... Done
Reading state information...
Building dependency tree...
Reading package lists...
+ sudo apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ DEBIAN_FRONTEND=noninteractive
+ ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ ynh_package_install -f
Setting up nextcloud-ynh-deps (13.0.2~ynh1) ...
Package smbclient is not installed.
nextcloud-ynh-deps depends on smbclient; however:
Package php5-imagick is not installed.
nextcloud-ynh-deps depends on php5-imagick; however:
Package php5-redis is not installed.
nextcloud-ynh-deps depends on php5-redis; however:
dpkg: nextcloud-ynh-deps: dependency problems, but configuring anyway as you requested:
Unpacking nextcloud-ynh-deps (13.0.2~ynh1) ...
Preparing to unpack .../nextcloud-ynh-deps_13.0.2~ynh1_all.deb ...
(Reading database ... 49350 files and directories currently installed.)
Selecting previously unselected package nextcloud-ynh-deps.
+ sudo dpkg --force-depends -i ./nextcloud-ynh-deps_13.0.2~ynh1_all.deb
+ equivs-build ./control
+ cd /tmp/tmp.yXHTt1V63f
+ cp /tmp/nextcloud-ynh-deps.control /tmp/tmp.yXHTt1V63f/control
+ echo 10
+ local TMPDIR=/tmp/tmp.yXHTt1V63f
++ mktemp -d
Reading package lists...
Fetched 101 kB in 17s (5814 B/s)
Ign http://repo.yunohost.org jessie/stable Translation-fr
Ign http://repo.yunohost.org jessie/stable Translation-en
Hit http://ftp.fr.debian.org jessie/non-free Translation-en
Hit http://ftp.fr.debian.org jessie/main Translation-fr
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://ftp.fr.debian.org jessie/main Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.fr.debian.org jessie/contrib Translation-en
Hit http://repo.yunohost.org jessie/stable armhf Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://ftp.fr.debian.org jessie/non-free armhf Packages
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Hit http://ftp.fr.debian.org jessie/contrib armhf Packages
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Hit http://ftp.fr.debian.org jessie/main armhf Packages
Hit http://security.debian.org jessie/updates/main armhf Packages
Get:3 http://ftp.fr.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Hit http://repo.yunohost.org jessie InRelease
Get:2 http://ftp.fr.debian.org jessie-backports/main armhf Packages/DiffIndex [27.8 kB]
Hit http://ftp.fr.debian.org jessie Release
Hit http://ftp.fr.debian.org jessie Release.gpg
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Hit http://ftp.fr.debian.org jessie-backports InRelease
Ign http://ftp.fr.debian.org jessie InRelease
+ sudo apt-get -y update
+ DEBIAN_FRONTEND=noninteractive
+ ynh_apt update
+ ynh_package_update
+ [[ -z 13.0.2~ynh1 ]]
+ [[ -z nextcloud-ynh-deps ]]
+ local pkgversion=13.0.2~ynh1
++ grep '^Version: ' /tmp/nextcloud-ynh-deps.control
++ cut '-d ' -f 2
+ local pkgname=nextcloud-ynh-deps
++ cut '-d ' -f 2
++ grep '^Package: ' /tmp/nextcloud-ynh-deps.control
+ dpkg-query -W -f '${Status}' equivs
+ grep -c 'ok installed'
+ ynh_package_is_installed equivs
+ local controlfile=/tmp/nextcloud-ynh-deps.control
+ ynh_package_install_from_equivs /tmp/nextcloud-ynh-deps.control
+ cat
+ local dep_app=nextcloud
+ '[' 11 -eq 0 ']'
+ local version=13.0.2~ynh1
++ cut -d '"' -f 4
++ grep '\"version\": ' ../manifest.json
+ '[' '!' -e ../manifest.json ']'
+ local manifest_path=../manifest.json
+ local 'dependencies=php5-gd, php5-json, php5-intl, php5-mcrypt, php5-curl, php5-apcu, php5-redis, php5-ldap, php5-imagick, imagemagick, acl, tar, smbclient'
+ local 'dependencies=php5-gd, php5-json, php5-intl, php5-mcrypt, php5-curl, php5-apcu, php5-redis, php5-ldap, php5-imagick, imagemagick, acl, tar, smbclient'
+ local 'dependencies=php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-ldap php5-imagick imagemagick acl tar smbclient'
+ ynh_install_app_dependencies php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-ldap php5-imagick imagemagick acl tar smbclient
+ sudo yunohost app setting nextcloud user_home --value=1 --quiet
+ ynh_app_setting_set nextcloud user_home 1
+ sudo yunohost app setting nextcloud admin --value=smidge --quiet
+ ynh_app_setting_set nextcloud admin smidge
+ sudo yunohost app setting nextcloud path --value=/nextcloud --quiet
+ ynh_app_setting_set nextcloud path /nextcloud
+ sudo yunohost app setting nextcloud domain --value=smidge.nohost.me --quiet
+ ynh_app_setting_set nextcloud domain smidge.nohost.me
+ sudo yunohost app register-url nextcloud smidge.nohost.me /nextcloud
+ local path=/nextcloud
+ local domain=smidge.nohost.me
+ local app=nextcloud
+ ynh_webpath_register nextcloud smidge.nohost.me /nextcloud
True
+ sudo yunohost domain url-available smidge.nohost.me /nextcloud
+ local path=/nextcloud
+ local domain=smidge.nohost.me
+ ynh_webpath_available smidge.nohost.me /nextcloud
+ path_url=/nextcloud
++ echo /nextcloud
++ '[' d == / ']'
++ '[' / '!=' / ']'
++ test -n /nextcloud
++ local path_url=/nextcloud
++ ynh_normalize_url_path /nextcloud
+ test '!' -e /var/www/nextcloud
+ final_path=/var/www/nextcloud
+ app=nextcloud
+ user_home=1
+ admin=smidge
+ path_url=/nextcloud
+ domain=smidge.nohost.me
+ trap ynh_exit_properly EXIT
+ set -eu
+ ynh_abort_if_errors
++ . /usr/share/yunohost/helpers.d/utils
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/user
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/system
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/string
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/setting
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/psql
++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/print
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/package
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ N_PREFIX=/opt/node_n
+++ export N_PREFIX=/opt/node_n
+++ node_version_path=/opt/node_n/n/versions/node
+++ n_install_dir=/opt/node_n
++ . /usr/share/yunohost/helpers.d/nodejs
++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/network
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ . /usr/share/yunohost/helpers.d/mysql
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/ip
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ CAN_BIND=1
++ . /usr/share/yunohost/helpers.d/filesystem
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/backend
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ run-parts --list /usr/share/yunohost/helpers.d
+ source /usr/share/yunohost/helpers
++ '[' jessie '!=' jessie ']'
+++ lsb_release --codename --short
++ pkg_dependencies='php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-ldap php5-imagick imagemagick acl tar smbclient'
+ source _common.sh
Exécution du script « /var/cache/yunohost/from_file/nextcloud_ynh-b4b285235ad2ffd94e149f49627f4f0dbf300f0b/scripts/install »...
Vérification des paquets requis pour nextcloud...
Terminé
Extraction...
Téléchargement...

Le message d’erreur important c’est celui-ci :

Ton serveur mysql ne tourne pas.
Essaye de le relancer :

sudo systemctl restart mysql 

S’il ne se relance pas regarde les logs mysql dans /var/log/mysql/error.log.

J’obtiens cette erreur :

Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details.

Et error.log est vide.

EDIT :
en lançant “systemctl status mysql.service” j’obtiens :

● mysql.service - LSB: Start and stop the mysql database server daemon
   Loaded: loaded (/etc/init.d/mysql)
   Active: failed (Result: exit-code) since mar. 2018-06-26 21:11:43 CEST; 10min ago
  Process: 31167 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)

juin 26 21:11:43 smidge.nohost.me mysql[31167]: Starting MariaDB database server: mysqld . . . . . . . . . . . ...iled!
juin 26 21:11:43 smidge.nohost.me systemd[1]: mysql.service: control process exited, code=exited status=1
juin 26 21:11:43 smidge.nohost.me systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
juin 26 21:11:43 smidge.nohost.me systemd[1]: Unit mysql.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

et en lançant “journalctl -xn” j’obtiens :

-- Logs begin at mar. 2018-06-26 07:21:05 CEST, end at mar. 2018-06-26 21:43:32 CEST. --
juin 26 21:42:01 smidge.nohost.me CRON[515]: (root) CMD (yunohost dyndns update >> /dev/null)
juin 26 21:42:03 smidge.nohost.me CRON[514]: pam_unix(cron:session): session closed for user root
juin 26 21:43:26 smidge.nohost.me sshd[517]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh
juin 26 21:43:26 smidge.nohost.me slapd[799]: slap_global_control: unrecognized control: 1.3.6.1.4.1.42.2.27.8.5.1
juin 26 21:43:26 smidge.nohost.me nslcd[848]: [469a23] <authc="admin"> cn=admin,dc=yunohost,dc=org: Invalid credentials
juin 26 21:43:26 smidge.nohost.me sshd[517]: pam_ldap(sshd:auth): Authentication failure; user=admin
juin 26 21:43:28 smidge.nohost.me sshd[517]: Failed password for admin from 94.23.145.124 port 44215 ssh2
juin 26 21:43:28 smidge.nohost.me sshd[517]: Connection closed by 94.23.145.124 [preauth]
juin 26 21:43:28 smidge.nohost.me sshd[519]: Connection closed by 193.70.6.197 [preauth]
juin 26 21:43:32 smidge.nohost.me sshd[521]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh

Bon apparemment journalctl n’a pas grand chose d’utile à raconter concernant mysql/mariadb.

Je te propose d’essayer le script auto-fix-mysql. Il n’a pas encore été énormément testé à ma connaissance donc on risque de galérer un peu hein. Mais au point où t’en es…

Avant les autres commandes je te suggère celle-ci :

python auto-fix-mysql backup-mysql-db

Cela va copier toutes les données mysql/mariadb vers /etc/yunohost/auto-fix-mysql/mysql-db-backup/. Une fois que c’est fait je suggère une sauvegarde de la sauvegarde (ceinture et bretelles hein, car c’est encore expérimental ce script) comme ceci :

sudo rsync -av /etc/yunohost/auto-fix-mysql/mysql-db-backup/ /root/backup-mysql-db-$(date +%Y-%m-%d)

Ensuite teste les différentes commandes disponibles. Pour voir la liste des commandes pense à utiliser l’option -h. Par exemple :

python auto-fix-mysql fix-mysql -h

Bon, il semblerait que le script ait réparé le service en question, puisqu’il a pu démarrer !

J’ai tenté du coup dans la foulée d’installer Nextcloud (qui était ce que je comptais installer à la base)

A priori, ça fonctionne :wink:

Merci pour tout !