Erreur Pendant PostInstall

Mon serveur YunoHost

Matériel: VPS acheté en ligne
Version de YunoHost: 3.7.0.4
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’essaye d’installé YunoHost sur mon VPS sous debian 9.
Cependant pendant l’étape de la postinstall donc après éxécution de la commande yunohost tools postinstall j’obtient une erreur.
J’ai chercher sur le net, il y a actuellement une issue sur github toujours ouverte qui laisse suggérer que c’est parceque j’utilise un domaine autre que dyndns.
Mon domaine est cormier.cc et le sous domaine de mon VPS est friends.cormier.cc.
Sur friends.cormier.cc j’arrive à accéder à la page pour continué la postinstall.

Merci d’avance,
Bonne fin de journée.

Liens de l’issue : https://github.com/YunoHost/issues/issues/1332

Voici le message d’erreur complet :

Error: Invalid url https://dyndns.yunohost.org/domains (does this site exists?)
Warning: dyndns_provider_unreachable
Info: Installing YunoHost…
Warning: Error when trying to inject 'ou=domains' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'domains'}' into ldap: An error occurred during LDAP operation
Warning: Error when trying to inject 'ou=groups' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'groups'}' into ldap: An error occurred during LDAP operation
Warning: Error when trying to inject 'ou=sudo' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'sudo'}' into ldap: An error occurred during LDAP operation
Warning: Error when trying to inject 'ou=apps' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'apps'}' into ldap: An error occurred during LDAP operation
Warning: Error when trying to inject 'ou=users' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'users'}' into ldap: An error occurred during LDAP operation
Warning: Error when trying to inject 'cn=admins,ou=groups' -> '{'objectClass': ['posixGroup', 'top'], 'memberUid': 'admin', 'gidNumber': '4001', 'cn': 'admins'}' into ldap: An error occurred during LDAP operation
Warning: Error when trying to inject 'cn=sftpusers,ou=groups' -> '{'objectClass': ['posixGroup', 'top'], 'memberUid': 'admin', 'gidNumber': '4002', 'cn': 'sftpusers'}' into ldap: An error occurred during LDAP operation
Warning: Error when trying to inject 'cn=admin,ou=sudo' -> '{'cn': 'admin', 'sudoCommand': 'ALL', 'sudoUser': 'admin', 'objectClass': ['sudoRole', 'top'], 'sudoOption': '!authenticate', 'sudoHost': 'ALL'}' into ldap: An error occurred during LDAP operation
Error: LDAP initialization failed to create admin user
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 20191209-151054-tools_postinstall-cormier.cc --share'
Error: Installation failed

J’ai le même problème =/

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

To try to move forward with this :

  • the issue is that the error message doesn’t really tell what’s happening ("An error occurred during LDAP operation") … this is bad design on Yunohost’s side …
  • However, this was fixed recently on Moulinette 3.7.1.1 … so if you still reproduce the issue and made sure to upgrade, we should get more info about what happens
  • I’m suspecting it could be because slapd (the LDAP server) may have got killed due to lack of RAM as I saw this recently. This should be improved in 3.8, but that’s only an hypothesis …
  • Note also that it’s “expected” to see such a bunch of errors if you re-try the postinstall after a first failed one …

Maybe moulinette is now fixed but the iso for Raspberry is not up to date.
«N.B. : Even if the image does not corresponds to the latest version of YunoHost, you can still use it and do a regular system upgrade after setting up!» yes but no if you cannot install it properly in the first place.
I’m like…stuck :upside_down_face: Since November I cannot give YunoHost a try because of this…
Sorry to bother you with this but I thought it was important to report this.

@Quentin : hmokay … the message doesn’t make it so explicit but have you considered running the upgrade (using apt update && apt dist-upgrade) before the postintall ?

Granted that the root issue is that we should definitely upgrade those images which is not 100% straightforward…

Coucou, j’ai une erreur différente maintenant =/
Main domain: MONDOMAINE
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 20200501-125236-tools_postinstall-MONDOMAINE --share’
Error: Invalid password
root@raspberrypi:~#

