Installation went well until ... yunohost tools postinstall

My YunoHost server

Hardware: Other ARM board / …
YunoHost version: x.x.x
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I am attempting to install the tools of yunohost and I get these messages.

Here are some error messages:
2020-09-06 13:51:45,012: INFO - Installing YunoHost...
2020-09-06 13:51:45,032: DEBUG - No custom hook for action 'conf_regen' in /etc/yunohost/hooks.d/
2020-09-06 13:51:45,043: DEBUG - Executing command 'sh -c YNH_INTERFACE=cli YNH_CWD=/usr/share/yunohost/hooks/conf_regen YNH_STDINFO=/tmp/tmpsKTfK1/stdinfo YNH_STDRETURN=/tmp/tmpjP4J8n/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./09-nslcd" pre 1 0 /home/yunohost.conf/pending/nslcd 7>&1'...
2020-09-06 13:51:45,044: DEBUG - About to run the command '['sh', '-c', 'YNH_INTERFACE=cli YNH_CWD=/usr/share/yunohost/hooks/conf_regen YNH_STDINFO=/tmp/tmpsKTfK1/stdinfo YNH_STDRETURN=/tmp/tmpjP4J8n/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./09-nslcd" pre 1 0 /home/yunohost.conf/pending/nslcd 7>&1']'
2020-09-06 13:51:45,087: DEBUG - + set -e
2020-09-06 13:51:45,092: DEBUG - + FORCE=1
2020-09-06 13:51:45,093: DEBUG - + DRY_RUN=0
2020-09-06 13:51:45,093: DEBUG - + case "$1" in
2020-09-06 13:51:45,093: DEBUG - + do_pre_regen /home/yunohost.conf/pending/nslcd
2020-09-06 13:51:45,093: DEBUG - + pending_dir=/home/yunohost.conf/pending/nslcd
2020-09-06 13:51:45,094: DEBUG - + cd /usr/share/yunohost/templates/nslcd
2020-09-06 13:51:45,094: DEBUG - + install -D -m 644 nslcd.conf /home/yunohost.conf/pending/nslcd/etc/nslcd.conf
2020-09-06 13:51:45,095: DEBUG - + exit 0
2020-09-06 13:51:45,206: DEBUG - Executing command 'sh -c YNH_INTERFACE=cli YNH_CWD=/usr/share/yunohost/hooks/conf_regen YNH_STDINFO=/tmp/tmpHMdmAL/stdinfo YNH_STDRETURN=/tmp/tmpEhohkf/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./46-nsswitch" pre 1 0 /home/yunohost.conf/pending/nsswitch 7>&1'...
2020-09-06 13:51:45,206: DEBUG - About to run the command '['sh', '-c', 'YNH_INTERFACE=cli YNH_CWD=/usr/share/yunohost/hooks/conf_regen YNH_STDINFO=/tmp/tmpHMdmAL/stdinfo YNH_STDRETURN=/tmp/tmpEhohkf/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./46-nsswitch" pre 1 0 /home/yunohost.conf/pending/nsswitch 7>&1']'
2020-09-06 13:51:45,246: DEBUG - + set -e
2020-09-06 13:51:45,255: DEBUG - + FORCE=1
2020-09-06 13:51:45,260: DEBUG - + DRY_RUN=0
2020-09-06 13:51:45,260: DEBUG - + case "$1" in
2020-09-06 13:51:45,260: DEBUG - + do_pre_regen /home/yunohost.conf/pending/nsswitch
2020-09-06 13:51:45,261: DEBUG - + pending_dir=/home/yunohost.conf/pending/nsswitch
2020-09-06 13:51:45,261: DEBUG - + cd /usr/share/yunohost/templates/nsswitch
2020-09-06 13:51:45,261: DEBUG - + install -D -m 644 nsswitch.conf /home/yunohost.conf/pending/nsswitch/etc/nsswitch.conf
2020-09-06 13:51:45,262: DEBUG - + exit 0
2020-09-06 13:51:45,416: DEBUG - Checking pending configuration which would have been applied for category 'nsswitch'…
2020-09-06 13:51:45,420: DEBUG - processing pending conf '/home/yunohost.conf/pending/nsswitch/etc/nsswitch.conf' to system conf '/etc/nsswitch.conf'
2020-09-06 13:51:45,421: DEBUG - > system conf is already up-to-date
2020-09-06 13:51:45,421: DEBUG - The configuration is already up-to-date for category 'nsswitch'
2020-09-06 13:51:45,422: DEBUG - Checking pending configuration which would have been applied for category 'nslcd'…
2020-09-06 13:51:45,425: DEBUG - processing pending conf '/home/yunohost.conf/pending/nslcd/etc/nslcd.conf' to system conf '/etc/nslcd.conf'
2020-09-06 13:51:45,425: DEBUG - > system conf is already up-to-date
2020-09-06 13:51:45,426: DEBUG - The configuration is already up-to-date for category 'nslcd'
2020-09-06 13:51:45,426: DEBUG - No custom hook for action 'conf_regen' in /etc/yunohost/hooks.d/
2020-09-06 13:51:45,429: DEBUG - Executing command 'sh -c YNH_INTERFACE=cli YNH_CWD=/usr/share/yunohost/hooks/conf_regen YNH_STDINFO=/tmp/tmpqCTLh7/stdinfo YNH_STDRETURN=/tmp/tmpuFM9mL/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./09-nslcd" post 1 0 '' 7>&1'...
2020-09-06 13:51:45,430: DEBUG - About to run the command '['sh', '-c', 'YNH_INTERFACE=cli YNH_CWD=/usr/share/yunohost/hooks/conf_regen YNH_STDINFO=/tmp/tmpqCTLh7/stdinfo YNH_STDRETURN=/tmp/tmpuFM9mL/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./09-nslcd" post 1 0 \'\' 7>&1']'
2020-09-06 13:51:45,480: DEBUG - + set -e
2020-09-06 13:51:45,481: DEBUG - + FORCE=1
2020-09-06 13:51:45,482: DEBUG - + DRY_RUN=0
2020-09-06 13:51:45,482: DEBUG - + case "$1" in
2020-09-06 13:51:45,482: DEBUG - + do_post_regen
2020-09-06 13:51:45,483: DEBUG - + regen_conf_files=
2020-09-06 13:51:45,486: DEBUG - + [[ -z '' ]]
2020-09-06 13:51:45,486: DEBUG - + exit 0
2020-09-06 13:51:45,642: DEBUG - Executing command 'sh -c YNH_INTERFACE=cli YNH_CWD=/usr/share/yunohost/hooks/conf_regen YNH_STDINFO=/tmp/tmpP21WmQ/stdinfo YNH_STDRETURN=/tmp/tmpuhPETp/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./46-nsswitch" post 1 0 '' 7>&1'...
2020-09-06 13:51:45,642: DEBUG - About to run the command '['sh', '-c', 'YNH_INTERFACE=cli YNH_CWD=/usr/share/yunohost/hooks/conf_regen YNH_STDINFO=/tmp/tmpP21WmQ/stdinfo YNH_STDRETURN=/tmp/tmpuhPETp/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./46-nsswitch" post 1 0 \'\' 7>&1']'
2020-09-06 13:51:45,681: DEBUG - + set -e
2020-09-06 13:51:45,683: DEBUG - + FORCE=1
2020-09-06 13:51:45,691: DEBUG - + DRY_RUN=0
2020-09-06 13:51:45,692: DEBUG - + case "$1" in
2020-09-06 13:51:45,692: DEBUG - + do_post_regen
2020-09-06 13:51:45,693: DEBUG - + regen_conf_files=
2020-09-06 13:51:45,693: DEBUG - + [[ -z '' ]]
2020-09-06 13:51:45,693: DEBUG - + exit 0
2020-09-06 13:51:45,804: DEBUG - To view the log of the operation 'Regenerate system configurations '2_categories'', use the command 'yunohost log display 20200906-135145-regen_conf-2_categories'
2020-09-06 13:51:45,948: WARNING - Error when trying to inject 'ou=users' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'users'}' into ldap: error during LDAP add operation with: rdn='ou=users', attr_dict={'objectClass': ['organizationalUnit', 'top'], 'ou': 'users'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,950: WARNING - Error when trying to inject 'ou=domains' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'domains'}' into ldap: error during LDAP add operation with: rdn='ou=domains', attr_dict={'objectClass': ['organizationalUnit', 'top'], 'ou': 'domains'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,953: WARNING - Error when trying to inject 'ou=groups' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'groups'}' into ldap: error during LDAP add operation with: rdn='ou=groups', attr_dict={'objectClass': ['organizationalUnit', 'top'], 'ou': 'groups'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,954: WARNING - Error when trying to inject 'ou=sudo' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'sudo'}' into ldap: error during LDAP add operation with: rdn='ou=sudo', attr_dict={'objectClass': ['organizationalUnit', 'top'], 'ou': 'sudo'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,956: WARNING - Error when trying to inject 'ou=apps' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'apps'}' into ldap: error during LDAP add operation with: rdn='ou=apps', attr_dict={'objectClass': ['organizationalUnit', 'top'], 'ou': 'apps'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,958: WARNING - Error when trying to inject 'ou=permission' -> '{'objectClass': ['organizationalUnit', 'top'], 'ou': 'permission'}' into ldap: error during LDAP add operation with: rdn='ou=permission', attr_dict={'objectClass': ['organizationalUnit', 'top'], 'ou': 'permission'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,960: WARNING - Error when trying to inject 'cn=visitors,ou=groups' -> '{'objectClass': ['posixGroup', 'groupOfNamesYnh'], 'gidNumber': '4003', 'cn': 'visitors'}' into ldap: error during LDAP add operation with: rdn='cn=visitors,ou=groups', attr_dict={'objectClass': ['posixGroup', 'groupOfNamesYnh'], 'gidNumber': '4003', 'cn': 'visitors'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,962: WARNING - Error when trying to inject 'cn=all_users,ou=groups' -> '{'objectClass': ['posixGroup', 'groupOfNamesYnh'], 'gidNumber': '4002', 'cn': 'all_users'}' into ldap: error during LDAP add operation with: rdn='cn=all_users,ou=groups', attr_dict={'objectClass': ['posixGroup', 'groupOfNamesYnh'], 'gidNumber': '4002', 'cn': 'all_users'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,964: WARNING - Error when trying to inject 'cn=admins,ou=groups' -> '{'objectClass': ['posixGroup', 'top'], 'memberUid': 'admin', 'gidNumber': '4001', 'cn': 'admins'}' into ldap: error during LDAP add operation with: rdn='cn=admins,ou=groups', attr_dict={'objectClass': ['posixGroup', 'top'], 'memberUid': 'admin', 'gidNumber': '4001', 'cn': 'admins'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,966: 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: error during LDAP add operation with: rdn='cn=admin,ou=sudo', attr_dict={'cn': 'admin', 'sudoCommand': 'ALL', 'sudoUser': 'admin', 'objectClass': ['sudoRole', 'top'], 'sudoOption': '!authenticate', 'sudoHost': 'ALL'} and exception {'desc': u'No such object'}
2020-09-06 13:51:45,968: WARNING - Error when trying to inject 'cn=mail.main,ou=permission' -> '{'objectClass': ['posixGroup', 'permissionYnh'], 'gidNumber': '5001', 'groupPermission': ['cn=all_users,ou=groups,dc=yunohost,dc=org'], 'cn': 'mail.main'}' into ldap: error during LDAP add operation with: rdn='cn=mail.main,ou=permission', attr_dict={'objectClass': ['posixGroup', 'permissionYnh'], 'gidNumber': '5001', 'groupPermission': ['cn=all_users,ou=groups,dc=yunohost,dc=org'], 'cn': 'mail.main'} and exception {'info': u'adding non-existing object as group member', 'desc': u'Constraint violation'}
2020-09-06 13:51:45,970: WARNING - Error when trying to inject 'cn=xmpp.main,ou=permission' -> '{'objectClass': ['posixGroup', 'permissionYnh'], 'gidNumber': '5002', 'groupPermission': ['cn=all_users,ou=groups,dc=yunohost,dc=org'], 'cn': 'xmpp.main'}' into ldap: error during LDAP add operation with: rdn='cn=xmpp.main,ou=permission', attr_dict={'objectClass': ['posixGroup', 'permissionYnh'], 'gidNumber': '5002', 'groupPermission': ['cn=all_users,ou=groups,dc=yunohost,dc=org'], 'cn': 'xmpp.main'} and exception {'info': u'adding non-existing object as group member', 'desc': u'Constraint violation'}

