{"action":"closed","issue":{"url":"https://api.github.com/repos/jitsi/docker-jitsi-meet/issues/11","repository_url":"https://api.github.com/repos/jitsi/docker-jitsi-meet","labels_url":"https://api.github.com/repos/jitsi/docker-jitsi-meet/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/jitsi/docker-jitsi-meet/issues/11/comments","events_url":"https://api.github.com/repos/jitsi/docker-jitsi-meet/issues/11/events","html_url":"https://github.com/jitsi/docker-jitsi-meet/issues/11","id":356673832,"node_id":"MDU6SXNzdWUzNTY2NzM4MzI=","number":11,"title":"Second participant can't connect, grey or red screens appear on both devices","user":{"login":"immanuelfodor","id":21174107,"node_id":"MDQ6VXNlcjIxMTc0MTA3","avatar_url":"https://avatars2.githubusercontent.com/u/21174107?v=4","gravatar_id":"","url":"https://api.github.com/users/immanuelfodor","html_url":"https://github.com/immanuelfodor","followers_url":"https://api.github.com/users/immanuelfodor/followers","following_url":"https://api.github.com/users/immanuelfodor/following{/other_user}","gists_url":"https://api.github.com/users/immanuelfodor/gists{/gist_id}","starred_url":"https://api.github.com/users/immanuelfodor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/immanuelfodor/subscriptions","organizations_url":"https://api.github.com/users/immanuelfodor/orgs","repos_url":"https://api.github.com/users/immanuelfodor/repos","events_url":"https://api.github.com/users/immanuelfodor/events{/privacy}","received_events_url":"https://api.github.com/users/immanuelfodor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-09-04T06:49:10Z","updated_at":"2018-09-20T14:52:02Z","closed_at":"2018-09-20T14:52:02Z","author_association":"NONE","body":"Hi, thanks for the docker-compose solution, works like a charm! :) I tried to set up the deb/manual way but this is the only one that has resulted a working video. \r\n\r\nHowever, the video feed only works if I'm the only one in the room, so it's not that fun after all :D \r\n\r\n- When the second participant tries to join the room on web, we both get the grey reconnect countdown screen. \r\n- When a mobile client tries to join a room created on web, the mobile gets the red screen, the web gets the grey screen.\r\n- When a room is created on mobile and a second mobile tries to join, both get the red screen.\r\n\r\nHere is my setup starting from a clean Ubuntu 18.04 LTS Cloud-Init KVM image ([https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img](https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img)) on Proxmox VE host, all commands run as `root` inside the VM:\r\n\r\n### Installing Docker\r\n\r\n```bash\r\napt update\r\napt upgrade -y\r\napt remove docker docker-engine docker.io docker-compose\r\napt purge docker-ce\r\n\r\ncd ~\r\ncurl -fsSL https://get.docker.com -o get-docker.sh\r\nsh get-docker.sh\r\ncat /etc/apt/sources.list.d/docker.list\r\nrm get-docker.sh \r\n\r\nuname -a\r\n# Linux jitsi-meet 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\ncurl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose\r\nchmod +x /usr/local/bin/docker-compose\r\n\r\ndocker -v\r\n# Docker version 18.06.1-ce, build e68fc7a\r\ndocker-compose version\r\n# docker-compose version 1.22.0, build f46880fe\r\n# docker-py version: 3.4.1\r\n# CPython version: 3.6.6\r\n# OpenSSL version: OpenSSL 1.1.0f  25 May 2017\r\n\r\nsystemctl status docker\r\n# active (running)\r\n```\r\n\r\n### Installing Jitsi\r\n\r\n```bash\r\nmkdir -p /opt/jitsi-config/\r\nchmod a+w /opt/jitsi-config/\r\nmkdir -p ~/github\r\ngit clone https://github.com/jitsi/docker-jitsi-meet.git ~/github/docker-jitsi-meet\r\ncd ~/github/docker-jitsi-meet\r\ncp env.example .env\r\ncat .env\r\n# replacing the config values to match my environment\r\nsed -i -E 's/(CONFIG=).*/\\1\\/opt\\/jitsi-config/g' .env\r\nsed -i -E 's/(TZ=).*/\\1MyContinent\\/MyCity/g' .env\r\nsed -i -E \"s/(JVB_COMPONENT_SECRET=).*/\\1$(openssl rand -hex 32)/g\" .env\r\nsed -i -E 's/(JVB_STUN_SERVERS=).*/\\1my.own.stun.server:port/g' .env\r\nsed -i -E \"s/(JICOFO_COMPONENT_SECRET=).*/\\1$(openssl rand -hex 32)/g\" .env\r\nsed -i -E \"s/(JICOFO_AUTH_PASSWORD=).*/\\1$(openssl rand -hex 32)/g\" .env\r\nsed -i -E 's/#?(DOCKER_HOST_ADDRESS=).*/\\1192.168.1.3/g' .env\r\ncat .env\r\n\r\n# cleanup of old configs and containers if any\r\ndocker-compose kill\r\ndocker rm docker-jitsi-meet_jvb_1 docker-jitsi-meet_jicofo_1 docker-jitsi-meet_prosody_1 docker-jitsi-meet_web_1\r\nrm -rf ~/.jitsi-meet-cfg  \r\nrm -rf /opt/jitsi-config/*\r\n\r\ndocker-compose up -d\r\ndocker ps\r\n# CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                                         NAMES\r\n# bbc3ff069565        jitsi/jvb           \"/init\"             41 minutes ago      Up 39 minutes       0.0.0.0:10000->10000/udp                      docker-jitsi-meet_jvb_1\r\n# aea6cce3f928        jitsi/jicofo        \"/init\"             41 minutes ago      Up 39 minutes                                                     docker-jitsi-meet_jicofo_1\r\n# b75362a2a10b        jitsi/prosody       \"/init\"             41 minutes ago      Up 39 minutes       5222/tcp, 5269/tcp, 5280-5281/tcp, 5347/tcp   docker-jitsi-meet_prosody_1\r\n# 2919f0690e92        jitsi/web           \"/init\"             41 minutes ago      Up 39 minutes       0.0.0.0:8000->80/tcp, 0.0.0.0:8443->443/tcp   docker-jitsi-meet_web_1\r\n# later copypaste here than their actual start :D\r\n\r\nchmod -R 0777 /opt/jitsi-config\r\n```\r\n\r\nI'm aware of this comment about storing configs outside of root-only access path, so I use a directory in `/opt` with all access provided as you can see above: https://github.com/jitsi/docker-jitsi-meet/issues/5#issuecomment-413805288\r\nI've also found this comment about the absolute BOSH URL, tried it with and without the `DOCKER_HOST_ADDRESS` config commented but it didn't help: https://github.com/jitsi/docker-jitsi-meet/issues/2#issuecomment-409202397\r\n\r\nJitsi is running behind an nginx reverse proxy that is configured to `listen 443 ssl http2`, it gets valid SSL certs from LE, has a single location `/` with `proxy_pass http://192.168.1.3:8000`. Port 443/tcp is open on WAN gateway and pointed to the proxy, 10000/udp is open and pointed to the Jitsi VM (192.168.1.3:10000/udp) just as the official image says:\r\n\r\n![Env image](https://github.com/jitsi/docker-jitsi-meet/raw/master/resources/docker-jitsi-meet.png)\r\n\r\nClients are latest Chrome on Linux or latest Jitsi Android apps. I must add that I've only tried to access `https://myjitsi.domain.tld` from inside the LAN on the computer but also tried to connect to it from mobile internet on the phones with same result. \r\n\r\nChrome doesn't output any error on dev tools with the first participant (only complaining about a woff file but uses a fallback instead):\r\n\r\n```\r\n[Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: https://myjitsi.domain.tld/fonts/jitsi.woff?94d075\r\nF\t@\tjquery.min.js:2\r\n```\r\n\r\nWhen the second participant connects, an error appears for a couple of seconds until page reload:\r\n\r\n```\r\n[conference.js] <e.value>:  CONFERENCE FAILED: conference.videobridgeNotAvailable\r\n```\r\n\r\nOn the page reload, there are more errors on the console:\r\n\r\n```\r\nLogger.js:125 [modules/xmpp/strophe.util.js] <Object.i.Strophe.log>:  Strophe: TypeError: Cannot read property 'getMemberRole' of null\r\n    at r._onIncomingCallP2P (https://myjitsi.domain.tld/libs/lib-jitsi-meet.min.js?v=2942:2:242696)\r\n    at r.onIncomingCall (https://myjitsi.domain.tld/libs/lib-jitsi-meet.min.js?v=2942:2:243454)\r\n    at n.emit (https://myjitsi.domain.tld/libs/lib-jitsi-meet.min.js?v=2942:2:96313)\r\n    at a.value (https://myjitsi.domain.tld/libs/lib-jitsi-meet.min.js?v=2942:2:738288)\r\n    at s.Handler.run (https://myjitsi.domain.tld/libs/lib-jitsi-meet.min.js?v=2942:2:23250)\r\n    at https://myjitsi.domain.tld/libs/lib-jitsi-meet.min.js?v=2942:2:31567\r\n    at Object.forEachChild (https://myjitsi.domain.tld/libs/lib-jitsi-meet.min.js?v=2942:2:14907)\r\n    at s.Connection._dataRecv (https://myjitsi.domain.tld/libs/lib-jitsi-meet.min.js?v=2942:2:31400)\r\n    at e.Bosh._onRequestStateChange (https://myjitsi.domain.tld/libs/lib-jitsi-meet.min.js?v=2942:2:50925)\r\nLogger.js:125 [JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>:  UnhandledError: null Script: null Line: null Column: null StackTrace:  Error: Strophe: error: Cannot read property 'getMemberRole' of null\r\n    at Object.i.Strophe.log (strophe.util.js:89)\r\n    at Object.fatal (strophe.js:2093)\r\n    at Object._handleError (strophe.js:2005)\r\n    at s.Handler.run (strophe.js:2558)\r\n    at strophe.js:3822\r\n    at Object.forEachChild (strophe.js:1522)\r\n    at s.Connection._dataRecv (strophe.js:3810)\r\n    at e.Bosh._onRequestStateChange (strophe.js:5559)\r\nLogger.js:125 [modules/xmpp/strophe.util.js] <Object.i.Strophe.log>:  Strophe: error: Cannot read property 'getMemberRole' of null\r\n```\r\n\r\nThen this error repeats over and over on every page reload. If one client is reloaded before another, it shows the camera image and the whole room interface but then when the second connects, grey screen again.\r\n\r\nOn mobile, there is a flash of two participants in the room (two boxes of avatars with white border) but then the red screen happens on both devices.\r\n\r\nWhat am I doing wrong or is missing? It seems Jitsi is working fine when used alone but not with two participants. Do you have some recommendations what or where to investigate further? "}}
{"actor":{"display_login":"immanuelfodor"}}