apache 2.4.53 and PID issue

273 views
Skip to first unread message

Massimo S.

unread,
Oct 3, 2022, 9:15:00 AM10/3/22
to apa...@googlegroups.com
Hi Paul,

Server Version: Apache/2.4.53 (OS/2) OpenSSL/1.1.1o
Server MPM: mpmt_os2
Server Built: May 11 2022 13:27:04

apache has the issue that do not erase the .PID
and sometimes restarting it face issues (and don't restart)

this situation is becoming a problem since sometimes i've to clear the \apache\logs dir from a lot of
.pid.something files and restart apache manually, since it refuse to start


e.g.

[Mon Oct 03 14:50:19.527000 2022] [mpm_mpmt_os2:notice] [pid 68:tid 1] (OS 10035)Resource temporarily
unavailable: apr_socket_accept

[Mon Oct 03 14:53:08.258000 2022] [core:error] [pid 65:tid 1] (13)Permission denied: AH00095: failed to remove
PID file D:/apache/logs/httpd.pid

[Mon Oct 03 14:53:08.258000 2022] [mpm_mpmt_os2:notice] [pid 65:tid 1] AH00201: caught SIGTERM, shutting down


[Mon Oct 03 14:53:12.196000 2022] [core:warn] [pid 164:tid 1] AH00098: pid file D:/apache/logs/httpd.pid
overwritten -- Unclean shutdown of previous Apache run?

[Mon Oct 03 14:53:12.198000 2022] [core:error] [pid 164:tid 1] (OS 32)SYS0032: The process cannot access the
file because it is being used by another process. : AH10231: httpd.exe: Failed creating pid file
D:/apache/logs/httpd.pid.jxsD5r

[Mon Oct 03 14:55:32.502000 2022] [mpm_mpmt_os2:notice] [pid 200:tid 1] AH00206: Apache/2.4.53 (OS/2)
OpenSSL/1.1.1q PHP/7.4.32 configured -- resuming normal operations


[Mon Oct 03 14:55:44.641000 2022] [mpm_mpmt_os2:notice] [pid 203:tid 1] (OS 10035)Resource temporarily
unavailable: apr_socket_accept

[Mon Oct 03 14:56:42.447000 2022] [mpm_mpmt_os2:notice] [pid 206:tid 1] (OS 10035)Resource temporarily
unavailable: apr_socket_accept

[Mon Oct 03 14:57:00.541000 2022] [mpm_mpmt_os2:notice] [pid 207:tid 1] (OS 10035)Resource temporarily
unavailable: apr_socket_accept

[Mon Oct 03 14:58:39.121000 2022] [core:error] [pid 200:tid 1] (13)Permission denied: AH00095: failed to
remove PID file D:/apache/logs/httpd.pid


massimo

wkit...@windstream.net

unread,
Oct 3, 2022, 2:09:07 PM10/3/22
to apa...@googlegroups.com
On 10/3/22 9:14 AM, Massimo S. wrote:
> Hi Paul,
>
> Server Version: Apache/2.4.53 (OS/2) OpenSSL/1.1.1o
> Server MPM: mpmt_os2
> Server Built: May 11 2022 13:27:04
>
> apache has the issue that do not erase the .PID
> and sometimes restarting it face issues (and don't restart)

FWIW: when i was running the OS/2 Apache web server(s) and had this happen, i
switched to using a script to start apache... one of the first things that
script did was to look for and delete any leftover pid files...


--
NOTE: No off-list assistance is given without prior approval.
*Please keep mailing list traffic on the list where it belongs!*

Steven Levine

unread,
Oct 3, 2022, 5:02:37 PM10/3/22
to apa...@googlegroups.com
In <67ec9a19-fb61-7926...@ecomstation.it>, on 10/03/22
at 03:14 PM, "Massimo S." <m...@ecomstation.it> said:

Hi Massimo,
What is killing httpd and restarting the new instance? Your fault daemon?
If so, you probably need to delay the restart until the httpd instance you
killed is completely gone from the system and you need to allow the system
some time to close the pid file.

Steven

--
----------------------------------------------------------------------
"Steven Levine" <ste...@earthlink.net> Warp/DIY/BlueLion etc.
www.scoug.com www.arcanoae.com www.warpcave.com
----------------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages