Welcome! Log In Create A New Profile

Advanced

nginx restart fail

Posted by thunfischbaum 
nginx restart fail
October 24, 2017 10:42AM
What causes this Error and how can I solve it? Iam not able to start nginx.

root@fuwu:~# systemctl status nginx.service
● nginx.service - Startup script for nginx service
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Tue 2017-10-24 16:35:28 CEST; 15s ago
Process: 1457 ExecStartPre=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=2)

Oct 24 16:35:28 fuwu systemd[1]: Starting Startup script for nginx service...
Oct 24 16:35:28 fuwu test[1457]: /usr/bin/test: missing argument after 'yes'
Oct 24 16:35:28 fuwu systemd[1]: nginx.service: control process exited, code=exited status=2
Oct 24 16:35:28 fuwu systemd[1]: Failed to start Startup script for nginx service.
Oct 24 16:35:28 fuwu systemd[1]: Unit nginx.service entered failed state.
Re: nginx restart fail
March 04, 2024 09:18AM
The same error here:

When I perform this:
sudo systemctl restart nginx

This take place:

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 Mon 2024-03-04 11:00:26 -03; 43s ago
Docs: man:nginx(8)
Process: 70780 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)


Context:
>> UFW already allowed Nginx, also v6;
>> My VPS never had Apache installed;



Edited 2 time(s). Last edit at 03/04/2024 09:23AM by aldolammel.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready