Skip to content
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

How To Fix Error 1020: media cloud not reach the server #6797

Closed
bijism opened this issue Feb 16, 2019 · 97 comments
Closed

How To Fix Error 1020: media cloud not reach the server #6797

bijism opened this issue Feb 16, 2019 · 97 comments

Comments

@bijism
Copy link

bijism commented Feb 16, 2019

Hello
How is the following problem solved?
Error 1020: media cloud not reach the server
server : https://demo.bigbluebutton.org/
This problem has arisen when sharing webcam !!!

client test 1 :
os client : android 8.1
phone : huawei p 8 lite
browser : chrome 72

client test 2 :
os client : windows seven
webcam : microsoft 1407
browser : firefox 65

@ffdixon
Copy link
Member

ffdixon commented Feb 16, 2019

Can you test against

https://test.bigbluebutton.org/

and let us know if you encounter the same issue.

@bijism
Copy link
Author

bijism commented Feb 16, 2019

No problem with Windows client
But there was still an error on Android
image

@ffdixon
Copy link
Member

ffdixon commented Feb 16, 2019

This one is going to be tougher to figure out -- can you try switching your phone between a cellular and a wifi network to see if there is any difference.

It might be the device, or it might be the network. The above will help us narrow it down.

@bijism
Copy link
Author

bijism commented Feb 16, 2019

We checked at the Huawei p8 lite and Samsung J ONE from the GPRS and WIFI network, but it still remains a problem.

@ffdixon
Copy link
Member

ffdixon commented Feb 16, 2019

Are you able to join audio from either of the phones on either GPRS or WiFi?

Audio also uses WebRTC, but it goes through a different path than video.

@bijism
Copy link
Author

bijism commented Feb 17, 2019

yes, we could get into a sound conference through two Android phones.
However, by iphone x only we had the webcam active but the sound did not connect and showed the following error.

1007 ice negotiation failed

Connections were established through wifi and 4 G.

image

@ffdixon
Copy link
Member

ffdixon commented Feb 17, 2019

However, by iphone x only we had the webcam active but the sound did not connect and showed the following error.

1007 ice negotiation failed

Connections were established through wifi and 4 G.

Hmm ... This error occurs when the server and client (BigBlueButton running within Safari) exchange possible IP addresses and ports to connect, but couldn't negotiate a connection (Interactive Connectivity Establishment).

Can you go to

http://html5test.com/

with your phones. Click the Save Results and share the profile of your phone.

This will give us a detailed profile of each phone's capabilities. On my iPhone 8 running iOS 12.2 (I tend to run beta versions of iOS, but any phone running iOS 11+ should connect), here was my score

http://html5test.com/s/f8911a4312266499.html

With my iPhone I'm was to join https://test.bigbluebutton.org/ and share both audio and video.

image

@bijism
Copy link
Author

bijism commented Feb 17, 2019

Report review huawei p8 lite - android- chrome
http://html5test.com/s/10d9be43146eaf54.html
Iphone review x-ios12-safari review report
http://html5test.com/s/21b3b843145e681b.html

Please report a solution for errors

Thanks for your answers

@ffdixon
Copy link
Member

ffdixon commented Feb 17, 2019

Hi,

http://html5test.com/s/10d9be43146eaf54.html

Hmm ... html5test.com reports that your Huawei p8 lite h.264 encoding. Can you open the following link on the p8 lite and let us know if it plays

http://clips.vorwaerts-gmbh.de/VfE_html5.mp4

This is an h.264 encoded file.

Iphone review x-ios12-safari review report

This looks good -- your running iOS 12.1. Can you try https://test.bigbluebutton.org/ again with sharing your audio and let us know if you still get the 1007 error. This test server is located in Canada. Where are you connecting from using your phone?

@bijism
Copy link
Author

bijism commented Feb 17, 2019

The video file for the huawei phone was well implemented.
And again for the iPhone an error was displayed
We connect from Iran to the BigBlueButton server.
The location is in Iran.

@ffdixon
Copy link
Member

ffdixon commented Feb 17, 2019

The 1007 error is a networking issue.

Is it an option for you to setup your own BigBlueButton server within the country and test against that server? You can set it up in about 15 minutes with bbb-install.sh, see https://github.com/bigbluebutton/bbb-install.

@bijism
Copy link
Author

bijism commented Feb 19, 2019

Hello dear friend
I reviewed the firefox browser on the huawei phone and lenovo tablet, and the sound and video are well transmitted.
Why is there a problem with chrome browser?
Have a solution for this?

@ffdixon
Copy link
Member

ffdixon commented Feb 19, 2019

I reviewed the firefox browser on the huawei phone and lenovo tablet, and the sound and video are well transmitted.
Why is there a problem with chrome browser?

Hmm ... the problem seems to be Chrome sending/receiving audio. From your test

This score was recorded using Chrome Dev 72.0.3626.96 on a Huawei P8 Lite (2017) running Android 8.0.0

Is there anyone else who has audio working (or not) on a Huawei phone on https://test.bigbluebutton.org/?

@bijism
Copy link
Author

bijism commented Feb 20, 2019

I did the following with phone models:
huawei mate 10
honor 8 lite
samsung j one
lenovo tab 4
All of the above with the Firefox browser enabled microphone and webcam as well.
But in the chrome browser only the microphone was activated.

And it was done in the link below:
https://test.bigbluebutton.org/

@mesutaydemir
Copy link
Contributor

mesutaydemir commented Aug 9, 2019

Hi bijism,
As Fred stated 1007 indicates a networking issue. In my case, I was able to solve the 1007 issue by adding the following and restarting bbb (https://groups.google.com/forum/#!msg/bigbluebutton-setup/F2MlW6Voj-0/ZXDq5_-uEQAJ)

Add to sip-profiles: /opt/freeswitch/etc/freeswitch/sip_profiles/external.xml

Add to acl.conf.xml: /opt/freeswitch/etc/freeswitch/autoload_configs/acl.conf.xml

@gschnepp
Copy link

Any news on this? I had this error 1020 yesterday evening with a fresh setup of BBB and a client with Firefox on Windows 10. Constantly, with no luck even after 30 minutes.

@HeikoSchlittermann
Copy link

I got the same, with a fresh setup, no NAT on the server side. An iPad gives 1020 as soon as I switch on the camera. The same issue with another iPad in another (private) network.

What information I can provide to solve the issue?

@prlanzarin
Copy link
Member

Did you setup a TURN server?

@arunk
Copy link

arunk commented Mar 31, 2020

I have the same error on a fresh install on a Ubuntu 16.04 server, client running Firefox on Ubuntu 18.04. I looked through the various log files but was unable to find anything regarding this error. The error occurs when I try and share my webcam. When I first installed the server I was getting 1007 error for audio but video was working. I resolved the error by configuring the right external and internal IP addresses in the config files. But there was an update the last couple of days, and apt update && upgrade updated all the bbb apps. I'm seeing this media could not reach the server error only after that.

@repomaa
Copy link

repomaa commented Mar 31, 2020

Same error here with mobile and regular safari

@ashishkpaul
Copy link

Same error here with mobile and regular safari (media could not reach the server (error 1020))

@PatrickHurley75
Copy link

Same error here. Installed with bbb-install.sh. Also had the 1007 for audio. Fixed that. Now no camera.

@Salamit
Copy link

Salamit commented Apr 2, 2020

Did you setup a TURN server?

I have the same issue only on Safari on Mac, iPhone and IPad. I have a turn server setup. No issues in Chrome.

@mungosmaximus
Copy link

Same here. A week old installation. This is the second BBB server we use, the first one is a yer old installation. On the first one everything works, on the new one (everything configured the same) some users have no problem, other get 1007 and 1020 media error. On PCs (Win 10 both Chrome and Firefox), on iPad (latest iOS Safari) and on mobile phones (Android, both Chrome and Firefox).
Hardware-vise: this is the reinstalled physical machine that was BBB server, so no problems there.

@prlanzarin
Copy link
Member

prlanzarin commented Apr 2, 2020

Sorry folks, but posting "it's also happening to me" with no additional info just doesn't help me at all.
For 1007's, please go to the bigbluebutton-setup mailing list since it's most probably a setup/configuration error.

The ones who are having 1020s, odds are it's also a configuration error. Here's a cheatsheet of what to do (you can go to bigbluebutton-setup, individually, for the second block, which I prefer because handling multiple people with potentially different issues in the same github issue is just hard):

I reviewed my firewall port mapping, UDP ports are all open, STUN server is working, got a working TURN server. Still got 1020. What do I do?

Go to either bigbluebutton-setup/dev mailing lists and enter the most of what you can of the following:

  • Did the same test scenario work on https://test.bigbluebutton.org?
  • Please state if this is happening consistently or intermittently.
  • Please state which browser, device and OS (with versions) you're seeing it on.
  • Please explain if your server is behind NAT. If possible, which type of NAT. The more details, the better.
  • Send the output of sudo bbb-conf --check. Please redact sensitive info.
  • Send the output of cat /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini
  • Send the output of cat /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml. Please redact sensitive info.
  • If possible, and this is the most important, reproduce the issue in either Chrome or Firefox and get Chrome's chrome://webrtc-internals or Firefox about:webrtc dump.

@arunk
Copy link

arunk commented Apr 3, 2020

just an update - setting up a STUN server resolved my 1020 media could not reach the server error.

@HeikoSchlittermann
Copy link

HeikoSchlittermann commented Apr 3, 2020 via email

@raheelrobson
Copy link

Anyone resolved both the error ? Please send me if any help.
Also i am not even getting whiteboard and presenter . Even if i upload slides, it does not show any slide.

@prlanzarin
Copy link
Member

@Salamit
Copy link

Salamit commented Apr 4, 2020

@prlanzarin Thanks for your help.

To anyone out there, I want to add that I tried 3 different stun servers from the list here: https://docs.bigbluebutton.org/2.2/configure-firewall.html#updating-kurento as follows stunAddressAsInKurento:stunPortAsInKurento -v but I kept getting Primary: Blocked or could not reach STUN server

I searched online I found a close stun server and finally it returned Return value is 0x000001

I'm not sure if those servers are still up.

@raheelrobson
Copy link

@raheelrobson Ping is not the correct way to test a STUN server. Everything can respond to a ping, doesn't mean it's working as you expect it to. Please read this, especially

if your server is behind NAT. Please make sure the STUN server you setup in Kurento is working from the BBB server by using the stun-client package in there as following: stun stunAddressAsInKurento:stunPortAsInKurento -v. Look if there's a mapped IP address that reflects your server's public IP.

Spoiler: that STUN doesn't work.

My bbb was working just fine. All of sudden What could be the reason for this to not work.
I can not run the command you mentioned above (stun stunAddressAsInKurento:stunPortAsInKurento -v) because the program 'stun' is not installed.
Again, It worked well. is there a way I can troubleshoot more. or you recommend keep changing my stun address?

@raheelrobson
Copy link

@raheelrobson Ping is not the correct way to test a STUN server. Everything can respond to a ping, doesn't mean it's working as you expect it to. Please read this, especially

if your server is behind NAT. Please make sure the STUN server you setup in Kurento is working from the BBB server by using the stun-client package in there as following: stun stunAddressAsInKurento:stunPortAsInKurento -v. Look if there's a mapped IP address that reflects your server's public IP.

Spoiler: that STUN doesn't work.

error reproduced at https://test.bigbluebutton.org/
image

@RonZ-dev
Copy link

RonZ-dev commented Jul 8, 2020

Raheel, you can check the stun server here: https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ if you try the old ip adress you can see its not working anymore. It looks like that server just crashed and the owner (google) didnt restart it

@raheelrobson
Copy link

Raheel, you can check the stun server here: https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ if you try the old ip adress you can see its not working anymore. It looks like that server just crashed and the owner (google) didnt restart it

Thank you for the help. But if I type in my stun address in STUN or TURN URI it does not allow me to add the server. Am I doing something wrong?
Thanks in anticipation.

@RonZ-dev
Copy link

RonZ-dev commented Jul 8, 2020

image
This is what it looks like if we add the server you mentioned, that one doesnt work.

@raheelrobson
Copy link

image
This is what it looks like if we add the server you mentioned, that one doesnt work.

Do I need to keep checking. Please check below.
image

@RonZ-dev
Copy link

RonZ-dev commented Jul 8, 2020

Remove all the servers and start clean, add one and test it, this doenst make a readable output.

@taikedz
Copy link

taikedz commented Jul 8, 2020

Just finished fixing this in my environment. The summary from @RohanYoon was spot on.

@raheelrobson - just to check, did you follow that comment?

My BBB server was also working just fine for the last couple months, then was broken yesterday. In my case, it is because Google changed the IP of the STUN server - but since BBB configures with an IP instead of a name, it was unable to follow.

TL;DR fix:

  1. Check the gist posted previously for a STUN server - for example stun.l.google.com:19302
  2. Get its IP - nslookup stun.l.google.com which gives 108.177.15.127 at the moment
  3. Edit /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini on your BBB server
  4. Locate and replace the values of stunServerAddress and stunServerPort with 108.177.15.127 and 19302
  5. Restart BBB : sudo bbb-conf --restart

@raheelrobson
Copy link

Remove all the servers and start clean, add one and test it, this doenst make a readable output.

The problem is when I connect to VPN and connect to Office internet. Then Camera etc works. Only when VPN is disconnected the problem occurs then.
Can anyone point me to the direction where I need to see how to fix this on and Off campus accessibility issue.
But I will try your recommendation as well.

@RonZ-dev I also tried your methodology but the out put is same for 15 stun servers I checked.

@raheelrobson
Copy link

Remove all the servers and start clean, add one and test it, this doenst make a readable output.

The problem is when I connect to VPN and connect to Office internet. Then Camera etc works. Only when VPN is disconnected the problem occurs then.
Can anyone point me to the direction where I need to see how to fix this on and Off campus accessibility issue.
But I will try your recommendation as well.

@RonZ-dev I also tried your methodology but the out put is same for 15 stun servers I checked.

image
Do you still want me use this or do I need to change this.
I believe there is some configuration that hindering my accessibility without VPN. That means my external Ip needs to be mapped or handled somewhere.

@sunilksamanta
Copy link

 If your BBB server behind the NAT uncomment the line
externalAddress=10.20.30.40
in the /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini file and replace ip with your external IP address. This is worked for me!

This helped! Thanks a lot man. You saved my life <3

@faradoxuz
Copy link

If your BBB server behind the NAT uncomment the line
externalAddress=10.20.30.40
in the /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini file and replace ip with your external IP address. This is worked for me!

This helped! Thanks a lot man. You saved my life <3

you are welcome)

