apache error: (9)Bad file descriptor: apr_socket_accept: (client socket)

i am seeing the following in my apache error logs. apache goes down. i have to manually stop/start to regain function:

[Thu Nov 19 17:02:30 2009] [notice] Graceful restart requested, doing restart

[Thu Nov 19 17:02:30 2009] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)

[Thu Nov 19 17:02:30 2009] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)

[Thu Nov 19 17:02:30 2009] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)

[Thu Nov 19 17:02:30 2009] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)

[Thu Nov 19 17:02:30 2009] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)

i know “graceful restart” is not handled well by apache, but why is a graceful restart even being done? 64-bit CentOS 5 w/ 4.1.0 panel, Server Version: Apache/2.2.8 (Unix) DAV/2 PHP/5.1.6 mod_ssl/2.2.8 OpenSSL/0.9.8e-fips-rhel5 mod_watch/4.3

Did anybody come out with a solution for this?

I’m getting the same problem when connecting from the HostBill software.

Thanks

hi,

i have the same problem with one server.

help please

This is what did the trick for me.

To avoid “Bad file descriptor: apr_socket_accept: (client socket)” do the following:

Edit file: /usr/local/interworx/iworx.ini

and change the line:
force_graceful=“0”
to
force_graceful=“1”

Hope it helps you.

Regards,

Rodrigo

Glad I found this, it also resolved an issue I had where HostBill orders would get stuck in the ‘Pending’ stage, after adding the account to Interworx!

Thanks!

Jon