Bonjour,
Je suis en train de réinstaller une nouvelle instance yunohost chez moi et pour le moment il est dans ma chambre donc je l’eteint tous les soirs pour ne pas être déranger la nuit.
Sauf qu’une fois sur 2 lors de l’allumage de mon serveur, le service ngonx ne veut pas se relancer.
Jusqu’à maintenant je m’en sortait en redémarrant le pc ou avec un sudo yunohost service restart nginx
mais aujourd’hui rien ne fonctionne…
Voila ce que j’ai comme erreur :
admin@cbft:~$ sudo service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-05-18 10:06:08 CEST; 5min ago
Docs: man:nginx(8)
Process: 2838 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 2836 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
CPU: 113ms
mai 18 10:06:07 cbft.fr nginx[2838]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:07 cbft.fr nginx[2838]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:07 cbft.fr nginx[2838]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:08 cbft.fr nginx[2838]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:08 cbft.fr nginx[2838]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:08 cbft.fr nginx[2838]: nginx: [emerg] still could not bind()
mai 18 10:06:08 cbft.fr systemd[1]: nginx.service: Control process exited, code=exited status=1
mai 18 10:06:08 cbft.fr systemd[1]: Failed to start A high performance web server and a reverse proxy server.
mai 18 10:06:08 cbft.fr systemd[1]: nginx.service: Unit entered failed state.
mai 18 10:06:08 cbft.fr systemd[1]: nginx.service: Failed with result ‘exit-code’.
admin@cbft:~$ sudo nginx -t
nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
admin@cbft:~$ sudo yunohost service start nginx
Job for nginx.service failed because the control process exited with error code.
See “systemctl status nginx.service” and “journalctl -xe” for details.
Attention : Impossible d’exécuter la commande ‘systemctl start nginx’
Erreur : Impossible de démarrer le service ‘nginx’
Journaux historisés récents : – Logs begin at Sat 2019-05-18 10:01:57 CEST, end at Sat 2019-05-18 10:06:08 CEST. –
mai 18 10:02:05 cbft.fr systemd[1]: Starting A high performance web server and a reverse proxy server…
– Subject: L’unité (unit) nginx.service a commencé à démarrer
– Defined-By: systemd
– Support: Debian -- User Support
–
– L’unité (unit) nginx.service a commencé à démarrer.
mai 18 10:02:46 cbft.fr nginx[501]: nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
mai 18 10:02:46 cbft.fr nginx[501]: nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
mai 18 10:02:55 cbft.fr nginx[1699]: nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
mai 18 10:02:55 cbft.fr nginx[1699]: nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
mai 18 10:02:55 cbft.fr nginx[1699]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:55 cbft.fr nginx[1699]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:56 cbft.fr nginx[1699]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:56 cbft.fr nginx[1699]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:56 cbft.fr nginx[1699]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:56 cbft.fr nginx[1699]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:57 cbft.fr nginx[1699]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:57 cbft.fr nginx[1699]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:57 cbft.fr nginx[1699]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:57 cbft.fr nginx[1699]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:02:58 cbft.fr nginx[1699]: nginx: [emerg] still could not bind()
mai 18 10:02:58 cbft.fr systemd[1]: nginx.service: Control process exited, code=exited status=1
mai 18 10:02:58 cbft.fr systemd[1]: Failed to start A high performance web server and a reverse proxy server.
– Subject: L’unité (unit) nginx.service a échoué
– Defined-By: systemd
– Support: Debian -- User Support
–
– L’unité (unit) nginx.service a échoué, avec le résultat failed.
mai 18 10:02:58 cbft.fr systemd[1]: nginx.service: Unit entered failed state.
mai 18 10:02:58 cbft.fr systemd[1]: nginx.service: Failed with result ‘exit-code’.
mai 18 10:06:06 cbft.fr systemd[1]: Starting A high performance web server and a reverse proxy server…
– Subject: L’unité (unit) nginx.service a commencé à démarrer
– Defined-By: systemd
– Support: Debian -- User Support
–
– L’unité (unit) nginx.service a commencé à démarrer.
mai 18 10:06:06 cbft.fr nginx[2836]: nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
mai 18 10:06:06 cbft.fr nginx[2838]: nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
mai 18 10:06:06 cbft.fr nginx[2838]: nginx: [warn] could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
mai 18 10:06:06 cbft.fr nginx[2838]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:06 cbft.fr nginx[2838]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:06 cbft.fr nginx[2838]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:06 cbft.fr nginx[2838]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:07 cbft.fr nginx[2838]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:07 cbft.fr nginx[2838]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:07 cbft.fr nginx[2838]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:07 cbft.fr nginx[2838]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:08 cbft.fr nginx[2838]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:08 cbft.fr nginx[2838]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
mai 18 10:06:08 cbft.fr nginx[2838]: nginx: [emerg] still could not bind()
mai 18 10:06:08 cbft.fr systemd[1]: nginx.service: Control process exited, code=exited status=1
mai 18 10:06:08 cbft.fr systemd[1]: Failed to start A high performance web server and a reverse proxy server.
– Subject: L’unité (unit) nginx.service a échoué
– Defined-By: systemd
– Support: Debian -- User Support
–
– L’unité (unit) nginx.service a échoué, avec le résultat failed.
mai 18 10:06:08 cbft.fr systemd[1]: nginx.service: Unit entered failed state.
mai 18 10:06:08 cbft.fr systemd[1]: nginx.service: Failed with result ‘exit-code’.
Est ce que quelqu’un aurait une autre manip pour redemarrer le service nginx ?
Merci
Yunohost version 3.5.5
installé sur un ordinateur chez moi