[asterisk-bugs] [JIRA] (ASTERISK-19916) Asterisk gets exhausted of all the file resources

Brian (JIRA) noreply at issues.asterisk.org
Fri Dec 7 05:04:45 CST 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-19916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=200516#comment-200516 ] 

Brian commented on ASTERISK-19916:
----------------------------------

Hi Guys,

This just happened to me today on version 1.8.12.0

Literally thousands of this line in log file:

[Dec  7 10:32:55] ERROR[23967] res_timing_timerfd.c: Call to timerfd_gettime() error: Bad file descriptor
[Dec  7 10:32:55] ERROR[23967] res_timing_timerfd.c: Call to timerfd_gettime() error: Bad file descriptor
[Dec  7 10:32:55] ERROR[23967] res_timing_timerfd.c: Call to timerfd_gettime() error: Bad file descriptor
[Dec  7 10:32:55] ERROR[23967] res_timing_timerfd.c: Call to timerfd_gettime() error: Bad file descriptor
[Dec  7 10:32:55] ERROR[23967] res_timing_timerfd.c: Call to timerfd_gettime() error: Bad file descriptor
[Dec  7 10:32:55] ERROR[23967] res_timing_timerfd.c: Call to timerfd_gettime() error: Bad file descriptor
[Dec  7 10:32:55] ERROR[23967] res_timing_timerfd.c: Call to timerfd_gettime() error: Bad file descriptor
[Dec  7 10:32:55] ERROR[23967] res_timing_timerfd.c: Call to timerfd_gettime() error: Bad file descriptor


Then a segfault.

[1459311.730565] asterisk[23967]: segfault at b583eeb8 ip b767bcfa sp b583eebc error 6 in libc-2.11.3.so[b763f000+140000]

The logfile leading up to the event:

Dec  7 10:24:01] WARNING[23940] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:24:01] WARNING[23940] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:24:01] WARNING[23940] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:24:11] WARNING[23941] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:24:11] WARNING[23941] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:24:11] WARNING[23941] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:24:20] WARNING[23942] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:24:20] WARNING[23942] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:24:20] WARNING[23942] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:25:18] WARNING[23947] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:25:18] WARNING[23947] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:25:18] WARNING[23947] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:25:28] WARNING[23948] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:25:28] WARNING[23948] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:25:28] WARNING[23948] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:25:35] WARNING[23949] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:25:35] WARNING[23949] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:25:35] WARNING[23949] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:26:04] WARNING[23960] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:26:04] WARNING[23960] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:26:04] WARNING[23960] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:26:10] WARNING[23961] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:26:10] WARNING[23961] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:26:10] WARNING[23961] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:26:25] ERROR[23962] acl.c: Cannot create socket
[Dec  7 10:26:25] ERROR[23962] res_timing_timerfd.c: Failed to create timerfd timer: Too many open files
[Dec  7 10:26:25] WARNING[23962] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:26:25] WARNING[23962] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:26:25] WARNING[23962] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:26:25] WARNING[23930] res_rtp_asterisk.c: RTP Read error: Socket operation on non-socket. Hanging up.
[Dec  7 10:26:25] ERROR[23930] cdr_sqlite.c: cdr_sqlite: database disk image is malformed
[Dec  7 10:26:36] WARNING[23964] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:26:36] WARNING[23964] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:26:36] WARNING[23964] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:26:37] ERROR[23939] cdr_sqlite.c: cdr_sqlite: database disk image is malformed
[Dec  7 10:28:36] WARNING[23966] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:28:36] WARNING[23966] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:28:36] WARNING[23966] app_dial.c: Unable to create channel of type 'SIP' (cause 0 - Unknown)
[Dec  7 10:32:08] WARNING[23967] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:32:08] WARNING[23967] chan_local.c: Unable to allocate channel structure(s)
[Dec  7 10:32:08] WARNING[23967] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:32:08] WARNING[23967] chan_local.c: Unable to allocate channel structure(s)
[Dec  7 10:32:20] WARNING[23967] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:32:20] WARNING[23967] chan_local.c: Unable to allocate channel structure(s)
[Dec  7 10:32:20] WARNING[23967] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:32:20] WARNING[23967] chan_local.c: Unable to allocate channel structure(s)
[Dec  7 10:32:25] ERROR[23967] res_timing_timerfd.c: Failed to create timerfd timer: Too many open files
[Dec  7 10:32:25] WARNING[23967] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:32:25] WARNING[23967] chan_local.c: Unable to allocate channel structure(s)
[Dec  7 10:32:25] WARNING[23967] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:32:25] WARNING[23967] chan_local.c: Unable to allocate channel structure(s)
[Dec  7 10:32:25] WARNING[23963] res_rtp_asterisk.c: RTP Read error: Bad file descriptor. Hanging up.
[Dec  7 10:32:25] ERROR[23963] cdr_sqlite.c: cdr_sqlite: database disk image is malformed
[Dec  7 10:32:55] ERROR[2018] res_timing_timerfd.c: Failed to create timerfd timer: Too many open files
[Dec  7 10:32:55] WARNING[2018] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
[Dec  7 10:32:55] WARNING[2018] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Dec  7 10:32:55] NOTICE[2018] chan_sip.c: Unable to create/find SIP channel for this INVITE
[Dec  7 10:32:55] ERROR[23967] res_timing_timerfd.c: Call to timerfd_gettime() error: Bad file descriptor

There was no load on this box at the time. 1 active call.

OS is Debian squeeze latest 2.6.32-5-686

PLease let me know if I can do anything else.

Brian

                
> Asterisk gets exhausted of all the file resources
> -------------------------------------------------
>
>                 Key: ASTERISK-19916
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19916
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 1.8.11.1
>         Environment: CentOS 6 32 bit
>            Reporter: Jim Boykin
>            Assignee: Rusty Newton
>         Attachments: 270512_Jim_Boykin_netstatoutput.txt
>
>
> Asterisk gets exhausted of all the file resources, CPU is at 100% after following since it's in tight loop. Only way to recover is to kill asterisk. 
> [May 26 05:14:12] WARNING[19323] asterisk.c: Accept returned -1: Too many open files
> [May 26 05:14:12] WARNING[19323] asterisk.c: Accept returned -1: Too many open files
> [May 26 05:14:12] WARNING[19323] asterisk.c: Accept returned -1: Too many open files
> [EDIT - Rusty Newton - 5/30/12 - removed a few dozen redundant log entries that didn't add anything to report. Messages above happen many times...]
> However above is not the only place - I can see many related errors from the log
> [May 23 20:04:35] ERROR[20788] res_timing_timerfd.c: Failed to create timerfd timer: Too many open files
> [May 23 20:38:31] WARNING[20885] channel.c: Channel allocation failed: Can't create alert pipe! Try increasing max file descriptors with ulimit -n
> [May 23 20:38:31] WARNING[20885] chan_network.c: Unable to allocate channel structure
> [May 24 00:11:48] ERROR[19365] cdr_csv.c: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : Too many open files
> [May 24 00:13:26] WARNING[19369] res_rtp_asterisk.c: Unable to allocate RTCP socket: Too many open files

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list