@wepe53
Copy link

wepe53 commented Jul 24, 2020

I am running a BBB server behind a firewall and initially BBB worked only from PCs connected internally via LAN.
Accessing BBB from the Internet worked except I got error 1020 when accessing the webcam.

The problem was the stun server with IP = 64.233.177.127 in file /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini - this stun server does not respond!!!! To test availaibility of a stun server I used free Windows stun client from http://www.stunprotocol.org/

Now one possible solution would be to find another but available stun server - there are many (see https://gist.github.com/mondain/b0ec1cf5f60ae726202e ). However you never know - maybe next time this stun server is down (unless you run your own server).

I my case the solution was easy: the external IP (the public IP of the firewall) is static i.e. does not change. So as suggested by faradoxuz I uncommented the line with externalAdress and added the public IP of the firewall. Furthermore I commented the line with StunServerAdress and StunServerPort i.e. "do not use stun". Additionally I also uncommented the line networkInterfaces and added the proper interface of the BBB-server.

That´s it. Don´t forget to restart BBB!

@Uberney
Copy link

Uberney commented Jul 27, 2020

Hola buenas noches, después de probar de muchas formas. Lo solucione agregando esta linea en

Entre a este archivo = sudo nano /etc/hosts
Agregue esta linea al final = 34.94.189.47 webinar.tumarketcoinplus.net

La linea corresponde a mi IP Externa seguida del nombre de mi host. En su caso reemplacen por sus datos

@absoonoo

This comment has been minimized.

@parsa25eng

This comment has been minimized.

@matiasilva
Copy link
Contributor

Please don't revive this old issue. There are many other issues about iOS/Safari problems.

@sunilksamanta
Copy link

sunilksamanta commented Nov 6, 2020

Believe me, Create your own TURN server and the issue will be resolved. I've tried a lot of things.. But no solutions were permanent but this. https://docs.bigbluebutton.org/2.2/setup-turn-server.html

@racsnet
Copy link

racsnet commented Nov 6, 2020

@sunilksamanta

I think that will not allways work.
At the moment I get the same error. On an IPad i know the camera was working in the past.
The server is not behind nat but behind firewall. No packets seem do be blocked. IOs Version is 14.2
I now have installed a turn server according to https://docs.bigbluebutton.org/2.2/setup-turn-server.html

But the error 1020 remains. On test.bigbluebutton.org the camera works. Sadly at the moment i have no idea how to find the issue.

@parsa25eng
Copy link

Hi @racsnet ,
In my case this can solve the problem.

@racsnet
Copy link

racsnet commented Nov 6, 2020

@parsa25eng
This was it! Thannk you very much. I have a big VIP meeting next week. Now i can sleep much better 👍

@umlaeute
Copy link

umlaeute commented Nov 6, 2020

@matiasilva if you want to avoid useles discussion in old issues, you should probably lock them

@sunilksamanta
Copy link

@parsa25eng
This was it! Thannk you very much. I have a big VIP meeting next week. Now i can sleep much better

Interesting.. I'll also try this solution. If this works for me too, then I'll get rid of another vps.

@teenkevo
Copy link

teenkevo commented Jun 6, 2021

Sorry folks, but posting "it's also happening to me" with no additional info just doesn't help me at all.
For 1007's, please go to the bigbluebutton-setup mailing list since it's most probably a setup/configuration error.

The ones who are having 1020s, odds are it's also a configuration error. Here's a cheatsheet of what to do (you can go to bigbluebutton-setup, individually, for the second block, which I prefer because handling multiple people with potentially different issues in the same github issue is just hard):

I reviewed my firewall port mapping, UDP ports are all open, STUN server is working, got a working TURN server. Still got 1020. What do I do?

Go to either bigbluebutton-setup/dev mailing lists and enter the most of what you can of the following:

  • Did the same test scenario work on https://test.bigbluebutton.org?
  • Please state if this is happening consistently or intermittently.
  • Please state which browser, device and OS (with versions) you're seeing it on.
  • Please explain if your server is behind NAT. If possible, which type of NAT. The more details, the better.
  • Send the output of sudo bbb-conf --check. Please redact sensitive info.
  • Send the output of cat /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini
  • Send the output of cat /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml. Please redact sensitive info.
  • If possible, and this is the most important, reproduce the issue in either Chrome or Firefox and get Chrome's chrome://webrtc-internals or Firefox about:webrtc dump.

Just to add to this. This post has an excellent summarized workflow for working with a server behind a NAT.
https://munari.xyz/2020/10/25/bigbluebutton-behind-nat/

@sibin-aeione

This comment has been minimized.

@omiid-ad
Copy link

I am running a BBB server behind a firewall and initially BBB worked only from PCs connected internally via LAN. Accessing BBB from the Internet worked except I got error 1020 when accessing the webcam.

The problem was the stun server with IP = 64.233.177.127 in file /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini - this stun server does not respond!!!! To test availaibility of a stun server I used free Windows stun client from http://www.stunprotocol.org/

Now one possible solution would be to find another but available stun server - there are many (see https://gist.github.com/mondain/b0ec1cf5f60ae726202e ). However you never know - maybe next time this stun server is down (unless you run your own server).

I my case the solution was easy: the external IP (the public IP of the firewall) is static i.e. does not change. So as suggested by faradoxuz I uncommented the line with externalAdress and added the public IP of the firewall. Furthermore I commented the line with StunServerAdress and StunServerPort i.e. "do not use stun". Additionally I also uncommented the line networkInterfaces and added the proper interface of the BBB-server.

That´s it. Don´t forget to restart BBB!

This solution really saved my day!
for BBB v2.4.4 or above:

  • open /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini
  • uncomment networkInterfaces and replace with appropriate one (Use ifconfig)
  • comment both stunServerAddress and stunServerPort by adding a ; at the beggining
  • THIS IS IMPORTANT: externalAddress is deprecated and not use anymore, find and uncomment externalIPv4 instead and set the firewall external ip adderss here.
    Done!

@provelo-ict
Copy link

I know this issue is closed, but I want to leave this note in case someone stumble upon this issue as I did.

I had an Error 1020 when trying to share my webcam just after an update (2.6.0 to 2.6.10).
What happened to me is that I had in my documentation that one needs to setup the turn server in /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml

But it turned out I had used the -c parameter of bbb-install.sh script, which resulted in the creation of a /etc/bigbluebutton/turn-stun-servers.xml file.
The latter file overrode the /usr/share file and I spend hours modifying the wrong file and wondering why it had not effect.

I hope this little piece of knowledge can help someone out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests