0

I'm using nginx 1.20.1 on Debian 10, it's working but on command systemctl status nginx this is shown:

systemd[1]: Starting nginx - high performance web server...
systemd[1]: nginx.service: Can't open PID file /run/nginx.pid (yet?) after start: No such file or d
systemd[1]: Started nginx - high performance web server.

I googled alot and checked permission of related folders of address /var/usr/nginx.pid and checked the address to be the same in both /etc/nginx/nginx.conf and /usr/lib/systemd/system/nginx.service , and good to say that nginx.pid is created when nginx is running and it is deleted when I stop nginx. I tried using /usr/nginx.pid in .conf and .service but the same problem exists. In my error.log, no error or warning is logged. Also should mention that it's a fresh VM machine|debian and a fresh nginx! With no extra modification to default nginx.conf !

Question: should I have notice Can't open PID file /run/nginx.pid (yet?) after start: No such file or d ? If it is important how could I resolve it?

3
  • 1
    Why did you change the PID file location? Commented Jul 18, 2021 at 13:09
  • ehm, /run exists on debian, have you deleted it? however, don't change things that you don't understand Commented Jul 18, 2021 at 15:48
  • I encountered the message Can't open PID file on fresh nginx, with no config and default settings, so I started to modify things .. Commented Jul 18, 2021 at 19:35

1 Answer 1

0

When I changed Number of CPUs of my virtual machine form 1 to more than 1, the problem solved (more than 2 days engaging). It was not a problem !! it was just a message on the screen 'Can't open PID file` and nothing in the log file and nginx working truely! But this message maybe is a bug according to this refrence : bugs.launchpad.ne

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.