Unable to restart the nginx service

ubuntu@ip-172-31-37-106:~$ sudo service nginx restart
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

systemctl status nginx.service
ā— 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 Sun 2023-06-04 19:04:59 UTC; 5min ago
Docs: man:nginx(8)
Process: 50555 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Jun 04 19:04:59 ip-172-31-37-106 systemd[1]: Starting A high performance web server and a reverse proxy server...
Jun 04 19:04:59 ip-172-31-37-106 nginx[50555]: nginx: [emerg] cannot load certificate "/etc/nginx/ssl/self-signed.crt": BIO_new_file() failed (SSL: e>
Jun 04 19:04:59 ip-172-31-37-106 nginx[50555]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jun 04 19:04:59 ip-172-31-37-106 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Jun 04 19:04:59 ip-172-31-37-106 systemd[1]: nginx.service: Failed with result 'exit-code'.
Jun 04 19:04:59 ip-172-31-37-106 systemd[1]: Failed to start A high performance web server and a reverse proxy server.

journalctl -xe
Failed to start A high performance web server and a reverse proxy server.

Hello,

Not sure how this relate to Elastic as Nginx is not an Elastic tool.

You need to look on a specific forum for Nginx or ask on Stack Overflow, this forum is for issues and question about Elastic tools.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.