# Audio&Video connection errors

**URL:** https://forum.meet.coop/t/audio-video-connection-errors/91
**Category:** Systems
**Created:** [5 June 2020 11:49 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91 "2020-06-05T11:49:13Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![szczepan\_animorph](https://forum.meet.coop/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@szczepan\_animorph](https://forum.meet.coop/u/szczepan_animorph)
#### Post date: [5 June 2020 11:49 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/1 "2020-06-05T11:49:13Z")

</div>

Hi there,  
Thank you for making demo server happen!

We just tested it internally, my PopOS/Ubuntu worked like a charm on Firefox.

However Hannah, the other Animorph, encountered to issues on Mac+Firefox:

1. Could not enable their microphone (they could not hear me either), we could do only text chat.  
The error was `connection failure ICE error 1007`, please find screenshot below.  
 ![Screenshot 2020-06-05 at 12.19.05](https://forum.meet.coop/uploads/default/original/1X/6b5dcef935d260a3059bd3bf0b3149c3343c1a06.png)  
After the error system would still try to connect to the echo test to no avail. When Hannah used Chrome it worked at first attempt though `1007` would pop up again next time round, but was fine after refreshing.

2. Hannah encountered another error when trying to launch video on Firefox `Media could not reach the server [error 1020]` Did work on Chrome, will spare you the screenshot.

Hope this is somewhat relevant, thank you for all your work on this!

---

<div class="post-metadata">

### Author: ![decentral1se](https://forum.meet.coop/user_avatar/forum.meet.coop/decentral1se/32/26_2.png) [@decentral1se](https://forum.meet.coop/u/decentral1se)
#### Post date: [5 June 2020 12:28 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/2 "2020-06-05T12:28:47Z")

</div>

Thanks for testing @szczepan_animorph! Searching up a bit on those errors leads me to think that it is connection problems which can be helped with better supporting the [TURN server](http://docs.bigbluebutton.org/2.2/setup-turn-server.html). We’re tracking that via [this ticket](https://git.coop/meet/bbb/-/issues/5).

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [5 June 2020 12:30 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/3 "2020-06-05T12:30:50Z")

</div>

Cheers, hopefully this was my fault!

I updated [some packages last night](https://git.coop/meet/bbb/-/issues/19) and then applied our Ansible role to 2 of the 3 servers we had at the time but it was late and I forgot to apply it to `demo.meet.coop`, it is running now, can you try again in 5 minutes or so?

We are also now enabling Etherpad with our [latest BBB role release](https://git.coop/meet/bbb/-/releases).

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [5 June 2020 12:54 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/4 "2020-06-05T12:54:44Z")

</div>

> [@chris](#):
>
> you try again in 5 minutes or so?

Best make that half an hour!

---

<div class="post-metadata">

### Author: ![benhylau](https://forum.meet.coop/user_avatar/forum.meet.coop/benhylau/32/12_2.png) [@benhylau](https://forum.meet.coop/u/benhylau)
#### Post date: [5 June 2020 22:06 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/5 "2020-06-05T22:06:59Z")

</div>

Encountered [same error before](https://github.com/hyphacoop/organizing/issues/246#issuecomment-607520944) on our own instance, think it was because we misconfigured the TURN and once that was fixed it never happened again for months.

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [5 June 2020 22:09 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/6 "2020-06-05T22:09:37Z")

</div>

Do you know what the fix was?

---

<div class="post-metadata">

### Author: ![benhylau](https://forum.meet.coop/user_avatar/forum.meet.coop/benhylau/32/12_2.png) [@benhylau](https://forum.meet.coop/u/benhylau)
#### Post date: [5 June 2020 22:19 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/7 "2020-06-05T22:19:13Z")

</div>

Looking back at our chat logs, I think Elon upgraded BBB and the upgrade process overwrote the config file, so these reverted to default it looks like:

```auto
stunServerAddress
stunServerPort

```

I believe pointing to the correct address and port fixed it.

---

<div class="post-metadata">

### Author: ![Yurko](https://forum.meet.coop/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@Yurko](https://forum.meet.coop/u/Yurko)
#### Post date: [5 June 2020 22:25 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/8 "2020-06-05T22:25:04Z")

</div>

chrome://webrtc-internals (chrome) and about:webrtc (firefox) can be used to debug these issues.

Usually it happens when there is a Nat in the way. In our case it was because BBB was behind a Nat, but not exclusively.

And yes we found that upgrading causes configs to get overwritten.

I should point out that STUN and TURN are important to establish a good connection with correct ip addresses so its a good place to check.

> ICE tries to find the best path to connect peers. It tries all possibilities in parallel and chooses the most efficient option that works. ICE first tries to make a connection using the host address obtained from a device’s operating system and network card; if that fails (which it will for devices behind NATs) ICE obtains an external address using a STUN server, and if that fails, traffic is routed via a TURN relay server.

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [5 June 2020 22:39 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/9 "2020-06-05T22:39:14Z")

</div>

> [@benhylau](#):
>
> the upgrade process overwrote the config file

Do you know _which_ config file? The `/etc/turnserver.conf` file is on the TURN/STUN server itself and the config on the BigBlueButton server with the TURN/STUN server settings is `/usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml` and those variables don’t appear in that file:

```bash
grep -ie "stunServerAddress" -e "stunServerPort" /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml

```

The template for `turn-stun-servers.xml` [is here](https://git.coop/meet/bbb/-/blob/master/templates/turn-stun-servers.xml.j2) and the TURN/STUN coturn server template [is here](https://git.coop/webarch/coturn/-/blob/master/templates/turnserver.conf.j2) and settings for this template [are here](https://git.coop/meet/servers/-/blob/master/hosts.yml#L164).

---

<div class="post-metadata">

### Author: ![benhylau](https://forum.meet.coop/user_avatar/forum.meet.coop/benhylau/32/12_2.png) [@benhylau](https://forum.meet.coop/u/benhylau)
#### Post date: [6 June 2020 17:03 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/10 "2020-06-06T17:03:09Z")

</div>

Just relaying the chat response from Elon:

> its /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml  
> we are using `stun:stun.freeswitch.org`  
> [templates/turn-stun-servers.xml.j2 · master · meet / bbb · GitLab](https://git.coop/meet/bbb/-/blob/master/templates/turn-stun-servers.xml.j2) is set to use `bbb_turn_server` but can’t find where that is defined

---

<div class="post-metadata">

### Author: ![decentral1se](https://forum.meet.coop/user_avatar/forum.meet.coop/decentral1se/32/26_2.png) [@decentral1se](https://forum.meet.coop/u/decentral1se)
#### Post date: [6 June 2020 19:28 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/11 "2020-06-06T19:28:46Z")

</div>

OK, supporting multiple TURN servers is coming down the tubes now and we should be able to test this quite soon across all the instances. Change set in [https://git.coop/meet/bbb/-/merge\_requests/9](https://git.coop/meet/bbb/-/merge_requests/9). There is already 3 of them [https://wiki.meet.coop/wiki/Servers](https://wiki.meet.coop/wiki/Servers)!

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [7 June 2020 09:42 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/12 "2020-06-07T09:42:48Z")

</div>

> [@benhylau](#):
>
> [templates/turn-stun-servers.xml.j2 · master · meet / bbb · GitLab](https://git.coop/meet/bbb/-/blob/master/templates/turn-stun-servers.xml.j2) is set to use `bbb_turn_server` but can’t find where that is defined

We are putting server specific variables in the `hosts.yml` file in the servers repo, see for example [the current variables for the BBB servers](https://git.coop/meet/servers/-/blob/bcc630940798d64eed4987b6592ea3134f1a7c6a/hosts.yml#L4), at the moment the only variables not in this file are the ones for creating users accounts, see [the host\_vars files for these](https://git.coop/meet/servers/-/tree/bcc630940798d64eed4987b6592ea3134f1a7c6a/host_vars). This means that there is basically one file with all the settings in it, `hosts.yml`, we are also setting variables that apply to groups of servers in that file, for example see the [list of variables for the TURN/STUN servers](https://git.coop/meet/servers/-/blob/bcc630940798d64eed4987b6592ea3134f1a7c6a/hosts.yml#L190). At some point it might make sense to split this into separate files but at the moment just having one file with everything in keeps it simple.

---

<div class="post-metadata">

### Author: ![mikemh](https://forum.meet.coop/user_avatar/forum.meet.coop/mikemh/32/358_2.png) [@mikemh](https://forum.meet.coop/u/mikemh)
#### Post date: [8 June 2020 09:30 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/13 "2020-06-08T09:30:18Z")

</div>

Not an error - but it IS a video issue . . please create an option for video mirroring. Not being mirrored is **really** disturbing.

It’s not in the user setings/preferences anywhere is it?

---

<div class="post-metadata">

### Author: ![blows](https://forum.meet.coop/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@blows](https://forum.meet.coop/u/blows)
#### Post date: [8 June 2020 09:44 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/14 "2020-06-08T09:44:26Z")

</div>

Quite a few more than 5 minutes, but have just tested on Firefox, Chrome and Safari on Mac and no errors. Thank you Chris! Enjoy the other aspects of the bug hunt!

---

<div class="post-metadata">

### Author: ![szczepan\_animorph](https://forum.meet.coop/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@szczepan\_animorph](https://forum.meet.coop/u/szczepan_animorph)
#### Post date: [8 June 2020 10:49 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/15 "2020-06-08T10:49:06Z")

</div>

Worked very smoothly for 3 of us now on an hour-long call!

---

<div class="post-metadata">

### Author: ![decentral1se](https://forum.meet.coop/user_avatar/forum.meet.coop/decentral1se/32/26_2.png) [@decentral1se](https://forum.meet.coop/u/decentral1se)
#### Post date: [8 June 2020 10:50 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/16 "2020-06-08T10:50:45Z")

</div>

> [@mikemh](#):
>
> Not an error - but it IS a video issue . . please create an option for video mirroring. Not being mirrored is **really** disturbing.

Sorry, not quite clear what you mean by mirroring?

---

<div class="post-metadata">

### Author: ![szczepan\_animorph](https://forum.meet.coop/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@szczepan\_animorph](https://forum.meet.coop/u/szczepan_animorph)
#### Post date: [8 June 2020 10:51 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/17 "2020-06-08T10:51:44Z")

</div>

Wave your hand in front of the screen with the camera on and observe your brain’s response!

---

<div class="post-metadata">

### Author: ![mikemh](https://forum.meet.coop/user_avatar/forum.meet.coop/mikemh/32/358_2.png) [@mikemh](https://forum.meet.coop/u/mikemh)
#### Post date: [8 June 2020 11:05 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/18 "2020-06-08T11:05:23Z")

</div>

Video mirroring in video chats = seeing ourselves as if in a mirror, rather than as another person sees us . . the usual default for Zoom, Skype etc. But seems not to be an option in BBB.

Pardon me, I forgot ‘mirroring’ has other meanings in the world of servers.

---

<div class="post-metadata">

### Author: ![chris](https://forum.meet.coop/user_avatar/forum.meet.coop/chris/32/3_2.png) [@chris](https://forum.meet.coop/u/chris)
#### Post date: [8 June 2020 13:01 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/19 "2020-06-08T13:01:49Z")

</div>

> [@mikemh](#):
>
> please create an option for video mirroring

This is the thread for this issue.

> <https://github.com/bigbluebutton/bigbluebutton/issues/8355>
>
> Hello.
> I installed BBB 2.2.0-rc-1 and have the webcam image flipped horizontall…y while in Skype and Nextcloud Talk image is ok.

I’m afraid to say that @decentral1se and myself are not in a position to address this issue this week, we have far to much on already.

---

<div class="post-metadata">

### Author: ![mikemh](https://forum.meet.coop/user_avatar/forum.meet.coop/mikemh/32/358_2.png) [@mikemh](https://forum.meet.coop/u/mikemh)
#### Post date: [8 June 2020 16:23 UTC](https://forum.meet.coop/t/audio-video-connection-errors/91/20 "2020-06-08T16:23:40Z")

</div>

Thanks chris. Park this in the future-issues list. I can bear to see myself wrong way round for a couple of hours 😉

Longer term, I do think it’s a disincentive.

[Next page](https://forum.meet.coop/t/audio-video-connection-errors/91.md?page=2)
