When starting Prosody 0.12 with enabled "turn_external" module, I am getting an error loading it.
Mar 27 17:10:06 [prosody] modulemanager: Error initializing module 'turn_external' on '<DOMAIN>': /usr/lib64/prosody/modules/mod_turn_external.lua:11: mod_turn_external requires that 'turn_external_secret' be set__stack traceback:__[C]: in function 'error'__/usr/lib64/prosody/modules/mod_turn_external.lua:11: in main chunk__[C]: in function 'util.xpcall.xpcall'__/usr/lib64/prosody/core/modulemanager.lua:269: in upvalue 'do_load_module'__/usr/lib64/prosody/core/modulemanager.lua:352: in function 'core.modulemanager.load'__/usr/lib64/prosody/core/modulemanager.lua:131: in function 'core.modulemanager.load_modules_for_host'__/usr/lib64/prosody/util/events.lua:81: in function </usr/lib64/prosody/util/events.lua:77>__(...tail calls...)__/usr/lib64/prosody/core/hostmanager.lua:108: in function 'core.hostmanager.activate'__/usr/lib64/prosody/core/hostmanager.lua:58: in field '?'__/usr/lib64/prosody/util/events.lua:81: in function </usr/lib64/prosody/util/events.lua:77>__(...tail calls...)__/usr/lib64/prosody/util/startup.lua:421: in function 'util.startup.prepare_to_start'__/usr/lib64/prosody/util/startup.lua:696: in function 'util.startup.prosody'__/usr/lib64/prosody/util/async.lua:156: in upvalue 'func'__/usr/lib64/prosody/util/async.lua:144: in function </usr/lib64/prosody/util/async.lua:142>
- Last output repeated twice -
Conrad Kostecki
on
This error is being caused by _not_ configuring 'turn_external_secret=' in prosody.cfg.lua. I would expect a proper error message about missing configuration.
When starting Prosody 0.12 with enabled "turn_external" module, I am getting an error loading it. Mar 27 17:10:06 [prosody] modulemanager: Error initializing module 'turn_external' on '<DOMAIN>': /usr/lib64/prosody/modules/mod_turn_external.lua:11: mod_turn_external requires that 'turn_external_secret' be set__stack traceback:__[C]: in function 'error'__/usr/lib64/prosody/modules/mod_turn_external.lua:11: in main chunk__[C]: in function 'util.xpcall.xpcall'__/usr/lib64/prosody/core/modulemanager.lua:269: in upvalue 'do_load_module'__/usr/lib64/prosody/core/modulemanager.lua:352: in function 'core.modulemanager.load'__/usr/lib64/prosody/core/modulemanager.lua:131: in function 'core.modulemanager.load_modules_for_host'__/usr/lib64/prosody/util/events.lua:81: in function </usr/lib64/prosody/util/events.lua:77>__(...tail calls...)__/usr/lib64/prosody/core/hostmanager.lua:108: in function 'core.hostmanager.activate'__/usr/lib64/prosody/core/hostmanager.lua:58: in field '?'__/usr/lib64/prosody/util/events.lua:81: in function </usr/lib64/prosody/util/events.lua:77>__(...tail calls...)__/usr/lib64/prosody/util/startup.lua:421: in function 'util.startup.prepare_to_start'__/usr/lib64/prosody/util/startup.lua:696: in function 'util.startup.prosody'__/usr/lib64/prosody/util/async.lua:156: in upvalue 'func'__/usr/lib64/prosody/util/async.lua:144: in function </usr/lib64/prosody/util/async.lua:142> - Last output repeated twice -
This error is being caused by _not_ configuring 'turn_external_secret=' in prosody.cfg.lua. I would expect a proper error message about missing configuration.
Hi Conrad, thanks for the report! I've fixed this in https://hg.prosody.im/trunk/rev/9f5d0b77e3df - it will be in future 0.12 nightly builds, and 0.12.1 when we release that.
ChangesGreat, many thanks :-)