jitsi / jitsi-meet

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
https://jitsi.org/meet
Apache License 2.0
23.31k stars 6.76k forks source link

Can't join meet for more than tow people? #2440

Closed kangzhe0000 closed 6 years ago

kangzhe0000 commented 6 years ago

I set up a meet, but when third people join, there is no image. Is the service need to connect to the Internet? Now our service deploy on Lan.

saghul commented 6 years ago

Can you share the logs in the JS console?

slavakisel commented 6 years ago

@saghul Having similar issue here - for two people conference works without issues, as soon as the third person joins there video disappears and we can't hear each other. Logs: 1st person 2nd person 3rd person

saghul commented 6 years ago

Hum I connected to your server myself and got the same result, but no errors... @paweldomas maybe you can cake a look if you have time?

@slavakisel What versions have you installed?

damencho commented 6 years ago

@slavakisel Have you checked your jicofo logs? This is like there is no jicofo in the room.

slavakisel commented 6 years ago

@damencho @saghul I have installed everything via apt package jitsi-meet. Here is what I have:

I've took a look at jicofo and videobridge logs, unfortunately I don't see any errors there

jicofo.log videobridge.log

damencho commented 6 years ago

When you installed it, have you followed all the steps from: https://github.com/jitsi/jitsi-meet/blob/master/doc/quick-install.md#advanced-configuration As your jvb is behind NAT I see it advertises both ip-addresses, but have you forwarded 10000 udp and tcp 443 to the machine where jvb is running?

saghul commented 6 years ago

@damencho Even if he didn't, shouldn't we have detected an ICE failure?

slavakisel commented 6 years ago

I am not sure if it is applicable to my case... I am running jitsi on VPS with public IP address, no NAT involved

kangzhe0000 commented 6 years ago

I find the problem, stun pointed to a intranet IP. How can I modify this config? stun

saghul commented 6 years ago

Have you done what @damencho mentiomned here? https://github.com/jitsi/jitsi-meet/issues/2440#issuecomment-361987233

kangzhe0000 commented 6 years ago

I have ran the server in Internet,not in Lan. Does it must do as @damencho mentiomned?

saghul commented 6 years ago

If the server is on the public internet then you shouldn't need it, but you seem to be behind some NAT?

kangzhe0000 commented 6 years ago

Yes, I use NAT forwarding. I will try it, thank you

kangzhe0000 commented 6 years ago

@damencho 10000 udp and tcp 443 to the machine is running, and localhost IP is also configured. but the problem is still exist.

kangzhe0000 commented 6 years ago

I use wireshark to capture, and I find that there is no UDP communication. The local video stream is not uploaded when the third person join.

saghul commented 6 years ago

@kangzhe0000 Have you configured those ice4j parameters @damencho mentioned? If so, please share your config here.

kangzhe0000 commented 6 years ago

jitsi.meet.txt sip-communicator.txt

@saghul

damencho commented 6 years ago

I just tested it and it works for me. Do you still see the problem?

kangzhe0000 commented 6 years ago

no error logs,but the local video stream is not uploaded when the third person join.

rlowevoiply commented 6 years ago

I am also having this problem. Perfect video conference between two people, but then when a third person joins the entire room drops. I can still see people connected but there is no audio or video. Hosted on an Azure server with an open connection. Any help would be appreciated. I would also like to know where the logs are so that I may post them if needed. I have only tweaked a few things on the server as far as graphics and naming. Jigasi is also installed, but not currently working. Would that cause an issue? Please let me know thanks again!

f987002856 commented 6 years ago

@woodsjail I am also having this problem,Have you solved it?

damencho commented 6 years ago

@woodsjail and @f987002856 Have you checked this: https://github.com/jitsi/jitsi-meet/blob/master/doc/quick-install.md#advanced-configuration ? Make sure ports are open and forwarded and correct ip addresses are there and jvb is restarted after the changes.

f987002856 commented 6 years ago

@damencho Thank you for your answer. I test it in the same inner network. there are two options i can not understand: 1、you said "make sure ports are open",It refers to program deployment device port or public network port? 2、how to restart jvb? service jitsi-videobridge restart? Looking forward to your reply.

damencho commented 6 years ago
  1. If your jvb is running on a machine with public address this refers to the firewall. If your jvb is behind nat(not running on a machine with a public address), these ports need to be open at the device/machine with the public address and forwarded to the jvb machine as it will receive the traffic.
  2. /etc/init.d/jitsi-videobridge restart
f987002856 commented 6 years ago

@damencho thank you. lf my jvb is behind nat and all of user in the same Intranet,can I not open the port of the public network machine? In other words,do i have to open the port in the public address machine if more than two people come in? Because of the public address machine belongs to company and my department has no right to amend it,so there has other way to resolve it? i am looking forward to your answer,thank you!

damencho commented 6 years ago

If the users can access directly the ip address of the jvb machine and its ports then you can do that, you don't have to setup the private and public address in the jvb config and leave it by default and your deployment will be usable only from your intranet.

f987002856 commented 6 years ago

@damencho I'm sorry to bother you again. Today I tried to debug my service again,but the problem is still not solved. I tried to access the service port by telnet ip port and found that these ports can be accessed such as 80,443,5222,5280. But the port 5347 and 4443 can not connect. Then i use command netstat -an | grep 5347 and netstat -an | grep 443,the picture below is the result j 4alqe4sa cf u5dh7v_ c I want to know the port 5347 is normal? If not normal, how do I modify? During debugging I found that jvb was not used at all.Is the port 5347 problem? The below is my jvb config: czi1 kgl1 3 us _c zio Looking forward to your respond,Thank you again.

damencho commented 6 years ago

So port 5347 is the default component port of prosody. I suppose jvb and prosody are on the same machine. By default jvb tries to connect to localhost:5347. You can check jvb logs for errors. When you were installing jitsi-meet you entered as a name for the service: 10.25.25.115, it this correct?

f987002856 commented 6 years ago

@damencho Yes,i entered the 10.25.25.115 when it let me enter the domain.please tell me how to check jvb logs,maybe i can find some useful logs.Thank you!

damencho commented 6 years ago

The logs are in /var/log/jitsi/jvb.log

f987002856 commented 6 years ago

@damencho Hi,thank you very much for your guidance! I checked the jvb.log, but I did not find anything out there.I also checked the browser's console information.I found that when the third person entered the room, the console would have the following message,it said "Peer to Peer connection closed" and "Not adding remote JVB tracks - no session yet.Do you konw the reason? 1519806211 1

The below is the jvb.log message.All are the following information, no other information.please help me to see if there is a problem. vqhqw 1k6w7gkgrkp xwiq _vk97i1m6cit wz6u nxp Thank you very much for your guidance again!

damencho commented 6 years ago

Apparently the clients do not have any information for bridge ... What about jicofo logs?

f987002856 commented 6 years ago

@damencho. icofo log has error as. issues #2117. my service has no domain,only has ip address and use. /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh to create letsencrypt,but it said i used ip without domain,so can not create letsencrypt. how can i resolve it?use custom ssl to instead of it?

damencho commented 6 years ago

Have you touched the auth...domain settings or certificates? The certificate used by jicofo is internal, generated and made as trusted on the local machine only. Has nothing todo with web or letsencrypt. Default installations mange those and you should not see that problem. You are basically running without jicofo at the moment. I don't see the point of installing a certificate at all, you can continue using self signed anyway your deployment is internal and is not accessed by public address.

f987002856 commented 6 years ago

I don't setting anything,I install service by quick-install and enter my ip address,then run /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh. But when i run /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh,it has error tells me can't create letsencrypt by ip and i ignore it. you said my service running without jicofo,but if i run /etc/init.d/jicofo stop,the service peer to peer will can't run normal.so i dont konw whether jicofo is running in.my service.if not,please tell me what should i do.thank you for your response

damencho commented 6 years ago

@f987002856 I just did a quick test. I've created a DO VM with ubuntu 16.04, installed jitsi-meet as said in the quick-install guide, entering the ip address of the machine, running the let's encrypt script I received the error "Requested name X.X.X.X is an IP address. The Let's Encrypt certificate authority will not issue certificates for a bare IP address.", restarted jvb as it seems it was stopped in the process of the let's encrypt script and due to the error was not started again and everything is working fine, I'm able to enter with 3 participants without a problem.

echo 'deb https://download.jitsi.org stable/' >> /etc/apt/sources.list.d/jitsi-stable.list
wget -qO -  https://download.jitsi.org/jitsi-key.gpg.key | apt-key add -
apt-get update
apt-get -y install jitsi-meet
/usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh
/etc/init.d/jitsi-videobridge restart

I also tried restarting jicofo and there is no problem with connecting to prosody. So something broke it on your side. Did you follow the same steps? What is your OS and version?

f987002856 commented 6 years ago

@damencho Thank you very much for your guidance. My OS is ubuntu 16.04 and not install firewall. All my steps are the same as yours and I do nothing else. The error that appear are the same as yours. Now i will create new VM with ubuntu 16.04 by Oracle VM VirtualBox and install jitsi-meet as your guide. I hope that there will be no problem again,haha.

f987002856 commented 6 years ago

@damencho I can run successfully on the new virtual machine and I did not see the issue again. During installation, I ignored this step: /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh. only use self-signed. Thank you very much for your guidance.

damencho commented 6 years ago

I will close this one, as it gathered too many different problems. Most of these come from wrong configuration or missed the steps about ports and addresses.