Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Error systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument #77

Open
mxrd opened this issue Feb 28, 2016 · 6 comments

Comments

@mxrd
Copy link

mxrd commented Feb 28, 2016

New installation of Nginx/PHP7 on Debian 8 Jessie (Google cloud). After running "systemctl status nginx" keep on getting error: systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument.
error1
Any idea why? Thanks

@ghost
Copy link

ghost commented Apr 28, 2016

I had similar issue with pid missing in this same location. After some investigation, a reinstall of php7 was required and slight modifications to my nginx configuration file.

@gplessis
Copy link
Owner

gplessis commented Jun 4, 2016

Does it still happen with the latest 1.10.1 version?

@116davinder
Copy link

can you explain what changes you made for this @clessley
it would be very helpful for us.

@ghost
Copy link

ghost commented Oct 17, 2016

@116davinder Completely remove & purge your older php5 installs and also whatever php7 installation you currently have. Autoremove and reboot. Then install php7 (completely; all required packages). This was the only way I was able to get past the PID error. The remaining errors which I allude to can then be worked through by just checking your /var/log/nginx/error log file for your specific use case. I've not seen that error since. BTW, I'm running Ubuntu not Debian.

@Pavel-Novikov
Copy link

Yes the same in the version 1.10.1. Debian Jessie

@lubry
Copy link

lubry commented Mar 21, 2017

i have same problem in centos 7, i had try this https://www.svennd.be/pid-file-runnginx-pid-not-readable-yet-after-start/ but not resolve the problem, but i think that not problem, my nginx server running normaly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants