I have faced apache and nginx interfering with each other and failing of installation lot of times.
Have you tried sudo apt-get autoremove apache2.2 before the Yunohost installation script?
Once bind9 also the cause for failing of the installation for me.
Thx Aleks. I used your script and did a postinstall --debug.
The script hangs at
33368 SUCCESS The configuration has been updated for service 'nsswitch'
33368 DEBUG updating conf hashes for 'nsswitch' with: {'/etc/nsswitch.conf': 'b3866c593dca88380ce1fe10d660298f'}
33381 DEBUG custom hook folder not found for action 'conf_regen' in /etc/yunohost/hooks.d/
33381 INFO Executing command 'sh -c YNH_CWD=/usr/share/yunohost/hooks/conf_regen BASH_XTRACEFD=7 /bin/bash -x "./46-nsswitch" post 1 0 /etc/nsswitch.conf 7>&1'...
33394 INFO + set -e
33394 INFO + FORCE=1
33394 INFO + DRY_RUN=0
33394 INFO + case "$1" in
33394 INFO + do_post_regen /etc/nsswitch.conf
33395 INFO + regen_conf_files=/etc/nsswitch.conf
33395 INFO + [[ -z /etc/nsswitch.conf ]]
33395 INFO + sudo service nscd restart
33429 INFO Restarting Name Service Cache Daemon: nscd.
33430 INFO + exit 0
33517 INFO Generating a 2048 bit RSA private key
.....+++
......+++
writing new private key to '/etc/yunohost/certs//konjunktion.eu-history/20171126.140805-selfsigned/key.pem'
-----
33526 INFO Using configuration from /etc/yunohost/certs//konjunktion.eu-history/20171126.140805-selfsigned/openssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 8 (0x8)
Validity
Not Before: Nov 26 14:08:05 2017 GMT
Not After : Nov 24 14:08:05 2027 GMT
Subject:
commonName = konjunktion.eu
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
32:9E:CF:0F:9D:77:75:BF:02:DA:6F:F4:A7:99:23:BE:BE:BF:A6:2E
X509v3 Authority Key Identifier:
keyid:58:03:F9:B0:0E:83:9B:B2:70:8C:85:FD:9D:37:9A:09:6B:8D:26:16
X509v3 Key Usage:
Digital Signature, Non Repudiation, Key Encipherment
X509v3 Subject Alternative Name:
DNS:konjunktion.eu, DNS:www.konjunktion.eu, DNS:ns.konjunktion.eu
Certificate is to be certified until Nov 24 14:08:05 2027 GMT (3650 days)
Write out database with 1 new entries
Data Base Updated
33528 INFO Enabling the certificate for domain konjunktion.eu ...
33528 INFO Restarting services...
When I do the restarts in another shell, the postinstall process shows me this error:
root@mail:~# service metronome restart
[....] Restarting Metronome XMPP Server: metronomecertmanager error SSL/TLS: Failed to load '/etc/metronome/certs/localhost.key': Check that the path is correct, and the file exists. (for *)
general info Hello and welcome to Metronome version 3.7.9
general info Metronome is using the epoll backend for connection handling
certmanager error SSL/TLS: Failed to load '/etc/metronome/certs/example.com.key': Previous error (see logs), or other system error. (for conference.example.com)
certmanager error SSL/TLS: Failed to load '/etc/metronome/certs/example.com.key': Previous error (see logs), or other system error. (for conference.example.com)
portmanager error Failed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port
portmanager info Activated service 's2s'
mod_s2s warn s2s not listening on any ports, outgoing connections may fail
certmanager error SSL/TLS: Failed to load '/etc/metronome/certs/localhost.key': Check that the path is correct, and the file exists. (for localhost)
certmanager error SSL/TLS: Failed to load '/etc/metronome/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
. ok
After a while the process hangs again at
1422129 INFO + sudo service dovecot restart
1422197 INFO Restarting IMAP/POP3 mail server: dovecot.
1422198 INFO + exit 0
I will reinstall jessie on the server again and then come back. maybe I did to much “reinstall and retrys” that I broke something totaly different than Yunohost.
same problem: script hangs when it is trying to restart the services after enabling the certifivate for the choosen domain.
Maybe it is a problem with systemd? I forgot to mention that I have to install systemd manually cause the provided jessie-rom of the vps ist installed without and yunohost stops installation due to the missing systemd. And i can only resume installation after systemd is installed.
I tried another reinstallation of the vps. between every step i did a reboot. installed systemd before yunohost. but still the same problem when i try to do “yunohost tools postinstall --debug”.
I guess it from your logs that you should try to install from the API at this URL https://konjunktion.eu/yunohost/admin/#/postinstall .
I hope the trick works in order to finalyze your post-installation.
I tried the API-Url and I can set my domain and the password (same as with the shell). But Pacman is running now for almost 20min. I guess it is the same problem:
root@mail:~# tail -f /var/log/yunohost/yunohost-api.log
Digital Signature, Non Repudiation, Key Encipherment
X509v3 Subject Alternative Name:
DNS:konjunktion.eu, DNS:www.konjunktion.eu, DNS:ns.konjunktion.eu
Certificate is to be certified until Nov 24 20:32:13 2027 GMT (3650 days)
Write out database with 1 new entries
Data Base Updated
2017-11-26 20:32:13,629 INFO yunohost.certmanager _enable_certificate - [1148.1] Enabling the certificate for domain konjunktion.eu ...
2017-11-26 20:32:13,629 INFO yunohost.certmanager _enable_certificate - [1148.1] Restarting services...