Résolu : problème nginx [Yunohost 2.5]

Bonjour,

Après avoir tenté de ré-installer Movim, je ne peux plus accéder à mon Yunohost (2.5 hérbergé sur un rasp 3 derrière une livebox) dans mon navigateur internet. En revanche, je peux toujours y accéder en SSH et j’ai pu faire un
root@Yunohost:~# sudo apt update && sudo apt dist-upgrade

avec succès mais ça n’a rien changé.

root@Yunohost:~# yunohost app remove movim
Erreur : movim n'est pas installé

Je n’ai accès ni à nomdedomaine/yunohost/admin/ ni nomdedomaine/yunohost/sso/

comme lors de l’échec de réinstallation de Movim, j’ai lu quelque chose sur nginx, j’ai fait

root@Yunohost:~# service nginx restart
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
root@Yunohost:~# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since dim. 2017-04-02 20:29:31 CEST; 41s ago
  Process: 3184 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

avril 02 20:29:31 Yunohost nginx[3184]: nginx: [emerg] BIO_new_file("/etc/yu...)
avril 02 20:29:31 Yunohost nginx[3184]: nginx: configuration file /etc/nginx...d
avril 02 20:29:31 Yunohost systemd[1]: nginx.service: control process exite...=1
avril 02 20:29:31 Yunohost systemd[1]: Failed to start A high performance w...r.
avril 02 20:29:31 Yunohost systemd[1]: Unit nginx.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
root@Yunohost:~# journalctl -xn
-- Logs begin at dim. 2017-04-02 20:09:17 CEST, end at dim. 2017-04-02 20:30:17 
avril 02 20:30:01 Yunohost CRON[3193]: pam_unix(cron:session): session opened fo
avril 02 20:30:01 Yunohost CRON[3194]: pam_unix(cron:session): session opened fo
avril 02 20:30:01 Yunohost CRON[3201]: (nextcloud) CMD (/usr/bin/php -f /var/www
avril 02 20:30:01 Yunohost CRON[3203]: (root) CMD (yunohost dyndns update >> /de
avril 02 20:30:03 Yunohost slapd[1324]: <= mdb_equality_candidates: (uniqueMembe
avril 02 20:30:03 Yunohost slapd[1324]: <= mdb_equality_candidates: (uniqueMembe
avril 02 20:30:03 Yunohost slapd[1324]: <= mdb_equality_candidates: (uniqueMembe
avril 02 20:30:07 Yunohost CRON[3193]: pam_unix(cron:session): session closed fo
avril 02 20:30:15 Yunohost CRON[3194]: pam_unix(cron:session): session closed fo
avril 02 20:30:17 Yunohost sshd[3229]: Connection closed by 113.195.145.52 [prea
...skipping...
-- Logs begin at dim. 2017-04-02 20:09:17 CEST, end at dim. 2017-04-02 20:30:17 
avril 02 20:30:01 Yunohost CRON[3193]: pam_unix(cron:session): session opened fo
avril 02 20:30:01 Yunohost CRON[3194]: pam_unix(cron:session): session opened fo
avril 02 20:30:01 Yunohost CRON[3201]: (nextcloud) CMD (/usr/bin/php -f /var/www
avril 02 20:30:01 Yunohost CRON[3203]: (root) CMD (yunohost dyndns update >> /de
avril 02 20:30:03 Yunohost slapd[1324]: <= mdb_equality_candidates: (uniqueMembe
avril 02 20:30:03 Yunohost slapd[1324]: <= mdb_equality_candidates: (uniqueMembe
avril 02 20:30:03 Yunohost slapd[1324]: <= mdb_equality_candidates: (uniqueMembe
avril 02 20:30:07 Yunohost CRON[3193]: pam_unix(cron:session): session closed fo
avril 02 20:30:15 Yunohost CRON[3194]: pam_unix(cron:session): session closed fo
avril 02 20:30:17 Yunohost sshd[3229]: Connection closed by 113.195.145.52 [prea

En espérant que ces informations vous aideront pour m’aider à résoudre mon problème.

Merci d’avance,
Thatoo

Je vous fais part de mes investigations :

root@Yunohost:~# nginx -t
nginx: [emerg] BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/yunohost/certs/leprette.fr/crt.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

dans /var/log/nginx/error.log

2017/04/02 19:30:38 [emerg] 983#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:f$
2017/04/02 19:54:48 [emerg] 945#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:f$
2017/04/02 20:05:37 [emerg] 6808#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:$
2017/04/02 20:10:01 [emerg] 942#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:f$
2017/04/02 20:29:31 [emerg] 3184#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:$
2017/04/02 20:32:03 [emerg] 3325#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:$
2017/04/02 20:33:01 [emerg] 3387#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:$
2017/04/02 20:33:58 [emerg] 3514#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:$
2017/04/02 20:54:17 [emerg] 5437#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:$
2017/04/02 21:01:02 [emerg] 5680#0: BIO_new_file("/etc/yunohost/certs/leprette.fr/crt.pem") failed (SSL: error:02001002:system library:$

Je m’arrête là car je ne sais même pas si je suis sur la bonne piste…

Merci à @carter qui m’a donné la solution ici : L’installation du https