Max Occupants in Docker

Hi @saghul

I have seen many asking about setting up mux_max_occupants in docker but unanswered. I have added this configuration in .lua file and I could see the configuration came ok when I login to the container and check the configuration file. However it throws so many errors on prosody logs meeting is broken. Can you shed some lights here?

Component “muc.mydomain.com” “muc”
storage = “memory”
modules_enabled = {
“muc_max_occupants”,
“muc_meeting_id”;

    "token_moderation";


    "token_verification";

}
muc_max_occupants = 5
muc_room_cache_size = 1000
muc_room_locking = false
muc_room_default_public_jids = true

Errors on prosody

t to index upvalue ‘whitelist’ (a nil value)
stack traceback:
/prosody-plugins/mod_muc_max_occupants.lua:30: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/modules/muc/muc.lib.lua:451: in function </usr/lib/prosody/modules/muc/muc.lib.lua:431>
(…tail calls…)
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/core/stanza_router.lua:180: in function ‘core_post_stanza’
/usr/lib/prosody/core/stanza_router.lua:127: in function ‘core_process_stanza’
/usr/lib/prosody/modules/mod_c2s.lua:275: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
c2s555df2a3f9c0 error Traceback[c2s]: /prosody-plugins/mod_muc_max_occupants.lua:30: attempt to index upvalue ‘whitelist’ (a nil value)
stack traceback:
/prosody-plugins/mod_muc_max_occupants.lua:30: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/modules/muc/muc.lib.lua:561: in function </usr/lib/prosody/modules/muc/muc.lib.lua:498>
(…tail calls…)
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/core/stanza_router.lua:180: in function ‘core_post_stanza’
/usr/lib/prosody/core/stanza_router.lua:127: in function ‘core_process_stanza’
/usr/lib/prosody/modules/mod_c2s.lua:275: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
c2s555df2a3f9c0 error Traceback[c2s]: /prosody-plugins/mod_muc_max_occupants.lua:30: attempt to index upvalue ‘whitelist’ (a nil value)

Help will be highly appreciated

Thanks
Swathi

Hum, which version are you running, I think this error was fixed while ago, strange ?

You can try adding muc_access_whitelist = {}

1 Like

that helped , thank you