jorge-teixeira / doubango

Automatically exported from code.google.com/p/doubango
0 stars 0 forks source link

Too many open files #389

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Unfortunately, we are not entirely sure why this happened, looks like a 
combination of problems outside webrtc2sip caused it to fail.

The DNS on the server failed: 
(we are running with ERROR here, I'll try and run with INFO and see if it 
happens again):

***ERROR: function: "tnet_getaddrinfo()"
file: "src/tnet_utils.c"
line: "928"
MSG: getaddrinfo(family=2, node=xxxxxx.dk and service=5060) failed: [Name or 
service not known]
***ERROR: function: "tnet_sockaddrinfo_init()"
file: "src/tnet_utils.c"
line: "1499"
MSG: getaddrinfo have failed.
***ERROR: function: "tnet_sockaddrinfo_init()"
file: "src/tnet_utils.c"
line: "1499"
MSG: (SYSTEM)NETWORK ERROR ==>Success
***ERROR: function: "tnet_getaddrinfo()"
file: "src/tnet_utils.c"
line: "928"
MSG: getaddrinfo(family=2, node=xxxxxx.dk and service=5060) failed: [Name or 
service not known]
***ERROR: function: "tnet_sockaddrinfo_init()"
file: "src/tnet_utils.c"
line: "1499"
MSG: getaddrinfo have failed.
***ERROR: function: "tnet_sockaddrinfo_init()"
file: "src/tnet_utils.c"
line: "1499"
MSG: (SYSTEM)NETWORK ERROR ==>Success
***ERROR: function: "tnet_getaddrinfo()"
file: "src/tnet_utils.c"
line: "928"
MSG: getaddrinfo(family=2, node=stun.l.google.com and service=19302) failed: 
[Name or service not known]
***ERROR: function: "tnet_sockaddrinfo_init()"
file: "src/tnet_utils.c"
line: "1499"

Then the rest of the webrtc2sip system starts failing:

***ERROR: function: 
"_tnet_ice_ctx_fsm_GatheringHostCandidatesDone_2_GatheringReflexiveCandidates_X_
GatherReflexiveCandidates()"
file: "src/ice/tnet_ice_ctx.c"
line: "1005"
MSG: tnet_sockaddr_init(stun.l.google.com, 19302) failed
***ERROR: function: "tnet_dtls_get_fingerprint()"
file: "src/tls/tnet_dtls.c"
line: "273"
MSG: BIO_read_filename(/root/SSL/Bellmetric/wildcard.bellmetric.net.crt) failed 
[error:20074002:BIO routines:FILE_CTRL:system lib]
***ERROR: function: "tnet_transport_dtls_get_local_fingerprint()"
file: "src/tnet_transport.c"
line: "437"
MSG: Invalid parameter
***ERROR: function: "tnet_dtls_get_fingerprint()"
file: "src/tls/tnet_dtls.c"
line: "273"
MSG: BIO_read_filename(/root/SSL/xxxxxx/wildcard.xxxxxx.net.crt) failed 
[error:02001018:system library:fopen:Too many open files]
***ERROR: function: "tnet_transport_dtls_get_local_fingerprint()"
file: "src/tnet_transport.c"
line: "437"
MSG: Invalid parameter

***ERROR: function: "tnet_transport_prepare()"
file: "src/tnet_transport_poll.c"
line: "484"
MSG: Failed to create new pipes.
***ERROR: function: "tnet_transport_prepare()"
file: "src/tnet_transport_poll.c"
line: "484"
MSG: (SYSTEM)NETWORK ERROR ==>Too many open files
***ERROR: function: "tnet_transport_start()"
file: "src/tnet_transport.c"
line: "294"
MSG: Failed to prepare transport.
***ERROR: function: "trtp_manager_start()"
file: "src/trtp_manager.c"
line: "1385"
MSG: Failed to start the RTP/RTCP transport

Please provide any additional information below.
While the DNS failure is unfortunate, it looks like it causes a cascading 
failure in the webrtc2sip, to me it looks like the file descriptors are not 
being freed correctly, when something goes wrong.

Unfortunately I don't have a INFO level log yet, but I will try and get one, if 
this happens again.

The system had been running for weeks without a hitch, which leads me to 
believe the problem stems from errorhandling. 

Original issue reported on code.google.com by m...@bach-mortensen.dk on 12 Jun 2014 at 8:23

GoogleCodeExporter commented 8 years ago
Please close this again, just went through the code and I can see I've missed 
the r1110 update.

Original comment by m...@bach-mortensen.dk on 12 Jun 2014 at 8:32