-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Initializing - attempt to set a global #4
Comments
Could it be that you do not have |
Hmmm.. it appears to be there. apt install lua-socket This is on an ubuntu 16.0.4.5 system btw. |
Here's the full output in prosody.err Dec 15 23:21:22 modulemanager error Error initializing module 'roster_cloud' on 'im.domain.org': /usr/share/lua/5.2/ltn12.lua:15: Attempt to set a global: ltn12 = table: 0xbe7460 |
Thanks for the dump, that gives an entirely new perspective:
That means that local _M = {}
if module then -- heuristic for exporting a global package table
ltn12 = _M
end Why this does not work exceeds my meagre Lua/Prosody know-how (and a web search for the error message didn't reveal anything helpful, either). Can anyone with more Lua/Prosody know-how help here? E.g. @DanScharon? |
I'm trying to load the module, have the config variables set (I think) as they should be but on the prosody restart I see the following in the logfile.
Dec 04 01:32:49 modulemanager error Error initializing module 'roster_cloud' on 'im.domain.org': /usr/share/lua/5.2/ltn12.lua:15: Attempt to set a global: ltn12 = table: 0x203fa70
...ib/prosody/modules/mod_roster_cloud/mod_roster_cloud.lua:1: in main chunk
Any ideas?
The text was updated successfully, but these errors were encountered: