nginx não será reiniciado

1

Estou executando o Plesk no Debian Desde que eu instalei o Plesk quase 6 meses atrás toda vez que eu reiniciei o servidor nginx falharia em iniciar na inicialização e eu teria que ir e reiniciá-lo manualmente. Agora, hoje eu precisava reiniciar o servidor novamente, mas desta vez não consigo reiniciar o nginx manualmente.

Eu entendo isso:

Starting nginx (via systemctl): nginx.serviceJob for nginx.service failed.
See 'systemctl status nginx.service' and 'journalctl -xn' for details.
failed!

systemctl status nginx.service retorna:

● nginx.service - Startup script for nginx service
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Wed 2016-03-09 23:00:15 MST; 25min ago
Process: 4723 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 4720 ExecStartPre=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=0/SUCCESS)
Mar 09 23:00:15 fineartschool.net nginx[4723]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Mar 09 23:00:15 fineartschool.net nginx[4723]: nginx: [emerg] bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
Mar 09 23:00:15 fineartschool.net nginx[4723]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 09 23:00:15 fineartschool.net systemd[1]: nginx.service: control process exited, code=exited status=1
Mar 09 23:00:15 fineartschool.net systemd[1]: Failed to start Startup script for nginx service.
Mar 09 23:00:15 fineartschool.net systemd[1]: Unit nginx.service entered failed state.

E o diário -xn lê

-- Logs begin at Wed 2016-03-09 22:49:30 MST, end at Wed 2016-03-09 23:10:01 MST. --
Mar 09 23:05:01 fineartschool.net CRON[6067]: pam_unix(cron:session): session closed for user root
Mar 09 23:09:01 fineartschool.net CRON[7188]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 09 23:09:01 fineartschool.net CRON[7189]: (root) CMD (  [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
Mar 09 23:09:01 fineartschool.net CRON[7188]: pam_unix(cron:session): session closed for user root
Mar 09 23:09:47 fineartschool.net CRON[4606]: pam_unix(cron:session): session closed for user root
Mar 09 23:10:01 fineartschool.net CRON[7505]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 09 23:10:01 fineartschool.net CRON[7506]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 09 23:10:01 fineartschool.net CRON[7507]: (root) CMD (/opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/magicspam/script|
Mar 09 23:10:01 fineartschool.net CRON[7508]: (root) CMD (/opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/plesk-mobile/scr
Mar 09 23:10:01 fineartschool.net CRON[7505]: pam_unix(cron:session): session closed for user root

e o log de erros do nginx

2016/03/09 22:28:57 [emerg] 952#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:31:14 [emerg] 2675#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:34:56 [emerg] 914#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:38:36 [emerg] 2670#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:39:26 [emerg] 941#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:42:17 [emerg] 2795#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:42:32 [emerg] 2912#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:46:17 [emerg] 4026#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:46:26 [emerg] 4092#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:49:49 [emerg] 795#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:52:31 [emerg] 2517#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 23:00:15 [emerg] 4723#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)

Qualquer ajuda seria muito apreciada!

Obrigado antecipadamente!

    
por Kaiden Rogers 10.03.2016 / 07:47

1 resposta

0

Bem, isso é embaraçoso. Então, depois de olhar para o padrão recorrente "(99: não é possível atribuir endereço solicitado)" eu decidi olhar para os servidores atribuídos endereço IP e verifica-se que não pegar seu endereço IP estático, em vez pegou um endereço IP dinâmico.

Depois de corrigir isso, consegui reiniciar o nginx. Espero que alguém possa se beneficiar disso.

    
por 10.03.2016 / 08:02