Thanks and regards,
Jimmy

Uh wokay it looks like there was some issue with the LDAP database initialization …

Can you try to run the following through SSH :

curl https://raw.githubusercontent.com/alexAubin/yunoScripts/master/resetPostinstall.sh | bash

and report if there’s any error/warning suspicious message ?

Greetings,

1st attempt was KO as /usr/bin was not in the PATH. I started with

su –

and here is the log.

Thanks Aleks!

Cheers,
Jimmy Pierre

Uuuuh I think you forgot to include it somehow ?

Awfully sorry Aleks,

su -

Password:

root@yunohost:~# curl https://raw.githubusercontent.com/alexAubin/yunoScripts/master/resetPostinstall.sh | bash

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

Dload  Upload   Total   Spent    Left  Speed

100  1000  100  1000    0     0   4329      0 --:--:-- --:--:-- --:--:--  4329

dpkg: slapd: dependency problems, but removing anyway as you requested:

yunohost depends on slapd.



(Reading database ... 52418 files and directories currently installed.)

Removing slapd (2.4.47+dfsg-3+deb10u2) ...

Saving current slapd configuration to /var/backups/slapd-2.4.47+dfsg-3+deb10u2...

Dumping to /var/backups/slapd-2.4.47+dfsg-3+deb10u2:

  - directory dc=yunohost,dc=org... done.

