Apache mod_wsgi python server is giving 503

67 views
Skip to first unread message

Darshan Patil

unread,
Oct 18, 2023, 9:34:06 PM10/18/23
to modwsgi
Hi,

I have my apache server where I am using mod_wsgi to run python endpoints which serve images from the server. There are lot of requests hitting the server and I started seeing errors like following:

Python has shutdown.

Connection closed to child with abortive shutdown.

Resource temporarily unavailable: mod_wsgi (pid=1211): Unable to connect to WSGI daemon process 'app' on '/run/httpd/wsgi.10.0.1.sock' after multiple attempts as listener backlog limit was exceeded or the socket does not exist.

I am not sure what is going on here, can anybody has clue what the problem could be? And how can I scale with mod_wsgi and python.

Thanks,
Darshan

Graham Dumpleton

unread,
Oct 18, 2023, 9:42:27 PM10/18/23
to mod...@googlegroups.com
Can you supply the full log messages below from Apache error log with any prefixes so I can identify what output them.

The mod_wsgi code does emit a message "Python has shutdown", but doesn't emit a message "Connection closed to child with abortive shutdown".

So is important that can see the full log messages include any date/time stamp and prefixes. Any other messages around that time would also be useful.

If I had to guess, you are using some third party package for Python which assumes that if it has an internal error message that it can force a process shutdown using a signal or call of C level exit() function.

Also, although you see the messages "Resource temporarily unavailable" are they transient and after a moment requests start to be processed again?

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/e800f19c-3946-4749-8464-96364ddba0ccn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages