Copterfly / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

Stale UNIX socket files will prevent mod_wsgi starting up in daemon mode. #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When running mod_wsgi daemon mode, UNIX sockets are created for communicating 
between 
Apache child processes and daemon processes. When Apache is shutdown normally 
the UNIX 
sockets would be removed. If however the Apache parent process crashes, or the 
machine itself 
crashes, then the UNIX socket files wouldn't be removed.

This can cause an issue if when Apache is started at a later time , possibly 
after a reboot, and the 
same UNIX process ID is used for the Apache parent process. In particular, the 
stale UNIX socket 
file will exists and mod_wsgi will not be able to create new UNIX socket in its 
place.

Solution would be to remove any existing UNIX socket file before creating it.

For original report see:

  http://groups.google.com/group/modwsgi/browse_frm/thread/9893f991ce831b64

Original issue reported on code.google.com by Graham.Dumpleton@gmail.com on 26 Apr 2008 at 3:02

GoogleCodeExporter commented 8 years ago
Fix should possibly be back ported to mod_wsgi version 2.X branch for inclusion 
in 2.1.

Original comment by Graham.Dumpleton@gmail.com on 26 Apr 2008 at 3:03

GoogleCodeExporter commented 8 years ago

Original comment by Graham.Dumpleton@gmail.com on 7 Jul 2008 at 2:36

GoogleCodeExporter commented 8 years ago
Fixed in revision 942 of trunk for 3.0.

Should still consider it for backporting later on if urgent need to bring out 
2.2.

Original comment by Graham.Dumpleton@gmail.com on 7 Jul 2008 at 8:09

GoogleCodeExporter commented 8 years ago
Backported to 2.2 in revision 967.

Original comment by Graham.Dumpleton@gmail.com on 6 Aug 2008 at 10:34

GoogleCodeExporter commented 8 years ago
Version 2.2 released with change.

Original comment by Graham.Dumpleton@gmail.com on 24 Aug 2008 at 5:55