After i restart my server, now i can't start nginx and supervisorctl

After i restart my erpnext server, i can’t start nginx and supervisorctl.

now when i start nginx, its giving below error:
when i run this command ##sudo systemctl start nginx

Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.

please help me

Check the status using the status command.

Search the error string on Google you’ll get a solution.

Also post the status output here maybe someone will help

@root13F,

when is run status command : sudo systemctl status nginx. it give below error

nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-06-12 14:07:21 +06; 9min ago
Process: 4659 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 4657 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)

Jun 12 14:07:21 localhost.localdomain systemd[1]: Starting The nginx HTTP and reverse pro…
Jun 12 14:07:21 localhost.localdomain nginx[4659]: nginx: [emerg] could not build server_…32
Jun 12 14:07:21 localhost.localdomain nginx[4659]: nginx: configuration file /etc/nginx/n…ed
Jun 12 14:07:21 localhost.localdomain systemd[1]: nginx.service: control process exited, …=1
Jun 12 14:07:21 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reve…r.
Jun 12 14:07:21 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
Jun 12 14:07:21 localhost.localdomain systemd[1]: nginx.service failed.
Jun 12 14:08:22 localhost.localdomain systemd[1]: Unit nginx.service cannot be reloaded b…e.
Jun 12 14:10:46 localhost.localdomain systemd[1]: Unit nginx.service cannot be reloaded b…e.
Hint: Some lines were ellipsized, use -l to show in full.

@namgyal hi…
I am having the same problem . How did you solved this?

Try

sudo nginx -t

Hi…My problem is solved by regenerating the ssl certicate from ssl provider and uploaded it again. Its worked for me.