Hm you’ve already tried the postinstall once so it needs to be reseted …

You can try :

wget https://raw.githubusercontent.com/alexAubin/yunoScripts/master/resetPostinstall.sh
bash resetPosinstall.h

Something new ^^
onfirm new administration password:
Info: Installing YunoHost…
Success! The configuration has been updated for service ‘nsswitch’
Success! The configuration has been updated for service ‘nslcd’
Warning: sudo: ldap_sasl_bind_s(): Can’t contact LDAP server
Warning: sudo: ldap_sasl_bind_s(): Can’t contact LDAP server
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 20200501-135107-tools_postinstall-personal.mejans.fr --share’
Error: Unable to reach LDAP server

Well uh okay :confused: Sounds like slapd is down now …

Does systemctl status slapd shows the service as active/running ?

Non :frowning:
root@raspberrypi:~# systemctl status slapd
Unit slapd.service could not be found.

Uuuuuuh … wokay, let’s try uh 'apt install slapd' then ? x_X

Ça s’installe mais après si je demande le statut il me dit que le service n’existe pas =/
Si je lance ton script pour remettre à zéro il me dit qu’il va pas enlever slapd vu qu’il est pas installé. Là ton script se déroule, j’attends.

Et non impossible de contacter le serveur LDAP…

Marf mais du coup quand tu fais un “apt install slapd” ça raconte quoi exactement :S ? (Et si il est bien installé, que dit “systemctl status slapd”)

J’ai ça :
root@raspberrypi:~# apt install slapd
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
The following NEW packages will be installed:
slapd
0 upgraded, 1 newly installed, 0 to remove and 43 not upgraded.
13 not fully installed or removed.
Need to get 0 B/1,272 kB of archives.
After this operation, 13.5 MB of additional disk space will be used.
[master 163a82c] saving uncommitted changes in /etc prior to apt run
10 files changed, 208 insertions(+)
create mode 120000 ssl/certs/ca-yunohost_crt.pem
create mode 120000 ssl/certs/yunohost_crt.pem
create mode 120000 ssl/private/yunohost_key.pem
create mode 100644 yunohost/certs/yunohost.org/ca.pem
create mode 100644 yunohost/certs/yunohost.org/crt.pem
create mode 100644 yunohost/certs/yunohost.org/key.pem
create mode 100644 yunohost/current_host
create mode 100644 yunohost/firewall.yml
create mode 100644 yunohost/services.yml
Preconfiguring packages …
Setting up metronome (3.12.0+yunohost-1) …
Job for metronome.service failed because the control process exited with error c
ode.
See “systemctl status metronome.service” and “journalctl -xe” for details.
invoke-rc.d: initscript metronome, action “start” failed.
● metronome.service - LSB: Metronome XMPP Server
Loaded: loaded (/etc/init.d/metronome; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-05-01 16:24:07 BST; 206ms a
go
Docs: man:systemd-sysv-generator(8)
Process: 12991 ExecStart=/etc/init.d/metronome start (code=exited, status=1/FA
ILURE)

May 01 16:24:07 raspberrypi systemd[1]: Starting LSB: Metronome XMPP Server…
May 01 16:24:07 raspberrypi metronome[12991]: Starting Metronome XMPP Server…ion
May 01 16:24:07 raspberrypi metronome[12991]: failed!
May 01 16:24:07 raspberrypi systemd[1]: metronome.service: Control process e…s=1
May 01 16:24:07 raspberrypi systemd[1]: Failed to start LSB: Metronome XMPP …er.
May 01 16:24:07 raspberrypi systemd[1]: metronome.service: Unit entered fail…te.
May 01 16:24:07 raspberrypi systemd[1]: metronome.service: Failed with resul…e’.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package metronome (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
metronome
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@raspberrypi:~#

Alright … je semble deviner que tu es sur RPi 0 ou 1 ?

Sur sur un raspberry oui, le 2 il me semblait. Mais pas le 0 c’est sûr

Si tu fais cat /proc/device-tree/model, ça raconte quoi ?