508 Cannot create a socket

1,697 views
Skip to first unread message

Gustavo Garcia

unread,
Nov 19, 2014, 2:54:10 AM11/19/14
to turn-server-project...@googlegroups.com
I'm using turnutils_uclient to monitor my TURN server and in some cases I'm getting a 508 error.   The file descriptors limit looks correct and very high in my server and as soon as I restart the process the problem goes away.

In which cases is the turnserver could fail to create a socket?  Is there a limit of sockets per source IP?

Version 3.2.3.7
Logs:
  TurnServer    create_relay_ioa_sockets: no available ports 3
  TurnServer    session: 020000000000025900, user: , method: ALLOCATE, result: 508, reason: Cannot create socket

Thx a lot

Oleg Moskalenko

unread,
Nov 19, 2014, 12:41:33 PM11/19/14
to turn-server-project...@googlegroups.com
Gustavo, try to upgrade to the latest version (3.2.5.1). A number of bugs and resource leaks have been fixed, since 3.2.3.* versions.

Also, check that there is no other program on the system that hogs the available ports.

Regards,
Oleg

Gustavo García

unread,
Jan 15, 2015, 5:25:34 PM1/15/15
to turn-server-project...@googlegroups.com
We upgraded to 3.2.5.1 and we are still having the same issue.   Any other idea or way to debug it?

Thx

Oleg Moskalenko

unread,
Jan 15, 2015, 5:28:41 PM1/15/15
to Gustavo García, turn-server-project...@googlegroups.com
In your first message, the server is saying that there is a problem "no available ports". That means that you are having more sessions than you configured ports on the TURN server. Either configure more ports, or add more relay IP addresses, or decrease the number of sessions,

--
You received this message because you are subscribed to the Google Groups "TURN Server (Open-Source project)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc57...@googlegroups.com.
To post to this group, send email to turn-server-project...@googlegroups.com.
Visit this group at http://groups.google.com/group/turn-server-project-rfc5766-turn-server.
For more options, visit https://groups.google.com/d/optout.

Remya Das

unread,
Mar 3, 2015, 11:30:42 PM3/3/15
to turn-server-project...@googlegroups.com
Hi, I'm also facing the same issue.
Please let me know how this is fixed.

Oleg Moskalenko

unread,
Mar 4, 2015, 1:50:34 AM3/4/15
to Remya Das, turn-server-project...@googlegroups.com
The problem is that there are more sessions than the relay ports
available. You have to:

1) check the number of your sessions (with telnet).
2) check the number of allowed open file descriptors. When the TURN
server starts, it is telling you how many file descriptors and
sessions it can support. You may have to re-configure the number of
allowed file descriptors in your system config files and reboot the
system.
3) you may have to re-configure the relay ports range of the TURN
server, if the port range is the limitation factor.

Oleg
Reply all
Reply to author
Forward
0 new messages