Giorgio Incantalupo
2007-Feb-15 06:57 UTC
[asterisk-users] asterisk freeze due to "too many open file" error
Hi, my Asterisk 1.2.9.1 suddenly freezed ("stop now" did not work!!) . I found the following errors inside /var/log/asterisk/message: Feb 14 14:55:41 ERROR[11273] rtp.c: Unable to allocate socket: Too many open files Feb 14 14:55:41 WARNING[11273] chan_sip.c: Unable to create RTP audio session: Too many open files Feb 14 14:55:43 WARNING[11273] acl.c: Cannot create socket Feb 14 14:55:46 WARNING[11273] acl.c: Cannot create socket Feb 14 14:56:01 WARNING[11283] chan_misdn.c: Write returned <=0 (err=Destination address required) Feb 14 14:59:56 WARNING[13725] res_agi.c: unable to create fromast pipe: Too many open files Feb 14 15:01:21 WARNING[13729] res_agi.c: unable to create fromast pipe: Too many open files Feb 14 15:01:56 WARNING[13744] res_agi.c: Unable to create toast pipe: Too many open files Feb 14 15:01:56 ERROR[13744] cdr_custom.c: Unable to re-open master file /var/log/asterisk/cdr-custom/Master.csv : Too many open files Feb 14 15:01:56 ERROR[13744] cdr_csv.c: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : Too many open files Feb 14 15:02:18 WARNING[13747] res_agi.c: Unable to create toast pipe: Too many open files Feb 14 15:02:18 ERROR[13747] cdr_custom.c: Unable to re-open master file /var/log/asterisk/cdr-custom/Master.csv : Too many open files Feb 14 15:02:18 ERROR[13747] cdr_csv.c: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : Too many open files Considered that the result of ulimit is "ulimited", is there anybody who knows how to avoid these errors? TIA Giorgio Incantalupo
Tzafrir Cohen
2007-Feb-15 07:10 UTC
[asterisk-users] asterisk freeze due to "too many open file" error
On Thu, Feb 15, 2007 at 02:57:59PM +0100, Giorgio Incantalupo wrote:> Hi, > my Asterisk 1.2.9.1 suddenly freezed ("stop now" did not work!!)Could you kill the asterisk process directly? -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
Jason Fuermann
2007-Feb-15 07:29 UTC
[asterisk-users] asterisk freeze due to "too many open file" error
we have this problem. In our case it was due to the voice mail app; it was failing to unlink files in memory when creating mp3s. Not sure what your specific problem might be Giorgio Incantalupo wrote:> Hi, > my Asterisk 1.2.9.1 suddenly freezed ("stop now" did not work!!) . I > found the following errors inside /var/log/asterisk/message: > > Feb 14 14:55:41 ERROR[11273] rtp.c: Unable to allocate socket: Too > many open files > Feb 14 14:55:41 WARNING[11273] chan_sip.c: Unable to create RTP audio > session: Too many open files > Feb 14 14:55:43 WARNING[11273] acl.c: Cannot create socket > Feb 14 14:55:46 WARNING[11273] acl.c: Cannot create socket > Feb 14 14:56:01 WARNING[11283] chan_misdn.c: Write returned <=0 > (err=Destination address required) > Feb 14 14:59:56 WARNING[13725] res_agi.c: unable to create fromast > pipe: Too many open files > Feb 14 15:01:21 WARNING[13729] res_agi.c: unable to create fromast > pipe: Too many open files > Feb 14 15:01:56 WARNING[13744] res_agi.c: Unable to create toast pipe: > Too many open files > Feb 14 15:01:56 ERROR[13744] cdr_custom.c: Unable to re-open master > file /var/log/asterisk/cdr-custom/Master.csv : Too many open files > Feb 14 15:01:56 ERROR[13744] cdr_csv.c: Unable to re-open master file > /var/log/asterisk//cdr-csv//Master.csv : Too many open files > Feb 14 15:02:18 WARNING[13747] res_agi.c: Unable to create toast pipe: > Too many open files > Feb 14 15:02:18 ERROR[13747] cdr_custom.c: Unable to re-open master > file /var/log/asterisk/cdr-custom/Master.csv : Too many open files > Feb 14 15:02:18 ERROR[13747] cdr_csv.c: Unable to re-open master file > /var/log/asterisk//cdr-csv//Master.csv : Too many open files > > Considered that the result of ulimit is "ulimited", is there anybody > who knows how to avoid these errors? > > TIA > > Giorgio Incantalupo > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Henry J. Cobb
2007-Feb-15 11:10 UTC
[asterisk-users] asterisk freeze due to "too many open file" error
> If the system is "running away" then I'd suggest looking deeper into it- is it opening a file and never closing it again, etc. Hard to track down unless you have a good knowlege of what's running, etc. lsof -p `ps h -C asterisk -o pid | head -1` | grep -Fc '/dev/zap/timer' 120 You have to open your own timer device over one hundred times in the same process? -HJC