Kick Participant doesn't work

Hi everybody,

we have a local installation of a jitsi server and we develop a UI using lib-jitsi-meet.

We want to implement the feature “Moderator can kick participant out of the conference”, but it doesn’t work. Unfortunatally I can’t find an error or a reason. Maybe it is also a problem of the server installation. Is there anything that has to be configured?

What we have

  • Jitsi Server using auth-tokens
  • First Participant in the room is moderator

If there are more informations needed to the server installation, please ask, I have will forward the questions to our IT. The installation was not done by me.

What we tried
We tried two different UIs

  1. Our own UI using lib-jitsi-meet
  2. The “official” ui from the server by just callling the URL https://our-jitsi-server.de/ourroom/jwt=token

In case 1, we called the method this.conference.kickParticipant('participantId'). I found out, that it comes until https://github.com/jitsi/lib-jitsi-meet/blob/master/modules/xmpp/ChatRoom.js line 997. I see the output

Kick participant with jid:  ourroom@conference.our-jitsi-server.de/ce2ac068
<iq xmlns="jabber:client"
	type="result"
	to="a253081d-8b8e-4ec5-af75-6ed1d976b998@our-jitsi-server.de/fc48589f-9c67-4fac-b6cb-47770353f953"
	from="ourroom@conference.our-jitsi-server.de"
	id="657a3567-2106-4bf0-ad90-926734c8f912:sendIQ"/>

And that’s it. It happens nothing. No errors. Neither on the browser console nor on the server-log. The kicked participant doesn’t receive any event. and is still in the conference.

In case 2, we at least get an error on the ui:

<iq xmlns="jabber:client"
	type="error"
	to="ef91624d-0ce0-4f4f-9ae7-f36ad337a408@our-jitsi-server.de/10adb6d9-2fc9-4e1c-96d7-e518b2b03d1c"
	from="ourroom@conference.our-jitsi-server.de"
	id="88588a05-b505-4607-9380-a222977d7178:sendIQ">
	<error type="modify">
		<not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
	</error>
</iq>

But that’s it. I didn’t find anything on the server. Neither in jvb-logs nor in prosody-logs.

Is this patch sill necessary? https://github.com/jitsi/jitsi-meet/blob/b01ad360da76d12538cd4070b23d1b891b8f70e9/resources/prosody-plugins/muc_owner_allow_kick.patch

That patch is needed only if you had enable all moderators module.

What is the prosody version you use?

I would enable debug logging in prosody (its very chatty) and check what happens with the message when kicking, there can be some hints.

Hi damencho,

thanks for your reply.

About the prosody-version: We installed the package prosody-trunk 1nightly607-1~trusty amd64 Lightweight Jabber/XMPP server. I hope, this helps.

The logs look ok for me.

Case 1 (using our client with lib-jitsi-meet)

<iq xmlns="jabber:client" type="result" to="4c3acd26-9a9e-4b7c-8417-0d18c3aa21b5@our-jitsi-server.de/be807c98-d688-4bbf-9d40-204cb5768da3" from="ourroom@conference.our-jitsi-server.de" id="36c57971-3754-43c9-9a8b-1f6badba65ed:sendIQ"/>


Aug 08 13:30:55 jcp5564959ae780 debug   Received[component]: <iq id='yQtPs-518' type='get' to='our-jitsi-server.de' from='focus.our-jitsi-server.de'>
Aug 08 13:30:55 http.server     debug   Firing event: OPTIONS our-jitsi-server.de/http-bind
Aug 08 13:30:55 http.server     debug   Firing event: POST our-jitsi-server.de/http-bind
Aug 08 13:30:55 mod_bosh        debug   Handling new request table: 0x556495f82330: <body rid='2600617689' xmlns='http://jabber.org/protocol/httpbind' sid='457489f9-4908-4403-9e92-8513379042bd'><iq type='get' to='our-jitsi-server.de' xmlns='jabber:client' id='2093ead9-e5b2-4f9d-89c1-20bfa7611aa8:sendIQ'><ping xmlns='urn:xmpp:ping'/></iq></body>
----------
Aug 08 13:30:55 mod_bosh        debug   BOSH body open (sid: 457489f9-4908-4403-9e92-8513379042bd)
Aug 08 13:30:55 mod_bosh        debug   BOSH stanza received: <iq id='2093ead9-e5b2-4f9d-89c1-20bfa7611aa8:sendIQ' type='get' to='our-jitsi-server.de'>

Aug 08 13:30:55 bosh457489f9-4908-4403-9e92-8513379042bd        debug   Received[c2s]: <iq id='2093ead9-e5b2-4f9d-89c1-20bfa7611aa8:sendIQ' type='get' to='our-jitsi-server.de'>
Aug 08 13:30:55 mod_bosh        debug   We have an open request, so sending on that
Aug 08 13:30:55 mod_bosh        debug   Request destroyed: table: 0x556495f5fe10
Aug 08 13:30:55 mod_bosh        debug   Session 457489f9-4908-4403-9e92-8513379042bd has 1 out of 1 requests open
Aug 08 13:30:55 mod_bosh        debug   and there are 0 things in the send_buffer:
Aug 08 13:30:55 mod_bosh        debug   Have nothing to say, so leaving request unanswered for now
Aug 08 13:30:55 http.server     debug   Firing event: OPTIONS our-jitsi-server.de/http-bind
Aug 08 13:30:55 http.server     debug   Firing event: POST our-jitsi-server.de/http-bind
Aug 08 13:30:55 mod_bosh        debug   Handling new request table: 0x556495e74510: <body rid='2600617690' xmlns='http://jabber.org/protocol/httpbind' sid='457489f9-4908-4403-9e92-8513379042bd'><iq to='ourroom@conference.our-jitsi-server.de' type='set' xmlns='jabber:client' id='a7116478-18e1-4772-945d-9f9a0c051123:sendIQ'><query xmlns='http://jabber.org/protocol/muc#admin'><item nick='4bd98426' role='none'><reason>You have been kicked.</reason></item></query></iq></body>
----------
Aug 08 13:30:55 mod_bosh        debug   BOSH body open (sid: 457489f9-4908-4403-9e92-8513379042bd)
Aug 08 13:30:55 mod_bosh        debug   BOSH stanza received: <iq id='a7116478-18e1-4772-945d-9f9a0c051123:sendIQ' type='set' to='ourroom@conference.our-jitsi-server.de'>

Aug 08 13:30:55 bosh457489f9-4908-4403-9e92-8513379042bd        debug   Received[c2s]: <iq id='a7116478-18e1-4772-945d-9f9a0c051123:sendIQ' type='set' to='ourroom@conference.our-jitsi-server.de'>
Aug 08 13:30:55 mod_bosh        debug   We have an open request, so sending on that
Aug 08 13:30:55 mod_bosh        debug   Request destroyed: table: 0x556495f82380
Aug 08 13:30:55 mod_bosh        debug   Session 457489f9-4908-4403-9e92-8513379042bd has 1 out of 1 requests open
Aug 08 13:30:55 mod_bosh        debug   and there are 0 things in the send_buffer:
Aug 08 13:30:55 mod_bosh        debug   Have nothing to say, so leaving request unanswered for now
Aug 08 13:30:55 c2s556495910520 debug   Received[c2s]: <iq id='yQtPs-519' type='get' to='jitsi-videobridge.our-jitsi-server.de'>
Aug 08 13:30:55 jcp5564959edc90 debug   Received[component]: <iq id='yQtPs-519' type='result' to='focus@auth.our-jitsi-server.de/focus6259639463' from='jitsi-videobridge.our-jitsi-server.de'>
Aug 08 13:30:56 jcp5564959edc90 debug   Received[component]: <iq id='3WaAh-210' type='get' to='our-jitsi-server.de' from='jitsi-videobridge.our-jitsi-server.de'>

Case 2 (Using the “official” client)

Aug 08 13:40:25 jcp5564959ae780 debug   Received[component]: <iq id='yQtPs-1061' type='get' to='our-jitsi-server.de' from='focus.our-jitsi-server.de'>
Aug 08 13:40:25 c2s556495910520 debug   Received[c2s]: <iq id='yQtPs-1062' type='get' to='jitsi-videobridge.our-jitsi-server.de'>
Aug 08 13:40:25 jcp5564959edc90 debug   Received[component]: <iq id='yQtPs-1062' type='result' to='focus@auth.our-jitsi-server.de/focus6259639463' from='jitsi-videobridge.our-jitsi-server.de'>
Aug 08 13:40:26 jcp5564959edc90 debug   Received[component]: <iq id='3WaAh-454' type='get' to='our-jitsi-server.de' from='jitsi-videobridge.our-jitsi-server.de'>
Aug 08 13:40:28 http.server     debug   Firing event: POST our-jitsi-server.de/http-bind
Aug 08 13:40:28 mod_bosh        debug   Handling new request table: 0x556495ddfe30: <body rid='3103456706' xmlns='http://jabber.org/protocol/httpbind' sid='1ffbfaab-3a77-4808-a970-977f71221047'><iq type='get' to='our-jitsi-server.de' xmlns='jabber:client' id='e8db98b9-8e76-45a3-8808-4a60f7e2f053:sendIQ'><ping xmlns='urn:xmpp:ping'/></iq></body>
----------
Aug 08 13:40:28 mod_bosh        debug   BOSH body open (sid: 1ffbfaab-3a77-4808-a970-977f71221047)
Aug 08 13:40:28 mod_bosh        debug   BOSH stanza received: <iq id='e8db98b9-8e76-45a3-8808-4a60f7e2f053:sendIQ' type='get' to='our-jitsi-server.de'>

Aug 08 13:40:28 bosh1ffbfaab-3a77-4808-a970-977f71221047        debug   Received[c2s]: <iq id='e8db98b9-8e76-45a3-8808-4a60f7e2f053:sendIQ' type='get' to='our-jitsi-server.de'>
Aug 08 13:40:28 mod_bosh        debug   We have an open request, so sending on that
Aug 08 13:40:28 mod_bosh        debug   Request destroyed: table: 0x556495d63b70
Aug 08 13:40:28 mod_bosh        debug   Session 1ffbfaab-3a77-4808-a970-977f71221047 has 1 out of 1 requests open
Aug 08 13:40:28 mod_bosh        debug   and there are 0 things in the send_buffer:
Aug 08 13:40:28 mod_bosh        debug   Have nothing to say, so leaving request unanswered for now
Aug 08 13:40:28 http.server     debug   Firing event: POST our-jitsi-server.de/http-bind
Aug 08 13:40:28 mod_bosh        debug   Handling new request table: 0x556495ebbd90: <body rid='3103456707' xmlns='http://jabber.org/protocol/httpbind' sid='1ffbfaab-3a77-4808-a970-977f71221047'><iq to='ourroom@conference.our-jitsi-server.de' type='set' xmlns='jabber:client' id='705ecc1a-c254-49f8-8ce3-7796fb167568:sendIQ'><query xmlns='http://jabber.org/protocol/muc#admin'><item nick='c764e758' role='none'><reason>You have been kicked.</reason></item></query></iq></body>
----------
Aug 08 13:40:28 mod_bosh        debug   BOSH body open (sid: 1ffbfaab-3a77-4808-a970-977f71221047)
Aug 08 13:40:28 mod_bosh        debug   BOSH stanza received: <iq id='705ecc1a-c254-49f8-8ce3-7796fb167568:sendIQ' type='set' to='ourroom@conference.our-jitsi-server.de'>

Aug 08 13:40:28 bosh1ffbfaab-3a77-4808-a970-977f71221047        debug   Received[c2s]: <iq id='705ecc1a-c254-49f8-8ce3-7796fb167568:sendIQ' type='set' to='ourroom@conference.our-jitsi-server.de'>
Aug 08 13:40:28 mod_bosh        debug   We have an open request, so sending on that
Aug 08 13:40:28 mod_bosh        debug   Request destroyed: table: 0x556495cf6370
Aug 08 13:40:28 boshfc9b9787-5125-4805-a13a-82d88e72ef51        debug   BOSH session marked as inactive (for 60s)
Aug 08 13:40:28 mod_bosh        debug   We have an open request, so sending on that
Aug 08 13:40:28 mod_bosh        debug   Request destroyed: table: 0x556495d1e670
Aug 08 13:40:28 mod_bosh        debug   Session 1ffbfaab-3a77-4808-a970-977f71221047 has 1 out of 1 requests open
Aug 08 13:40:28 mod_bosh        debug   and there are 0 things in the send_buffer:
Aug 08 13:40:28 mod_bosh        debug   Have nothing to say, so leaving request unanswered for now
Aug 08 13:40:28 http.server     debug   Firing event: POST our-jitsi-server.de/http-bind
Aug 08 13:40:28 mod_bosh        debug   Handling new request table: 0x556495ebd450: <body rid='1421707103' xmlns='http://jabber.org/protocol/httpbind' sid='fc9b9787-5125-4805-a13a-82d88e72ef51'/>
----------
Aug 08 13:40:28 mod_bosh        debug   BOSH body open (sid: fc9b9787-5125-4805-a13a-82d88e72ef51)
Aug 08 13:40:28 mod_bosh        debug   Session fc9b9787-5125-4805-a13a-82d88e72ef51 has 1 out of 1 requests open
Aug 08 13:40:28 mod_bosh        debug   and there are 0 things in the send_buffer:
Aug 08 13:40:28 mod_bosh        debug   Have nothing to say, so leaving request unanswered for now
Aug 08 13:40:30 jcp5564959ae780 debug   Received[component]: <iq id='yQtPs-1065' type='get' to='our-jitsi-server.de' from='focus.our-jitsi-server.de'>
Aug 08 13:40:30 http.server     debug   Firing event: POST our-jitsi-server.de/http-bind
Aug 08 13:40:30 mod_bosh        debug   Handling new request table: 0x556495e3eb40: <body rid='1421707104' xmlns='http://jabber.org/protocol/httpbind' sid='fc9b9787-5125-4805-a13a-82d88e72ef51'><iq type='get' to='our-jitsi-server.de' xmlns='jabber:client' id='ee59be2f-5397-468e-b742-cd2b87560939:sendIQ'><ping xmlns='urn:xmpp:ping'/></iq></body>
----------
Aug 08 13:40:30 mod_bosh        debug   BOSH body open (sid: fc9b9787-5125-4805-a13a-82d88e72ef51)
Aug 08 13:40:30 mod_bosh        debug   BOSH stanza received: <iq id='ee59be2f-5397-468e-b742-cd2b87560939:sendIQ' type='get' to='our-jitsi-server.de'>

Aug 08 13:40:30 boshfc9b9787-5125-4805-a13a-82d88e72ef51        debug   Received[c2s]: <iq id='ee59be2f-5397-468e-b742-cd2b87560939:sendIQ' type='get' to='our-jitsi-server.de'>
Aug 08 13:40:30 mod_bosh        debug   We have an open request, so sending on that
Aug 08 13:40:30 mod_bosh        debug   Request destroyed: table: 0x556496129790
Aug 08 13:40:30 mod_bosh        debug   Session fc9b9787-5125-4805-a13a-82d88e72ef51 has 1 out of 1 requests open
Aug 08 13:40:30 mod_bosh        debug   and there are 0 things in the send_buffer:
Aug 08 13:40:30 mod_bosh        debug   Have nothing to say, so leaving request unanswered for now

There is a bug about kicking which I reported and was fixed later after version 607. Use version trunk 747, should be ok with it as we have used that version for long time.

Thanks, we will try it.

Thanks for your help. After updating prosody it works as expected and we can continue.