Cannot complete allocation error when running CoTurn test scripts? (Relay sometimes drops connection)

745 views
Skip to first unread message

NF

unread,
Jun 8, 2016, 9:36:36 AM6/8/16
to TURN Server (Open-Source project)
Hi,

I'm using coturn to enable VOIP calling between two android devices on my own server. Currently I can set the coturn relay up and sometimes it recognizes that one of my devices is attempting to connect and binds the packet, but has no where to send it (telling me the relay isn't working entirely). I decided to try out the coturn test scripts outlined under section X at this link: https://github.com/coturn/coturn/blob/master/INSTALL 
The scripts all give me a "Cannot complete Allocation" error, but that's all that prints. Tracing back the coturn code tells me that possibly a port is being blocked, but I'm not sure. Here is my coturn log output when I start the server (IP redacted).


0: 
Max number of open files/sockets allowed for this process: 4096
0: 
Due to the open files/sockets limitation,
max supported number of TURN Sessions possible is: 2000 (approximately)
0: 

==== Show him the instruments, Practical Frost: ====

0: TLS supported
0: DTLS supported
0: DTLS 1.2 is not supported
0: TURN/STUN ALPN is not supported
0: Third-party authorization (oAuth) supported
0: GCM (AEAD) supported
0: OpenSSL compile-time version: OpenSSL 1.0.1f 6 Jan 2014
0: 
0: SQLite is not supported
0: Redis is not supported
0: PostgreSQL is not supported
0: MySQL is not supported
0: MongoDB is not supported
0: 
0: Default Net Engine version: 3 (UDP thread per CPU core)

=====================================================

0: Config file found: /etc/turnserver.conf
0: Config file found: /etc/turnserver.conf
0: Domain name: 
0: Default realm: 1.1.1.1
0: NO EXPLICIT LISTENER ADDRESS(ES) ARE CONFIGURED
0: ===========Discovering listener addresses: =========
0: Listener address to use: 127.0.0.1
0: Listener address to use: 1.1.1.1
0: Listener address to use: ::1
0: =====================================================
0: Total: 1 'real' addresses discovered
0: =====================================================
0: NO EXPLICIT RELAY ADDRESS(ES) ARE CONFIGURED
0: ===========Discovering relay addresses: =============
0: Relay address to use: 1.1.1.1
0: Relay address to use: ::1
0: =====================================================
0: Total: 2 relay addresses discovered
0: =====================================================
0: pid file created: /var/run/turnserver.pid
0: IO method (main listener thread): epoll (with changelist)
0: Wait for relay ports initialization...
0:   relay 1.1.1. initialization...
0:   relay 1.1.1.1 initialization done
0:   relay ::1 initialization...
0:   relay ::1 initialization done
0: Relay ports initialization done
0: IO method (general relay thread): epoll (with changelist)
0: turn server id=0 created
0: Cannot create TLS listener
0: IPv4. TCP listener opened on : 127.0.0.1:443
0: Cannot create TLS listener
0: IPv4. TCP listener opened on : 1.1.1.1:443
0: Cannot create TLS listener
0: IPv6. TCP listener opened on : ::1:443
0: IO method (general relay thread): epoll (with changelist)
0: turn server id=1 created
0: Cannot create TLS listener
0: IPv4. TCP listener opened on : 127.0.0.1:443
0: Cannot create TLS listener
0: IPv4. TCP listener opened on : 1.1.1.1:443
0: Cannot create TLS listener
0: IPv6. TCP listener opened on : ::1:443
0: IO method (general relay thread): epoll (with changelist)
0: turn server id=2 created
0: Cannot create TLS listener
0: IPv4. TCP listener opened on : 127.0.0.1:443
0: Cannot create TLS listener
0: IPv4. TCP listener opened on : 1.1.1.1:443
0: Cannot create TLS listener
0: IPv6. TCP listener opened on : ::1:443
0: IO method (general relay thread): epoll (with changelist)
0: turn server id=3 created
0: IPv4. UDP listener opened on: 127.0.0.1:3478
0: Cannot create TLS listener
0: IPv4. UDP listener opened on: 127.0.0.1:443
0: IPv4. TCP listener opened on : 127.0.0.1:443
0: Cannot create TLS listener
0: IPv4. UDP listener opened on: 1.1.1.1:3478
0: IPv4. TCP listener opened on : 1.1.1.1:443
0: IPv4. UDP listener opened on: 1.1.1.1:443
0: Cannot create TLS listener
0: IPv6. TCP listener opened on : ::1:443
0: IPv6. UDP listener opened on: ::1:3478
0: IPv6. UDP listener opened on: ::1:443
0: Total General servers: 4
0: IO method (auth thread): epoll (with changelist)
0: IO method (auth thread): epoll (with changelist)
0: IO method (admin thread): epoll (with changelist)

Let me know if you think you know what the problem might be.

Sachin Mutthe Patil

unread,
Aug 20, 2016, 7:24:00 AM8/20/16
to TURN Server (Open-Source project)
Hi,

I am also facing same problem. But in my case call is connecting but showing black screen for receiver's stream. What could be the solution?

Regards,
Sachin.
Reply all
Reply to author
Forward
0 new messages