Problème d'installation de Mattermost "the user was not found"


#1

Bonjour à tous et à toutes,
Cela fait plusieurs fois que j’obtiens la même erreur lorsque j’essaye d’installer Mattermost sur mon serveur Yunohost. Voici ce que j’obtiens:

+ echo 'The user mattermost was not found'
+ getent passwd mattermost
+ ynh_system_user_exists mattermost
+ ynh_system_user_delete mattermost
+ sudo rm -rf /var/log/mattermost
+ sudo systemctl reload nginx
+ sudo rm -R /etc/nginx/conf.d/.d/mattermost.conf
+ '[' -e /etc/nginx/conf.d/.d/mattermost.conf ']'
+ [[ f = \/ ]]
+ [[ /etc/nginx/conf.d/.d/mattermost.conf =~ ^/[[:alnum:]]+$ ]]
+ [[ /var/www /home/yunohost.app =~ /etc/nginx/conf\.d/\.d/mattermost\.conf ]]
+ local 'forbidden_path= /var/www /home/yunohost.app'
+ local path_to_remove=/etc/nginx/conf.d/.d/mattermost.conf
+ ynh_secure_remove /etc/nginx/conf.d/.d/mattermost.conf
+ ynh_remove_nginx_config
+ echo '/home/yunohost.app/mattermost wasn'\''t deleted because it doesn'\''t exist.'
+ '[' -e /home/yunohost.app/mattermost ']'
+ [[ t = \/ ]]
+ [[ /home/yunohost.app/mattermost =~ ^/[[:alnum:]]+$ ]]
+ [[ /var/www /home/yunohost.app =~ /home/yunohost\.app/mattermost ]]
+ local 'forbidden_path= /var/www /home/yunohost.app'
+ local path_to_remove=/home/yunohost.app/mattermost
+ ynh_secure_remove /home/yunohost.app/mattermost
+ echo '/var/www/mattermost wasn'\''t deleted because it doesn'\''t exist.'
+ '[' -e /var/www/mattermost ']'
+ [[ t = \/ ]]
+ [[ /var/www/mattermost =~ ^/[[:alnum:]]+$ ]]
+ [[ /var/www /home/yunohost.app =~ /var/www/mattermost ]]
+ local 'forbidden_path= /var/www /home/yunohost.app'
/home/yunohost.app/mattermost wasn't deleted because it doesn't exist.
+ local path_to_remove=/var/www/mattermost
+ ynh_secure_remove /var/www/mattermost
/var/www/mattermost wasn't deleted because it doesn't exist.
++ return 1
++ [[ -z '' ]]
+++ mysql -u root --password=**********'
+++ ynh_mysql_connect_as root *** ''
++++ sudo cat /etc/yunohost/mysql
+++ ynh_mysql_execute_as_root 'SELECT User from mysql.user WHERE User = '\''mmuser'\'';'
++ local user=mmuser
Database mattermost not found
++ ynh_mysql_user_exists mmuser
+ echo 'Database mattermost not found'
+ grep -q '^| mattermost'
+ mysqlshow -u root -perGjrO7JXS
+ local mysql_root_password=erGjrO7JXS
++ sudo cat /etc/yunohost/mysql
+ local db_name=mattermost
+ local db_user=mmuser
+ ynh_mysql_remove_db mmuser mattermost
+ grep -q mattermost
+ sudo yunohost service status
+ '[' -f /etc/supervisor/conf.d/mattermost.conf ']'
+ '[' -e /etc/systemd/system/mattermost.service ']'
+ local finalsystemdconf=/etc/systemd/system/mattermost.service
+ local service_name=mattermost
+ ynh_remove_systemd_config
++ sudo systemctl -q is-active mattermost
+ logs_path=/var/log/mattermost
+ data_path=/home/yunohost.app/mattermost
+ final_path=/var/www/mattermost
+ mattermost_user=mattermost
+ db_user=mmuser
+ db_name=mattermost
+ domain=
++ sudo yunohost app setting mattermost domain --output-as plain --quiet
++ ynh_app_setting_get mattermost domain
+ app=mattermost
++ . /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
+ set -u
Exécution du script « /var/cache/yunohost/from_file/mattermost_ynh-ed72eae4081e04a45bf8d43003557acd9d9e89f/scripts/remove »...
+ exit 1
+ echo ''
+ ynh_die
+ type -t ynh_clean_setup
+ echo -e '!!\n mattermost'\''s script has encountered an error. Its execution was cancelled.\n!!'
+ set +eu
+ trap '' EXIT
+ '[' 1 -eq 0 ']'
+ local exit_code=1
+ ynh_exit_properly
+ exit 1
+ echo 'Mattermost requires an x86_64 machine, but this one is '\''armv7l'\''.'
+ ynh_die 'Mattermost requires an x86_64 machine, but this one is '\''armv7l'\''.'
+ die_command=ynh_die
++ printf %s%s ynh_ die
+ script_die 'Mattermost requires an x86_64 machine, but this one is '\''armv7l'\''.'
+ [[ armv7l != \x\8\6\_\6\4 ]]
+ arch=armv7l
++ uname -m
+ path_url=/
+ analytics=0
+ team_display_name='*******
+ admin_locale=fr
!!
+ admin_password=**********
mattermost's script has encountered an error. Its execution was cancelled.
+ admin_email=****
+ is_public=0
+ domain=*********
+ app=mattermost
!!
+ trap ynh_exit_properly EXIT
+ set -eu
+ ynh_abort_if_errors
++ . /usr/share/yunohost/helpers.d/utils
Mattermost requires an x86_64 machine, but this one is 'armv7l'.
++ '[' -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
Exécution du script « /var/cache/yunohost/from_file/mattermost_ynh-ed72eae4081e04a45bf8d43003557acd9d9e89f/scripts/install »...
Vérification des paquets requis pour mattermost...
Terminé
Extraction...
Téléchargement...]

Voilà. je me suis dit que ça venais d’un problème de droit d’écriture mais j’ai du mal à savoir par quel bout prendre les choses.
Si vous pouvez m’aider, je vous en serai très reconnaissant.


#2

Bonjour @Ian352

Pour commencer si ton mot de passe “8CBQ583Lx0” est sensible, je te conseille de le changer car il est maintenant public (ainsi que le root password de ta base mysql). Peut-être qu’on pourrait suggérer au packaging de mattermost de ne pas mettre ce mot de passe dans le log d’installation pour éviter à d’autres de fuiter ce type d’informations.

mattermost n’est pas installable sur raspberry pi (armv7l). Il y a une “issue” sur le github du package mattermost pour yunohost pour discuter, suivre l’avancement ou contribuer https://github.com/YunoHost-Apps/mattermost_ynh/issues/124


#3

Salut @arthurlutz,

Premièrement, je te remercie chaleureusement de m’avoir signalé cette bourde. J’ai changé tous les mdp dans les minutes qui ont suivi la réception de ton post.
Et en second, encore merci car effectivement, après avoir réépluché les logs, il est spécifié que Mattermost ne tourne pas sur une architecture arm comme celle du raspberry pi.
En tout cas, je te suis reconnaissant pour ton post et le temps que tu as pris pour lire ces logs. Et moi je vais être beaucoup plus soigneux quand je posterai la prochaine fois!
Ian352