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

0 Members and 1 Guest are viewing this topic.


systemctl status nginx.service
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
  Process: 7153 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
May 10 05:48:51 systemd[1]: Starting nginx - high performance web server...
May 10 05:48:51 nginx[7153]: nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/pki/tls/private/") failed (SSL: error:0B080074:x509 certificate routines:X509...alues mismatch)
May 10 05:48:51 systemd[1]: nginx.service: control process exited, code=exited status=1
May 10 05:48:51 systemd[1]: Failed to start nginx - high performance web server.
May 10 05:48:51 systemd[1]: Unit nginx.service entered failed state.
May 10 05:48:51 systemd[1]: nginx.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/pki/tls/private/") 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

Well that error is telling you there is a key and certificate mismatch for the domain ""

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