Bonjour,
J’ai utilisé l’outil de migration pour passer à Stretch/YNH 3, tout semblait fonctionner à priori… hormis Nginx qui ne veut pas démarrer.
Je reçois cette erreur (en regardant les logs ou en faisant nginx -t) :
systemd[1]: Starting A high performance web server and a reverse proxy server...
nginx[682]: nginx: [emerg] module "ngx_http_auth_pam_module" is already loaded in /etc/nginx/modules-enabled/mod-http-auth-pam.conf:1
nginx[682]: nginx: configuration file /etc/nginx/nginx.conf test failed
systemd[1]: nginx.service: Control process exited, code=exited status=1
systemd[1]: Failed to start A high performance web server and a reverse proxy server.
systemd[1]: nginx.service: Unit entered failed state.
systemd[1]: nginx.service: Failed with result 'exit-code'.
J’ai également lancé un yunohost tools diagnosis, voici le résultat ->
Traceback (most recent call last):
File "/usr/lib/moulinette/yunohost/tools.py", line 652, in tools_diagnosis
diagnosis['nginx'] = check_output("nginx -t").strip().split("\n")
File "/usr/lib/python2.7/dist-packages/moulinette/utils/process.py", line 29, in check_output
return subprocess.check_output(args, stderr=stderr, shell=shell, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command 'nginx -t' returned non-zero exit status 1
Attention : Unable to check 'nginx -t', exception: Command 'nginx -t' returned non-zero exit status 1
host: Debian 9.6
kernel: 4.9.0-8-amd64
packages:
yunohost:
repo: stable
version: 3.3.4
yunohost-admin:
repo: stable
version: 3.3.1
moulinette:
repo: stable
version: 3.3.1
ssowat:
repo: stable
version: 3.3.2
backports:
- libssl1.0.0:amd64
- linux-image-4.9.0-0.bpo.6-amd64
- python-reportbug
- redis-server
- redis-tools
system:
disks:
sda1: Mounted on /boot, 999.5MiB (940.2MiB free)
sda2: Mounted on /, 24.6GiB (20.3GiB free)
sda4: Mounted on /home, 890.0GiB (139.8GiB free)
memory:
ram: 15.6GiB (14.6GiB free)
swap: 1.0GiB (1.0GiB free)
services:
avahi-daemon: running (enabled)
dnsmasq: failed (enabled)
dovecot: running (enabled)
fail2ban: running (enabled)
glances: running (enabled)
metronome: running (enabled)
mysql: running (enabled)
nginx: failed (enabled)
nslcd: running (enabled)
php5-fpm: running (enabled)
postfix: exited (enabled)
redis-server: running (enabled)
rmilter: running (enabled)
rspamd: running (enabled)
shout: running (enabled)
sickrage: running (enabled)
slapd: running (enabled)
ssh: running (enabled)
transmission-daemon: running (enabled)
uwsgi: exited (enabled)
yunohost-api: running (enabled)
yunohost-firewall: exited (enabled)
Je me suis dit ensuite qu’il y avait peut être eu un soucis pendant la migration, j’ai donc relancé la commande yunohost tools migrations migrate ; et j’obtiens l’erreur suivante :
Info: Application de la migration 4 php5_to_php7_pools…
Erreur : La migration 4 php5_to_php7_pools a échoué avec l’exception [Errno 22] Service « php7.0-fpm » inconnu, annulation
Info: L’opération « Migrer » a échouée !
J’imagine que ça peut expliquer le soucis avec nginx… le log de l’opération est dispo ici.
Par avance merci pour votre aide !