In Prosody 0.12 the community module mod_auth_cyrus does not honour the configuration variable "plugin_paths".
This means it can not longer find the requires sasl_cyrus.lua.
For plugin_paths = { "/usr/lib/prosody/modules", "/usr/local/prosody-modules.hg" }:
Apr 15 23:45:14 modulemanager error Error initializing module 'auth_cyrus' on 'example.com: /usr/lib/prosody/util/startup.lua:195: module 'util.sasl_cyrus' not found:
no field package.preload['util.sasl_cyrus']
no file '/usr/lib/prosody/util/sasl_cyrus.lua'
no file '/usr/local/share/lua/5.2/util/sasl_cyrus.lua'
no file '/usr/local/share/lua/5.2/util/sasl_cyrus/init.lua'
no file '/usr/local/lib/lua/5.2/util/sasl_cyrus.lua'
no file '/usr/local/lib/lua/5.2/util/sasl_cyrus/init.lua'
no file '/usr/share/lua/5.2/util/sasl_cyrus.lua'
no file '/usr/share/lua/5.2/util/sasl_cyrus/init.lua'
no file '/var/lib/prosody/custom_plugins/share/lua/5.2/util/sasl_cyrus.lua'
no file '/var/lib/prosody/custom_plugins/share/lua/5.2/util/sasl_cyrus/init.lua'
no file '/usr/lib/prosody/util/sasl_cyrus.so'
no file '/usr/local/lib/lua/5.2/util/sasl_cyrus.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.2/util/sasl_cyrus.so'
no file '/usr/lib/lua/5.2/util/sasl_cyrus.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file '/usr/lib/prosody/util.so'
no file '/usr/local/lib/lua/5.2/util.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.2/util.so'
no file '/usr/lib/lua/5.2/util.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
stack traceback:
[C]: in function '_real_require'
/usr/lib/prosody/util/startup.lua:195: in function 'require'
...cal/prosody-modules.hg/mod_auth_cyrus/mod_auth_cyrus.lua:22: in main chunk
[C]: in function 'xpcall'
/usr/lib/prosody/core/modulemanager.lua:269: in function 'do_load_module'
/usr/lib/prosody/core/modulemanager.lua:352: in function 'load'
/usr/lib/prosody/core/usermanager.lua:97: in function '?'
/usr/lib/prosody/util/events.lua:81: in function </usr/lib/prosody/util/events.lua:77>
(...tail calls...)
/usr/lib/prosody/core/hostmanager.lua:108: in function 'activate'
/usr/lib/prosody/core/hostmanager.lua:58: in function '?'
/usr/lib/prosody/util/events.lua:81: in function </usr/lib/prosody/util/events.lua:77>
(...tail calls...)
/usr/lib/prosody/util/startup.lua:421: in function 'prepare_to_start'
/usr/lib/prosody/util/startup.lua:696: in function 'f'
/usr/lib/prosody/util/async.lua:156: in function 'func'
/usr/lib/prosody/util/async.lua:144: in function </usr/lib/prosody/util/async.lua:142>
mod_auth_cyrus gets loaded from /usr/local/prosody-modules.hg, but does not find sasl_cyrus.lua, which is in the same directory.
Zash
on
Thanks for the report.
When moving the module into the community repo, it was made so that it would work with the plugin installer, forgetting about the old method.
This has been fixed in https://hg.prosody.im/prosody-modules/rev/b8366e31c829
Please test
In Prosody 0.12 the community module mod_auth_cyrus does not honour the configuration variable "plugin_paths". This means it can not longer find the requires sasl_cyrus.lua. For plugin_paths = { "/usr/lib/prosody/modules", "/usr/local/prosody-modules.hg" }: Apr 15 23:45:14 modulemanager error Error initializing module 'auth_cyrus' on 'example.com: /usr/lib/prosody/util/startup.lua:195: module 'util.sasl_cyrus' not found: no field package.preload['util.sasl_cyrus'] no file '/usr/lib/prosody/util/sasl_cyrus.lua' no file '/usr/local/share/lua/5.2/util/sasl_cyrus.lua' no file '/usr/local/share/lua/5.2/util/sasl_cyrus/init.lua' no file '/usr/local/lib/lua/5.2/util/sasl_cyrus.lua' no file '/usr/local/lib/lua/5.2/util/sasl_cyrus/init.lua' no file '/usr/share/lua/5.2/util/sasl_cyrus.lua' no file '/usr/share/lua/5.2/util/sasl_cyrus/init.lua' no file '/var/lib/prosody/custom_plugins/share/lua/5.2/util/sasl_cyrus.lua' no file '/var/lib/prosody/custom_plugins/share/lua/5.2/util/sasl_cyrus/init.lua' no file '/usr/lib/prosody/util/sasl_cyrus.so' no file '/usr/local/lib/lua/5.2/util/sasl_cyrus.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.2/util/sasl_cyrus.so' no file '/usr/lib/lua/5.2/util/sasl_cyrus.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file '/usr/lib/prosody/util.so' no file '/usr/local/lib/lua/5.2/util.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.2/util.so' no file '/usr/lib/lua/5.2/util.so' no file '/usr/local/lib/lua/5.2/loadall.so' stack traceback: [C]: in function '_real_require' /usr/lib/prosody/util/startup.lua:195: in function 'require' ...cal/prosody-modules.hg/mod_auth_cyrus/mod_auth_cyrus.lua:22: in main chunk [C]: in function 'xpcall' /usr/lib/prosody/core/modulemanager.lua:269: in function 'do_load_module' /usr/lib/prosody/core/modulemanager.lua:352: in function 'load' /usr/lib/prosody/core/usermanager.lua:97: in function '?' /usr/lib/prosody/util/events.lua:81: in function </usr/lib/prosody/util/events.lua:77> (...tail calls...) /usr/lib/prosody/core/hostmanager.lua:108: in function 'activate' /usr/lib/prosody/core/hostmanager.lua:58: in function '?' /usr/lib/prosody/util/events.lua:81: in function </usr/lib/prosody/util/events.lua:77> (...tail calls...) /usr/lib/prosody/util/startup.lua:421: in function 'prepare_to_start' /usr/lib/prosody/util/startup.lua:696: in function 'f' /usr/lib/prosody/util/async.lua:156: in function 'func' /usr/lib/prosody/util/async.lua:144: in function </usr/lib/prosody/util/async.lua:142> mod_auth_cyrus gets loaded from /usr/local/prosody-modules.hg, but does not find sasl_cyrus.lua, which is in the same directory.
Thanks for the report. When moving the module into the community repo, it was made so that it would work with the plugin installer, forgetting about the old method. This has been fixed in https://hg.prosody.im/prosody-modules/rev/b8366e31c829 Please test
ChangesWorks. Thank you!