Control Web Panel

WebPanel => Apache => Topic started by: aueibrasil on May 10, 2018, 06:00:06 AM

Title: Job for nginx.service failed because the control process exited with error code
Post by: aueibrasil on May 10, 2018, 06:00:06 AM
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
Title: Re: Job for nginx.service failed because the control process exited with error code
Post by: cubehost on May 23, 2018, 04:59:54 PM
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.