Purging configuration files for slapd (2.4.47+dfsg-3+deb10u2) ...

Removing slapd configuration... done.

dpkg: warning: while removing slapd, directory '/etc/ldap/schema' not empty so not removed

Processing triggers for libc-bin (2.28-10) ...

Processing triggers for man-db (2.8.5-2) ...

Processing triggers for systemd (241-7~deb10u4) ...

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 0 not upgraded.

Need to get 0 B/1,345 kB of archives.

After this operation, 15.8 MB of additional disk space will be used.

Preconfiguring packages ...

Selecting previously unselected package slapd.

(Reading database ... 52154 files and directories currently installed.)

Preparing to unpack .../slapd_2.4.47+dfsg-3+deb10u2_arm64.deb ...

Unpacking slapd (2.4.47+dfsg-3+deb10u2) ...

Setting up slapd (2.4.47+dfsg-3+deb10u2) ...

Moving old database directory to /var/backups:

  - directory unknown... done.

Creating initial configuration... done.

Creating LDAP directory... done.

Processing triggers for systemd (241-7~deb10u4) ...

Processing triggers for man-db (2.8.5-2) ...

Processing triggers for libc-bin (2.28-10) ...

Initializing a local SSL certification authority ...

(logs available in /tmp/yunohost-ssl-init)

