Plus d'accès à l'interface administration, réinstallation problematique

bug
raspberrypi
install

#1

Bonjour/bonsoir
ma config : raspberry 2B ynh+ samba

Mon installation fonctionnait bien… Et j’ai voulu installer domoticz sur mon serveur ynh . Ca a commencé à merder quand je me suis aperçu que je n’avais plus accès à la commande sudo, J’ai réparé ce problème en cherchant sur le net, et en faisant un sudo apt-get update et upgrade, il m’a désinstallé ynh ! ( j’ai pas été très vigilant sur ce coup, j’ai validé sans lire )
Pour réparer, je me suis loggé en root et j’ai lancé ```
curl https://install.yunohost.org | bash

les logs d'install : 
    dpkg: dependency problems prevent configuration of yunohost-admin:^M
     yunohost-admin depends on yunohost (>= 2.7.6); however:^M
      Package yunohost is not configured yet.^M
    ^M
    dpkg: error processing package yunohost-admin (--configure):^M
     dependency problems - leaving unconfigured^M
    Setting up libdbd-mysql-perl (4.041-2) ...^M
    Setting up python3-influxdb (3.0.0-1) ...^M
    Setting up mariadb-client-10.1 (10.1.37-0+deb9u1) ...^M
    Setting up python3-numpy (1:1.12.1-3) ...^M
    Setting up opendkim-tools (2.11.0~alpha-10+deb9u1) ...^M
    Setting up python3-docker (1.9.0-1) ...^M
    Setting up mariadb-server-10.1 (10.1.37-0+deb9u1) ...^M
    Setting up python3-matplotlib (2.0.0+dfsg1-2) ...^M
    Setting up mariadb-server (10.1.37-0+deb9u1) ...^M
    Processing triggers for libc-bin (2.24-11+deb9u4) ...^M
    Errors were encountered while processing:^M
     postsrsd^M
     yunohost^M
     yunohost-admin^M
    W: --force-yes is deprecated, use one of the options starting with --allow instead.
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    [^[[1m^[[31mFAIL^[[0m] Installation of Yunohost packages failed

Pour l'instant, la partie admin ne fonctionne plus, mais baikal, pihole, wordpress,transmission, ampache c'est ok

#2

voila ce que j’obtiens avec un apt-get upgrade :

Do you want to continue? [Y/n] y
Setting up postsrsd (1.4-1) ...
/var/lib/dpkg/info/postsrsd.config: 15: /etc/default/postsrsd: olitask.changeip.com: not found
dpkg: error processing package postsrsd (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of yunohost:
 yunohost depends on postsrsd; however:
  Package postsrsd is not configured yet.

dpkg: error processing package yunohost (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of yunohost-admin:
 yunohost-admin depends on yunohost (>= 2.7.6); however:
  Package yunohost is not configured yet.

dpkg: error processing package yunohost-admin (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 postsrsd
 yunohost
 yunohost-admin
E: Sub-process /usr/bin/dpkg returned an error code (1)
olitask@olitask:~ $ 

Je n’arrive pas à installer ces trois choses : postsrsd, yunohost et yunohost-admin.
Je n’arrive pas non plus à faire la post-installation
Étonnamment, les logiciels installés avant fonctionnent bien


#3

Bonjour
La postinstallation me renvoie une erreur de password invalide, apres une recherche sur le forum je tente les deux commandes suivantes, mais sans résultat…

et le résultat de la postinstallation :

 root@olitask:/# rm -rf /etc/yunohost/dyndns
root@olitask:/# rm /etc/cron.d/yunohost-dyndns
rm: cannot remove '/etc/cron.d/yunohost-dyndns': No such file or directory
root@olitask:/# yunohost tools postinstall
Main domain: olitask.changeip.com
You are now about to define a new administration password. The password should be at least 8 characters - though it is good practice to use longer password (i.e. a passphrase) and/or to use various kind of characters (uppercase, lowercase, digits and special characters).
New administration password: 
Confirm new administration password: 
Info: Installing YunoHost…
Info: The operation 'Postinstall your YunoHost server' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190313-132700-tools_postinstall-olitask.changeip.com --share'
Error: Invalid password

et le log :

2019-03-13 14:00:40,176: INFO - Installing YunoHost…
2019-03-13 14:00:40,214: DEBUG - custom hook folder not found for action 'conf_regen' in /etc/yunohost/hooks.d/
2019-03-13 14:00:40,260: DEBUG - Executing command 'sh -c YNH_STDINFO=/tmp/tmp62qlHe/stdinfo YNH_CWD=/usr/share/yunohost/hooks/conf_regen BASH_XTRACEFD=7 /bin/bash -x "./09-nslcd" pre 1 0 /home/yunohost.conf/pending/nslcd 7>&1'…
2019-03-13 14:00:40,262: DEBUG - About to run the command '['sh', '-c', 'YNH_STDINFO=/tmp/tmp62qlHe/stdinfo YNH_CWD=/usr/share/yunohost/hooks/conf_regen BASH_XTRACEFD=7 /bin/bash -x "./09-nslcd" pre 1 0 /home/yunohost.conf/pending/nslcd 7>&1']'
2019-03-13 14:00:40,437: DEBUG - + set -e
2019-03-13 14:00:40,440: DEBUG - + FORCE=1
2019-03-13 14:00:40,442: DEBUG - + DRY_RUN=0
2019-03-13 14:00:40,444: DEBUG - + case "$1" in
2019-03-13 14:00:40,446: DEBUG - + do_pre_regen /home/yunohost.conf/pending/nslcd
2019-03-13 14:00:40,448: DEBUG - + pending_dir=/home/yunohost.conf/pending/nslcd
2019-03-13 14:00:40,450: DEBUG - + cd /usr/share/yunohost/templates/nslcd
2019-03-13 14:00:40,451: DEBUG - + install -D -m 644 nslcd.conf /home/yunohost.conf/pending/nslcd/etc/nslcd.conf
2019-03-13 14:00:40,453: DEBUG - + exit 0
2019-03-13 14:00:40,471: DEBUG - Executing command 'sh -c YNH_STDINFO=/tmp/tmp2zM9mY/stdinfo YNH_CWD=/usr/share/yunohost/hooks/conf_regen BASH_XTRACEFD=7 /bin/bash -x "./46-nsswitch" pre 1 0 /home/yunohost.conf/pending/nsswitch 7>&1'…
2019-03-13 14:00:40,473: DEBUG - About to run the command '['sh', '-c', 'YNH_STDINFO=/tmp/tmp2zM9mY/stdinfo YNH_CWD=/usr/share/yunohost/hooks/conf_regen BASH_XTRACEFD=7 /bin/bash -x "./46-nsswitch" pre 1 0 /home/yunohost.conf/pending/nsswitch 7>&1']'
2019-03-13 14:00:40,636: DEBUG - + set -e
2019-03-13 14:00:40,640: DEBUG - + FORCE=1
2019-03-13 14:00:40,641: DEBUG - + DRY_RUN=0
2019-03-13 14:00:40,644: DEBUG - + case "$1" in
2019-03-13 14:00:40,646: DEBUG - + do_pre_regen /home/yunohost.conf/pending/nsswitch
2019-03-13 14:00:40,647: DEBUG - + pending_dir=/home/yunohost.conf/pending/nsswitch
2019-03-13 14:00:40,649: DEBUG - + cd /usr/share/yunohost/templates/nsswitch
2019-03-13 14:00:40,651: DEBUG - + install -D -m 644 nsswitch.conf /home/yunohost.conf/pending/nsswitch/etc/nsswitch.conf
2019-03-13 14:00:40,653: DEBUG - + exit 0
2019-03-13 14:00:40,673: DEBUG - Applying pending configuration for service 'nsswitch'…
2019-03-13 14:00:41,100: DEBUG - processing pending conf '/home/yunohost.conf/pending/nsswitch/etc/nsswitch.conf' to system conf '/etc/nsswitch.conf'
2019-03-13 14:00:41,103: DEBUG - > system conf is already up-to-date
2019-03-13 14:00:41,105: DEBUG - The configuration is already up-to-date for service 'nsswitch'
2019-03-13 14:00:41,107: DEBUG - Applying pending configuration for service 'nslcd'…
2019-03-13 14:00:41,527: DEBUG - processing pending conf '/home/yunohost.conf/pending/nslcd/etc/nslcd.conf' to system conf '/etc/nslcd.conf'
2019-03-13 14:00:41,530: DEBUG - > system conf is already up-to-date
2019-03-13 14:00:41,532: DEBUG - The configuration is already up-to-date for service 'nslcd'
2019-03-13 14:00:41,535: DEBUG - custom hook folder not found for action 'conf_regen' in /etc/yunohost/hooks.d/
2019-03-13 14:00:41,539: DEBUG - Executing command 'sh -c YNH_STDINFO=/tmp/tmppgysIF/stdinfo YNH_CWD=/usr/share/yunohost/hooks/conf_regen BASH_XTRACEFD=7 /bin/bash -x "./09-nslcd" post 1 0 '' 7>&1'…
2019-03-13 14:00:41,541: DEBUG - About to run the command '['sh', '-c', 'YNH_STDINFO=/tmp/tmppgysIF/stdinfo YNH_CWD=/usr/share/yunohost/hooks/conf_regen BASH_XTRACEFD=7 /bin/bash -x "./09-nslcd" post 1 0 \'\' 7>&1']'
2019-03-13 14:00:41,601: DEBUG - + set -e
2019-03-13 14:00:41,607: DEBUG - + FORCE=1
2019-03-13 14:00:41,610: DEBUG - + DRY_RUN=0
2019-03-13 14:00:41,613: DEBUG - + case "$1" in
2019-03-13 14:00:41,616: DEBUG - + do_post_regen
2019-03-13 14:00:41,619: DEBUG - + regen_conf_files=
2019-03-13 14:00:41,622: DEBUG - + [[ -z '' ]]
2019-03-13 14:00:41,626: DEBUG - + exit 0
2019-03-13 14:00:41,785: DEBUG - Executing command 'sh -c YNH_STDINFO=/tmp/tmpN2d0pE/stdinfo YNH_CWD=/usr/share/yunohost/hooks/conf_regen BASH_XTRACEFD=7 /bin/bash -x "./46-nsswitch" post 1 0 '' 7>&1'…
2019-03-13 14:00:41,788: DEBUG - About to run the command '['sh', '-c', 'YNH_STDINFO=/tmp/tmpN2d0pE/stdinfo YNH_CWD=/usr/share/yunohost/hooks/conf_regen BASH_XTRACEFD=7 /bin/bash -x "./46-nsswitch" post 1 0 \'\' 7>&1']'
2019-03-13 14:00:41,847: DEBUG - + set -e
2019-03-13 14:00:41,853: DEBUG - + FORCE=1
2019-03-13 14:00:41,857: DEBUG - + DRY_RUN=0
2019-03-13 14:00:41,859: DEBUG - + case "$1" in
2019-03-13 14:00:41,862: DEBUG - + do_post_regen
2019-03-13 14:00:41,865: DEBUG - + regen_conf_files=
2019-03-13 14:00:41,868: DEBUG - + [[ -z '' ]]
2019-03-13 14:00:41,870: DEBUG - + exit 0
2021-03-13 14:00:42,126: DEBUG - To view the log of the operation 'Regenerate system configurations '2_services'', use the command 'yunohost log display 20190313-140040-service_regen_conf-2_services'

Bref, je sèche.


#4

Wokay bon là je t’avoue que y’a tellement de bidouille qui ont été faite que je sais pas trop si le système est récupérable …

A mon avis tu devrais deja faire :

touch /etc/yunohost/installed

puis pour tenter de réparer postsrsd :

yunohost service regen-conf postfix