Lots of error messages in log file. Ignore?

84 views
Skip to first unread message

Fabian Bernhard

unread,
Jan 16, 2014, 12:28:00 PM1/16/14
to turn-server-project...@googlegroups.com
Dear list,

I see a lot of error messages in my log file about “trying to bind to port and fail”, see attached logs. Can I ignore these error messages or have I configured something wrong?

The start script returns without error and a HTTP request to port 443 also returns “TURN Server”. 

I have installed the turnserver-3.2.1.4-CentOS6-x86_64.tar.gz binaries on my own CentOS 6.5 server, not Amazon. The following ports are open both for TCP and UDP:

443
3478-3479
32768-65535

There are no other network services running on that machine (except sshd). I have verified that the TURN server was only started once.

I start the server like this:

$ turnserver -o -c /etc/turnserver/turnserver.conf

where the configuration file contains this:

$ cat /etc/turnserver/turnserver.conf | grep -v ^# | grep -v ^$
listening
-port=443
listening
-ip=XX.XX.XX.XX
listening
-ip=YY.YY.YY.YY
verbose
fingerprint
lt
-cred-mech
use-auth-secret
static-auth-secret=mysecret
realm
=myserver.com
cert
=/etc/ssl/turn_server_cert.pem
pkey
=/etc/ssl/turn_server_pkey.pem
no-stdout-log
log
-file=/var/log/turnserver/turnserver.log
proc
-user=turnserver

I am intending to use the TURN server for a WebRTC application where all communication between the client and the TURN server should be encrypted, i.e. I will only provide the stuns and turns URI’s to the client.

Thank you for your assistance!


turn_13010_2014-01-16.log
turnserver_2014-01-16.log

Oleg Moskalenko

unread,
Jan 16, 2014, 1:33:44 PM1/16/14
to Fabian Bernhard, turn-server-project...@googlegroups.com
That look like 6.5 binaries are running on 6.4 cents. Two systems are different and must have different libraries. Run the command uname -a and post the result here.

Another test is to run:

$ grep -n REUSEPORT /use/include/*

You can start the turn server in older mode with --ne=2 option, it will remove the error messages. But you have to drill down to the problem whether you are running the right binaries. Otherwise the performance will suffer.

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "TURN Server project rfc5766-turn-server" 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/groups/opt_out.
<turn_13010_2014-01-16.log>
<turnserver_2014-01-16.log>

Fabian Bernhard

unread,
Jan 16, 2014, 1:45:59 PM1/16/14
to turn-server-project...@googlegroups.com, Fabian Bernhard
That look like 6.5 binaries are running on 6.4 cents. Two systems are different and must have different libraries. Run the command uname -a and post the result here.

$ uname -a
Linux 2.6.32-042stab084.17 #1 SMP Fri Dec 27 17:10:20 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/centos-release
CentOS release 6.5 (Final)
 
Another test is to run:

$ grep -n REUSEPORT /use/include/*

grep -n REUSEPORT /usr/include/*
$

 
You can start the turn server in older mode with --ne=2 option, it will remove the error messages. But you have to drill down to the problem whether you are running the right binaries. Otherwise the performance will suffer.

I'd rather like to find the problems and a solution than running in an older mode ;-)

Thank you!

Oleg Moskalenko

unread,
Jan 16, 2014, 1:55:54 PM1/16/14
to Fabian Bernhard, turn-server-project...@googlegroups.com
Fabian, how did you install your system ? As I said, this is not a 6.5 system. The kernel 2.6.32-042 is VERY old. The real CentOS 6.5 must have a kernel 2.6.32-431 or newer. Your system I'd say is 6.0 or 6.1. Or you are using some installation options which I am not aware of.

Tell me please the story of your system, how it was installed.

Just go to the CentOS site, download their ISO installation image for 6.5, and install it. Or you can try:

$ sudo yum update

to update to the most recent version.

Or use TURN server for CentOS 6.4 or older, or use --ne=2 option. But if you want the best performance, you have to use kernel 2.6.32.431 or newer with TURN Server for CentOS 6.5.

Regards,
Oleg



Fabian Bernhard

unread,
Jan 16, 2014, 11:13:36 PM1/16/14
to turn-server-project...@googlegroups.com, Fabian Bernhard
Fabian, how did you install your system ? As I said, this is not a 6.5 system. The kernel 2.6.32-042 is VERY old. The real CentOS 6.5 must have a kernel 2.6.32-431 or newer. Your system I'd say is 6.0 or 6.1. Or you are using some installation options which I am not aware of.


As you have rightly pointed out, the kernel is not the one shipped with the official CentOS 6.5 distribution. We use a Parallels Virtuozo image which strangely comes with an old kernel, even though /etc/centos-release says its 6.5. I was not aware of this until now.

As you have recommended, I have installed the binaries for Centos 6.4 (turnserver-3.1.5.1-CentOS6-x86_64.tar.gz) and all error messages are gone.

Thank you very much for your assistance, Oleg!

Oleg Moskalenko

unread,
Jan 17, 2014, 10:26:45 AM1/17/14
to turn-server-project...@googlegroups.com, Fabian Bernhard
Fabian, downgrading is an OK solution, but as you have a multi-CPU system, with a pre-CentOS-6.5 kernel you are not using the full potential of your system for UDP processing.

If possible, upgrade to 6.5 kernel. It will give you (together with 6.5 TURN server image) much better UDP processing performance. With 6.5, it uses a different architecture, that is truly multi-threaded.

Another way to engage multiple CPUs for UDP processing, with older kernels - put TURN server in the "BSD mode" by option --ne=1. But it has a tradeoff - it will be using two times more sockets.

TCP processing is OK in all kernels, it is always multi-threaded (but still it is better in 6.5).

Regards,
Oleg
Reply all
Reply to author
Forward
0 new messages