Updating certificates in /etc/ssl/certs...

0 added, 0 removed; done.

Running hooks in /etc/ca-certificates/update.d...

done.

_#################### 100.00% eta   none elapsed            none fast!

Closing DB...

Best wishes,
Jimmy

Hmmmmokay so that looks pretty normal …

Let’s naively re-attempt the postinstall in case that was just a weird temporary issue ?

If that still doesn’t work we’ll see how to dig deeper …

Right, ran postinstall went fine! Thanks.

Here is the final log :

root@rouen:~# yunohost diagnosis run

Info: (Cache still valid for Base system diagnosis. Won’t re-diagnose it yet!)

Info: (Cache still valid for Internet connectivity diagnosis. Won’t re-diagnose it yet!)

Info: (Cache still valid for DNS records diagnosis. Won’t re-diagnose it yet!)

Info: (Cache still valid for Ports exposure diagnosis. Won’t re-diagnose it yet!)

Info: (Cache still valid for Web diagnosis. Won’t re-diagnose it yet!)

Info: (Cache still valid for Email diagnosis. Won’t re-diagnose it yet!)

Info: (Cache still valid for Services status check diagnosis. Won’t re-diagnose it yet!)

Info: (Cache still valid for System resources diagnosis. Won’t re-diagnose it yet!)

Info: (Cache still valid for System configurations diagnosis. Won’t re-diagnose it yet!)

root@rouen:~#

Thanks Aleks_

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