-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coturn fails to start (fresh install on Ubuntu 20.04) #703
Comments
I now also tried manually creating the Nevertheless, I was now able to identify the root cause of coturn not starting:
I manually set the value of |
I ended up just following the steps in https://docs.bigbluebutton.org/administration/turn-server/, now everything works as expected. It seems like the |
@SECtim I have the same issue installing TURN server on a separate server. Did you just manually install the coturn server using the guide or did you use the latest bbb-install.sh script? |
@CamZie I installed using the install script, coturn didn't work. So I followed the manual installation instructions to double-check and found that several of the configuration steps noted in the manual instructions are not done (or done differently) by the install script. |
I'm the primary author of
Thanks for this investigation. Nonetheless, I'll fix this shortly and test so it has If any of you are deep into the docs and can see items that need updating, take a moment and send in a pull request. It will save us some time as we update them. |
Thanks for the help! I tried however installing it manually, also tried installing it via script and manually adapted the missing changes as you did however TURN server is somehow not being detected by our BBB installation. Did you install it on the same server as BBB or on a separate server? Would it be alright if you could send how your turnserver.conf and turn-stun-servers.xml looks like, so that I could compare? Thanks a lot in advance! |
First of all, make 100% sure your firewall settings for both the BBB and the TURN server are correct. That said, <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<!--
We need turn0 for FireFox to workaround its limited ICE implementation.
This is UDP connection. Note that port 3478 must be open on this BigBlueButton
and reachble by the client.
Also, in 2.5, we previously defined turn:$HOST:443?transport=tcp (not 'turns')
to workaround a bug in Safari's handling of Let's Encrypt. This bug is now fixed
https://bugs.webkit.org/show_bug.cgi?id=219274, so we omit the 'turn' protocol over
port 443.
-->
<bean id="turn0" class="org.bigbluebutton.web.services.turn.TurnServer">
<constructor-arg index="0" value="<TURN Secret>"/>
<constructor-arg index="1" value="turn:<TURN Server Domain>:3478"/>
<constructor-arg index="2" value="86400"/>
</bean>
<bean id="turn1" class="org.bigbluebutton.web.services.turn.TurnServer">
<constructor-arg index="0" value="<TURN Secret>"/>
<constructor-arg index="1" value="turns:<TURN Server Domain>:443?transport=tcp"/>
<constructor-arg index="2" value="86400"/>
</bean>
<bean id="stunTurnService"
class="org.bigbluebutton.web.services.turn.StunTurnService">
<property name="stunServers">
<set>
</set>
</property>
<property name="turnServers">
<set>
<ref bean="turn0"/>
<ref bean="turn1"/>
</set>
</property>
</bean>
</beans>
listening-port=3478
tls-listening-port=443
listening-ip=<TURN Server IP>
relay-ip=<TURN Server IP>
min-port=32769
max-port=65535
verbose
fingerprint
lt-cred-mech
use-auth-secret
static-auth-secret=<TURN Secret>
realm=<My Realm>
cert=/etc/turnserver/fullchain.pem
pkey=/etc/turnserver/privkey.pem
# From https://ssl-config.mozilla.org/ Intermediate, openssl 1.1.0g, 2020-01
cipher-list="ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384"
dh-file=/etc/turnserver/dhp.pem
keep-address-family
no-cli
no-tlsv1
no-tlsv1_1
# Block connections to IP ranges which shouldn't be reachable
no-loopback-peers
no-multicast-peers
denied-peer-ip=0.0.0.0-255.255.255.255
denied-peer-ip=127.0.0.0-127.255.255.255
denied-peer-ip=::1
# Private (LAN) addresses
# If you are running BigBlueButton within a LAN, you might need to add an "allow" rule for your address range.
# IPv4 Private-Use
denied-peer-ip=10.0.0.0-10.255.255.255
denied-peer-ip=172.16.0.0-172.31.255.255
denied-peer-ip=192.168.0.0-192.168.255.255
# Other IPv4 Special-Purpose addresses
denied-peer-ip=100.64.0.0-100.127.255.255
denied-peer-ip=169.254.0.0-169.254.255.255
denied-peer-ip=192.0.0.0-192.0.0.255
denied-peer-ip=192.0.2.0-192.0.2.255
denied-peer-ip=198.18.0.0-198.19.255.255
denied-peer-ip=198.51.100.0-198.51.100.255
denied-peer-ip=203.0.113.0-203.0.113.255
# IPv6 Unique-Local
denied-peer-ip=fc00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
# IPv6 Link-Local Unicast
denied-peer-ip=fe80::-febf:ffff:ffff:ffff:ffff:ffff:ffff:ffff
# Other IPv6 Special-Purpose assignments
denied-peer-ip=::ffff:0:0-::ffff:ffff:ffff
denied-peer-ip=64:ff9b::-64:ff9b::ffff:ffff
denied-peer-ip=64:ff9b:1::-64:ff9b:1:ffff:ffff:ffff:ffff:ffff
denied-peer-ip=2001::-2001:1ff:ffff:ffff:ffff:ffff:ffff:ffff
denied-peer-ip=2001:db8::-2001:db8:ffff:ffff:ffff:ffff:ffff:ffff
denied-peer-ip=2002::-2002:ffff:ffff:ffff:ffff:ffff:ffff:ffff
allowed-peer-ip=<BBB Server IP> |
@SECtim thanks a lot for your help! We confirm that it works now with all your suggestions and manual changes. |
@CamZie, did you apply these updates to coturn installed on BigBlueButton, or to an external turn server? Also, I did a clean install of 2.7.6 and I'm not seeing these errors.
I noticed in your initial post it had version 4.5.1.1
The version installed by the latest build is 4.6.2
|
Regarding
I checked a clean install and there is no /run/turnserver/turnserver.pid. You might have encountered this error in the previous 4.5.1.1 version: coturn/coturn#683. |
We did this on an external turn server. These are the steps I did:
|
On a fresh Ubuntu 20.04, I ran (with bbb-install from the 2.7.x branch)
and it installed all available updates etc., certbot, and coturn (as expected).
However, the output then ends with these lines:
I of course tried to run the script again after a reboot, with the same result. Manually starting coturn also results in a timeout (after 90s, i.e., plenty of time).
Here's the turnserver log with redacted IP (
/var/log/turnserver/turnserver.log
), it contains some warnings related to the configuration (which I did not touch):I am of course happy to provide additional information if needed.
The text was updated successfully, but these errors were encountered: