Meeting getting disconnected with jitsi-meet unstable build

I created a web docker image using jitsi-meet unstable repo. I started a meeting with one participant only and after couple of minutes I’m getting Unfortunately something went wrong error.

Console logs

2021-01-21T09:23:39.252Z [modules/xmpp/XmppConnection.js] Detected that shard changed from undefined to null
o @ VM1051 lib-jitsi-meet.min.js:10
(anonymous) @ VM1051 lib-jitsi-meet.min.js:1
Promise.then (async)
_keepAliveAndCheckShard @ VM1051 lib-jitsi-meet.min.js:1
(anonymous) @ VM1051 lib-jitsi-meet.min.js:1
setTimeout (async)
_maybeStartWSKeepAlive @ VM1051 lib-jitsi-meet.min.js:1
_stropheConnectionCb @ VM1051 lib-jitsi-meet.min.js:1
_changeConnectStatus @ VM1051 lib-jitsi-meet.min.js:1
_onSessionResultIQ @ VM1051 lib-jitsi-meet.min.js:1
run @ VM1051 lib-jitsi-meet.min.js:1
(anonymous) @ VM1051 lib-jitsi-meet.min.js:1
forEachChild @ VM1051 lib-jitsi-meet.min.js:1
_dataRecv @ VM1051 lib-jitsi-meet.min.js:1
_onMessage @ VM1051 lib-jitsi-meet.min.js:1
VM1051 lib-jitsi-meet.min.js:10

 2021-01-21T09:23:39.253Z [modules/statistics/statistics.js] <Function.b.sendAnalyticsAndLog>:  {"type":"operational","action":"connection.failed","attributes":{"error_type":"connection.otherError","shard_changed":true,"suspend_time":2,"time_since_last_success":9066}}
VM1052 app.bundle.min.js:106
 2021-01-21T09:23:39.264Z [features/overlay] <Object.componentDidMount>:  The conference will be reloaded after 16 seconds

Jicofo logs

jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.539 INFO: [79] org.jitsi.jicofo.xmpp.IqHandler.log() Logout IQ received: <iq to='focus.meet.example.com' from='39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com/mLPkE2sA' id='c913526f-b20d-4871-ab4f-351ebb1e3947:sendIQ' type='set'><conference xmlns='http://jitsi.org/protocol/focus' room='30105840@muc.meet.example.com' machine-uid='e2898abd9fdce2b5940577d2f16357f5'><property xmlns='http://jitsi.org/protocol/focus' name='disableRtx' value='false'/><property xmlns='http://jitsi.org/protocol/focus' name='startAudioMuted' value='10'/><property xmlns='http://jitsi.org/protocol/focus' name='startVideoMuted' value='10'/><property xmlns='http://jitsi.org/protocol/focus' name='stereo' value='false'/></conference></iq>
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.540 INFO: [79] org.jitsi.jicofo.xmpp.ConferenceIqHandler.log() Focus request for room: 30105840@muc.meet.example.com
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.540 INFO: [79] org.jitsi.jicofo.auth.AbstractAuthAuthority.log() Authentication session created for 39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com SID: 38d4768b-0cda-49b1-af24-940501c8da70
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.540 INFO: [79] org.jitsi.jicofo.auth.AbstractAuthAuthority.log() Authenticated jid: 39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com/mLPkE2sA with session: AuthSession[ID=39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com, JID=39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com/mLPkE2sA, SID=38d4768b-0cda-49b1-af24-940501c8da70, MUID=e2898abd9fdce2b5940577d2f16357f5, LIFE_TM_SEC=0, R=30105840@muc.meet.example.com]@1453436306
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.540 INFO: [79] org.jitsi.jicofo.auth.AbstractAuthAuthority.log() Jid 39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com/mLPkE2sA authenticated as: 39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.541 INFO: [79] org.jitsi.jicofo.FocusManager.log() Created new focus for 30105840@muc.meet.example.com@auth.meet.example.com. Conference count 1,options: startAudioMuted=10 stereo=false startVideoMuted=10 disableRtx=false
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.541 INFO: [79] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Joining the room: 30105840@muc.meet.example.com
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.664 INFO: [27] org.jitsi.jicofo.ChatRoomRoleAndPresence.log() Chat room event ChatRoomMemberPresenceChangeEvent[type=MemberJoined sourceRoom=org.jitsi.impl.protocol.xmpp.ChatRoomImpl@67d2615b member=ChatMember[30105840@muc.meet.example.com/39f24cee, jid: null]@1697400835]
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.664 WARNING: [27] org.jitsi.jicofo.ChatRoomRoleAndPresence.log() Focus role unknown
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.664 INFO: [27] org.jitsi.jicofo.ChatRoomRoleAndPresence.log() Obtained focus role: OWNER
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:13:05.668 INFO: [27] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Member 39f24cee joined.
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:14:11.753 INFO: [18] org.jitsi.jicofo.auth.AbstractAuthAuthority.log() Expiring session:AuthSession[ID=39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com, JID=39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com/mLPkE2sA, SID=38d4768b-0cda-49b1-af24-940501c8da70, MUID=e2898abd9fdce2b5940577d2f16357f5, LIFE_TM_SEC=66, R=30105840@muc.meet.example.com]@1453436306
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:16:44.462 INFO: [27] org.jitsi.jicofo.ChatRoomRoleAndPresence.log() Chat room event ChatRoomMemberPresenceChangeEvent[type=MemberLeft sourceRoom=org.jitsi.impl.protocol.xmpp.ChatRoomImpl@67d2615b member=ChatMember[30105840@muc.meet.example.com/39f24cee, jid: 39f24cee-0442-4241-87af-f8d23a435b32@meet.example.com/mLPkE2sA]@1697400835]
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:16:44.463 INFO: [27] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Member 39f24cee is leaving
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:16:44.463 WARNING: [27] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Participant not found for 39f24cee terminated already or never started ?
jitsi_jicofo.1.jnmti2vmp3ka@demo2    | Jicofo 2021-01-21 14:16:44.471 INFO: [27] org.jitsi.jicofo.FocusManager.log() Disposed conference for room: 30105840@muc.meet.example.com conference count: 0

prosody logs

jitsi_prosody.1.2pfujze3fg5m@demo2    | c2s55d86ffe3b80                                                 info    Client connected
jitsi_prosody.1.2pfujze3fg5m@demo2    | c2s55d86ffe3b80                                                 info    Authenticated as 5e4b5263-b608-4b86-b390-3a6de3e10426@d.nextmeet.in
jitsi_prosody.1.2pfujze3fg5m@demo2    | speakerstats.meet.example.com:speakerstats_component               warn    A module has been configured that triggers external events.
jitsi_prosody.1.2pfujze3fg5m@demo2    | speakerstats.meet.example.com:speakerstats_component               warn    Implement this lib to trigger external events.
jitsi_prosody.1.2pfujze3fg5m@demo2    | c2s55d86ffe3b80                                                 info    Client disconnected: connection closed

@damencho Please help.

Which version of jitsi-meet is that?

We fixed this in lib-jitsi-meet it may have not reached jitsi-meet, I need to check

root@d:/# dpkg -l | grep jitsi
ii jitsi-meet-web 1.0.4655-1 all

Yep, that does not have that fix. You can update to 4656 at least and you will get it.

1 Like

Thanks @damencho I’ll try it and get back to you if I face any issue.

Its working fine now.
Thanks @damencho

Hello @damencho Today again I’m getting same error. Yesterday I was accessing it using jwt and today I removed all the authentication(open for everyone).

version : jitsi-meet-web 1.0.4657-1

Please let me know if you need some more info.

deploymentInfo from config.js

deploymentInfo: {
         shard: 'shard1',
         envType: 'dev',
         region: 'europe',
         userRegion: '',
         crossRegion: (!'' || 'europe' === 'default_region') ? 0 : 1
},

@damencho Today I added above part hence it stopped working and yesterday it was working because this part wasn’t there.

So if you put that in the config.js than make sure your webserver is returning the shard name in the http headers for the websocket x-jitsi-shard.

2 Likes

Hello @damencho
Do I have to add it in meet.conf file ?

This is a header to be added on the websocket location in the webserver config. So code can check whether the initial shard connection that goes to shard1 (loading of config.js) at some point changes to another shard … checking the websocket returned headers, also allow the headers to be used from the code with Access-Control-Expose-Headers

This happens with the web client as well on meet.jit.si. The message is:

Logger.js:154 2021-04-11T11:03:22.397Z [modules/xmpp/XmppConnection.js] Detected that shard changed from meet-jit-si-eu-central-1b-s39 to meet-jit-si-eu-central-1a-s46
2021-04-11T11:03:22.398Z [modules/statistics/statistics.js] <Function.b.sendAnalyticsAndLog>:  {"type":"operational","action":"connection.failed","attributes":{"error_type":"connection.otherError","shard_changed":true,"suspend_time":0,"time_since_last_success":2819}}
Logger.js:154 2021-04-11T11:03:22.414Z [features/overlay] <Object.componentDidMount>:  The conference will be reloaded after 22 seconds.
Logger.js:154 2021-04-11T11:03:22.472Z [modules/e2eping/e2eping.js] <u.stop>:  Stopping e2eping
Logger.js:154 2021-04-11T11:03:22.474Z [modules/xmpp/ChatRoom.js] <E.doLeave>:  do leave tvk%c3%a5rsm%c3%b6te2021-04-11@conference.meet.jit.si/b80dd2ea
Logger.js:154 2021-04-11T11:03:22.739Z [modules/UI/videolayout/LargeVideoManager.js] hover in local
Logger.js:154 2021-04-11T11:03:24.416Z [features/base/redux] <Object.persistState>:  redux state persisted. 483149ea40128d589fd68391aa77d9c8 -> 06ec987354137c48a5539f8c93e0a9f8