Warning: Failed to verify STUN server

826 views
Skip to first unread message

TS

unread,
May 17, 2021, 8:57:01 AM5/17/21
to BigBlueButton-Setup
Hello,
I installed BBB 2.3 with the install.sh  and API demos. This installation was only to test the new version 2.3.
We have already a BBB-Cluster with BBB 2.2, scalelite, greenlight and TURN-Server.
From that existing  installation I copied the turn-stun-servers.xml to the "old" path, later also to /etc/bigbluebutton. After a bbb-conf --restart there is an error message

# Warning: Failed to verify STUN server at  3478 with command
# stunclient --mode full --localport 30000  3478

It seems like my stun/turn-server-configuration is not recognized.

thanks

TS

unread,
May 18, 2021, 12:57:49 PM5/18/21
to BigBlueButton-Setup
Same Problem with BBB 2.3.1

When I use the original turn-stun-servers.xml with STUN-Server "stun:stun.l.google.com:19302", no error is thrown when I restart BBB.
But firefox can't initialize the audio, the echo-test fails with error 1007, when I set  "media.peerconnection.ice.relay_only = true" to force
firefox to use the TURN-server.

daniel1s...@gmail.com

unread,
May 18, 2021, 1:54:42 PM5/18/21
to BigBlueButton-Setup
Turn is not stun.

Is coturn running on correct ports?
You can check it with:
ss -tulpn |grep turnserver

TS

unread,
May 19, 2021, 10:00:28 AM5/19/21
to BigBlueButton-Setup
> Turn is not stun.
My fault, both services run on the same server, so I mixed the words.

> Is coturn running on correct ports?
> ss -tulpn |grep turnserver

I think so. We have 2 stun/turn-servers, which are "included" in a BBB 2.2 cluster with scalelite. This works fine.
Your command gives a lot of open ports, tcp 3478, tcp 443 and many udp ports.

But when I copy the turn-stun-servers.xml from one of this BBB-2.2-server to the single BBB-2.3-server, installed with install.sh,
then the mentioned error comes.

The command suggested in the error "stunclient --mode full --localport 30000  3478" I think is strange.
Between the 2 ports the name of the server is missing. Does this mean, BBB could not read the servers name from the config
or is it just an output-thing

Philipp Memmel

unread,
May 19, 2021, 11:03:48 AM5/19/21
to bigbluebu...@googlegroups.com
For me this looks like a wrong configuration in the
turn-stun-servers.xml or maybe even a working configuration which isn't
correctly parsed by bbb-conf. Can you maybe post yours?

My first guess would be that you didn't put a "stun://" before your stun
server's hostname in the turn-stun-servers.xml? Can you doublecheck?

Pypo
> --
> You received this message because you are subscribed to the Google
> Groups "BigBlueButton-Setup" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bigbluebutton-s...@googlegroups.com
> <mailto:bigbluebutton-s...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bigbluebutton-setup/e4124b50-49bd-4415-8003-06f776ea9783n%40googlegroups.com
> <https://groups.google.com/d/msgid/bigbluebutton-setup/e4124b50-49bd-4415-8003-06f776ea9783n%40googlegroups.com?utm_medium=email&utm_source=footer>.

TS

unread,
May 19, 2021, 2:53:32 PM5/19/21
to BigBlueButton-Setup
The format is like it is listed here


There is also no double-slash before the server. But I also tried with double-slash, but without success
turn-stun-servers.xml

Philipp Memmel

unread,
May 19, 2021, 2:59:57 PM5/19/21
to bigbluebu...@googlegroups.com
Sorry, I didn't want to add the double-slashes of course.

You only could take a look at the corresponding lines in
/usr/bin/bbb-conf and try to figure out which line exactly is causing
this error and why it's doing that in your specific
turn-stun-servers.xml configuration.

Pypo
> <https://groups.google.com/d/msgid/bigbluebutton-setup/e4124b50-49bd-4415-8003-06f776ea9783n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/bigbluebutton-setup/e4124b50-49bd-4415-8003-06f776ea9783n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "BigBlueButton-Setup" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bigbluebutton-s...@googlegroups.com
> <mailto:bigbluebutton-s...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bigbluebutton-setup/137be0b1-95ad-4083-b070-8b53ecc523e0n%40googlegroups.com
> <https://groups.google.com/d/msgid/bigbluebutton-setup/137be0b1-95ad-4083-b070-8b53ecc523e0n%40googlegroups.com?utm_medium=email&utm_source=footer>.

TS

unread,
May 19, 2021, 3:37:10 PM5/19/21
to BigBlueButton-Setup
Thank you for the hint to take a look in the /usr/bin/bbb-conf

It works when I define only one stun-server in the file turn-stun-servers.xml . The script /usr/bin/bbb-conf is not able to read more than one stun-server
This must be a bug.

There is a variable $STUN which has the value "stun1stun2 " when I have 2 stun-server configured. But this is not working, because
this variable is then used as an index :   id=\"$STUN\"]

Dont know,, if this also happens, when there are more than one turn-server is configured.

bayden10

unread,
Jun 27, 2021, 10:36:23 AM6/27/21
to BigBlueButton-Setup
Hi,

If you are running your CoTurn local NET then be sure to add it to your /etc/hosts file.

~b10

bayden10

unread,
Jun 27, 2021, 11:48:11 AM6/27/21
to BigBlueButton-Setup
When receiving: Failed to verify STUN server at 172.217.212.127:19302

I change STUN server to 3CX (or your favorite STUN)
/etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini
stunServerAddress=54.37.20.144
stunServerPort=3478

and here: 

/opt/freeswitch/conf/vars.xml
 <X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.3cx.com:3478"/>
<X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.3cx.com:3478"/>

~b10

Reply all
Reply to author
Forward
0 new messages