[Icecast] Icecast locks with WARN connection/_accept_connection accept() failed with error 24: Too many open files

Joel Ebel jbebel at ncsu.edu
Wed Jun 1 13:51:18 UTC 2005


My icecast server has been running happily for months now, but just 
yesterday it locked up, chewing up all the cpu time it could find, and 
not allowing connections.  The last snippet of the error log shows this:

[2005-06-01  09:36:13] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:36:15] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:36:18] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:36:19] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:36:28] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:36:43] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:36:45] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:37:13] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:37:15] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:37:43] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:37:45] WARN connection/_accept_connection accept() 
failed with error 24: Too many open files
[2005-06-01  09:37:53] INFO format-mp3/mp3_get_no_meta End of stream 
/outofservicehq
[2005-06-01  09:37:53] INFO source/source_shutdown Source 
"/outofservicehq" exiting
[2005-06-01  09:37:53] INFO format-mp3/mp3_get_no_meta End of stream 
/outofservicemq
[2005-06-01  09:37:53] INFO source/source_shutdown Source 
"/outofservicemq" exiting
[2005-06-01  09:38:56] INFO sighandler/_sig_die Caught signal 15, 
shutting down...
[2005-06-01  09:39:58] INFO sighandler/_sig_die Caught signal 15, 
shutting down...
[2005-06-01  09:40:10] INFO sighandler/_sig_die Caught signal 15, 
shutting down...


The error had repeated itself for almost 24 hours before I noticed it. 
Obviously it had too many files open, but I can't account for how.  The 
logs before the repeating errors look completely normal.  I tried 
shutting down the streams, which didn't fix it, so I sent it some kills, 
and it didn't die.  I had to kill -9 it.  Once it restarted it was fine. 
  Is there some leak preventing icecast from running indefinitely?  Or 
will I just need to restart it every few months when this happens again? 
  Has anyone else seen this happen?

Joel



More information about the Icecast mailing list