Report this

What is the reason for this report?

Nginx shows failed. I can't start it, neither other command.

Posted on January 22, 2018

Get cloud support with Ubuntu Advantage Cloud Guest: http://www.ubuntu.com/business/services/cloud

5 packages can be updated. 0 updates are security updates.

Last login: Mon Jan 22 11:23:45 2018 /usr/bin/xauth: file /home/marcelo/.Xauthority does not exist root@ubuntu-s-1vcpu-1gb-nyc3-01:~$ systemctl status nginx ● 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 2018-01-22 12:06:06 UTC; 53s ago Process: 1361 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Based on what you shared my best guess is that your log files in /var/log/nginx have the incorrect ownership. If the ownership of these files were changed to root you would likely see nginx fail in this way (being unable to open the logs) but you would still be able to view your log files since you are logged in as root.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.