I'm running Raspbian Jessie on my Raspberry Pi Zero W and I recently installed NginX 1.10.1 on it by using this tutorial: Use your Raspberry Pi as your local NodeJS Webserver (The reason I did not use
apt-get is because it only installs up to 1.6.2 and I wanted the http2 services.)
So I followed the tutorial strictly for NginX (didn't install the other things) and I ran
sudo /etc/init.d/nginx start
at the end and ended up with this error:
[....] Starting nginx (via systemctl): nginx.serviceJob for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
And when I run
systemctl status nginx.service
I get this:
nginx.service - LSB: nginx init.d dash script for Ubuntu <=9.10. Loaded: loaded (/etc/init.d/nginx) Active: failed (Result: timeout) since Wed 2017-06-28 15:24:34 UTC; 1min 17s ago Process: 6239 ExecStart=/etc/init.d/nginx start (code=exited, status=0/SUCCESS) Jun 28 15:19:34 raspberrypi nginx: Starting Nginx Server...: failed! Jun 28 15:19:34 raspberrypi systemd: PID file /acronymlabs/server/nginx.pid not readable (yet?) after start. Jun 28 15:24:34 raspberrypi systemd: nginx.service start operation timed out. Terminating. Jun 28 15:24:34 raspberrypi systemd: Failed to start LSB: nginx init.d dash script for Ubuntu <=9.10.. Jun 28 15:24:34 raspberrypi systemd: Unit nginx.service entered failed state.
Now here's the issue. It really is a non-issue but it bothers me. The server is running and on my browser I can type in the IP address of the Pi and see
index.html in the
/var/www/ directory as expected.
I'd just like to figure out why it says this because it normally just says [ok] when the start command is sent. Also, this 'tries' to boot it up for a long while which keeps my command prompt occupied.