wrong user account while user is defined in the config file

889 views
Skip to first unread message

Gekke HarryB

unread,
Sep 26, 2014, 8:18:30 AM9/26/14
to turn-server-project...@googlegroups.com
Hi,

I am trying to run a TURN server on my CentOS 6.5 virtual machine using putty and the installation and everything went all well.
The problem that I'm having is that I defined a user in the "turnserver.conf" file as "user=test:test"

As I try to boot the server with the command
turnserver -V -a -L 192.168.26.131 -X 192.168.26.131 -E 127.0.0.1 -f -r <webserver address> -v -o -u test -p test

 it gives me the error: ERROR: Wrong user account: test.
And I can't even get the tutorial that I followed here to work when I try to run the turnserver with username/password.

However, if I try to run the server without username/password it looks as if it runs/starts properly but when I test it with the command 
turnutils_uclient -v 192.168.26.131
 
it gives me the result: 
0: IPv4. Connected to: 192.168.26.131:3478
0: allocate sent

but I don't receive anything anymore, I used to get another result for the same command which was:
0: IPv4. Connected to: 192.168.26.131:3478
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: allocate sent
0: allocate response received:
0: Cannot complete Allocation
0: ERROR: Cannot complete Allocation

I am completely at loss on why it won't start with username/password and why when I run it without username/password it still doesn't respond or gives an allocation error.

I have a feeling that I messed something up in the settings.

I've changed the following in the settings file
ne=2
listening
-ip=192.168.26.131
listening
-port=3478
user
=test:test
I've set "ne=2" for binaries.

I have the feeling that the problem is caused by something silly and that I just can't see it.

Kind regards,
Gekke Harry

Oleg Moskalenko

unread,
Sep 29, 2014, 7:14:42 PM9/29/14
to turn-server-project...@googlegroups.com
There are 4 (four) problems in your setup:

1) You do not have to define the user(s) in both file and in the command line. Choose a single place to define the users.
2) If you choose the file, then there is a separate recommended file for the users, turnuserdb.conf.
3) The command line -u option format is -u username:password.
4) The command line option -p means the "listening port", not the password. Different users must have different passwords, so no single password option is available, and each user is coupled with its password.

Oleg
Message has been deleted

Ramya Raj

unread,
Dec 8, 2018, 3:13:52 AM12/8/18
to TURN Server (Open-Source project)
Hi Oleg I'm getting error like this. Any help?

Hey Hi Misi,
Now I'm currently running this project on Centos Linux. I have followed all the steps
which is given in the link for centos.

and finally for running the command
I have used this.
turnserver -v -r  ip:port -a -b turnuserdb.conf -c turnserver.conf -u turn-username:password

but after that I'm getting
**Cannot bind local socket to addr:PERMISSION DENIED like that I'm getting.**

Any help?


Reply all
Reply to author
Forward
0 new messages