Author Topic: Job for nginx.service failed because the control process exited with error code  (Read 8573 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hi,

systemctl status nginx.service
Quote
nginx.service - nginx - high performance web server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2018-05-10 05:48:51 UTC; 6min ago
     Docs: http://nginx.org/en/docs/
  Process: 7153 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
May 10 05:48:51 servidor.aueibrasil.com.br systemd[1]: Starting nginx - high performance web server...
May 10 05:48:51 servidor.aueibrasil.com.br nginx[7153]: nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/pki/tls/private/servidor.aueibrasil.com.br.key") failed (SSL: error:0B080074:x509 certificate routines:X509...alues mismatch)
May 10 05:48:51 servidor.aueibrasil.com.br systemd[1]: nginx.service: control process exited, code=exited status=1
May 10 05:48:51 servidor.aueibrasil.com.br systemd[1]: Failed to start nginx - high performance web server.
May 10 05:48:51 servidor.aueibrasil.com.br systemd[1]: Unit nginx.service entered failed state.
May 10 05:48:51 servidor.aueibrasil.com.br systemd[1]: nginx.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

nginx -t -c /etc/nginx/nginx.conf
Quote
nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/pki/tls/private/servidor.aueibrasil.com.br.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)
nginx: configuration file /etc/nginx/nginx.conf test failed

I already did apache rebuild vhosts, but it continues, apache and varnish are running normally.
This happened after my server rebooted.

thank you, who can help me

Offline
*
Well that error is telling you there is a key and certificate mismatch for the domain "servidor.aueibrasil.com"

You need to fix the certificate for that domain and then restart nginx.