[Pkg-nginx-maintainers] Bug#876365: nginx: Failed to read PID from file /run/nginx.pid: Invalid argument
nmachkova at verdnatura.es
nmachkova at verdnatura.es
Thu Sep 21 11:10:32 UTC 2017
Package: nginx
Version: 1.6.2-5+deb8u5
Severity: normal
Dear Maintainer,
* after each restart of nginx there is the following error
"systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid
argument"
* bug is described at
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1581864/comments/3
as “racing” between CPU and daemon, so “artificial” delay is
implemented at starting
* steps proposed by https://launchpad.net/~sdeziel overrided the error
mkdir /etc/systemd/system/nginx.service.d
printf “[Service]\nExecStartPost=/bin/sleep 0.1\n” >
/etc/systemd/system/nginx.service.d/override.conf
systemctl daemon-reload
systemctl restart nginx
systemctl status nginx
* we use nginx at production server which is VMware virtual
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 79
Model name: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
Stepping: 1
CPU MHz: 2197.455
BogoMIPS: 4394.91
Hypervisor vendor: VMware
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 25600K
NUMA node0 CPU(s): 0
-- System Information:
Debian Release: 8.9
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages nginx depends on:
ii nginx-full 1.6.2-5+deb8u5
nginx recommends no packages.
nginx suggests no packages.
-- no debconf information
THANK you for your time&energy
Nada
More information about the Pkg-nginx-maintainers
mailing list