Prosody error

Hi,
I am getting following in Token:

Sep 24 17:37:21 modulemanager error Error initializing module ‘auth_token’ on ‘meetdev.coconnex.com’: /usr/lib/prosody/util/startup.lua:199: module ‘basexx’ not found:No LuaRocks module found for basexx
no field package.preload[‘basexx’]
no file ‘/usr/lib/prosody/basexx.lua’
no file ‘/usr/local/share/lua/5.2/basexx.lua’
no file ‘/usr/local/share/lua/5.2/basexx/init.lua’
no file ‘/usr/local/lib/lua/5.2/basexx.lua’
no file ‘/usr/local/lib/lua/5.2/basexx/init.lua’
no file ‘/usr/share/lua/5.2/basexx.lua’
no file ‘/usr/share/lua/5.2/basexx/init.lua’
no file ‘/var/lib/prosody/.luarocks/share/lua/5.2/basexx.lua’
no file ‘/var/lib/prosody/.luarocks/share/lua/5.2/basexx/init.lua’
no file ‘/usr/lib/prosody/basexx.so’
no file ‘/usr/local/lib/lua/5.2/basexx.so’
no file ‘/usr/lib/x86_64-linux-gnu/lua/5.2/basexx.so’
no file ‘/usr/lib/lua/5.2/basexx.so’
no file ‘/usr/local/lib/lua/5.2/loadall.so’
no file ‘/var/lib/prosody/.luarocks/lib/lua/5.2/basexx.so’
stack traceback:
[C]: in function ‘_real_require’
/usr/lib/prosody/util/startup.lua:199: in function ‘require’
/usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:4: in main chunk
(…tail calls…)
/usr/share/jitsi-meet/prosody-plugins/mod_auth_token.lua:8: in main chunk
[C]: in function ‘xpcall’
/usr/lib/prosody/core/modulemanager.lua:183: in function ‘do_load_module’
/usr/lib/prosody/core/modulemanager.lua:261: in function ‘load’
/usr/lib/prosody/core/usermanager.lua:67: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…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:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/util/startup.lua:391: in function ‘prepare_to_start’
/usr/lib/prosody/util/startup.lua:612: in function ‘f’
/usr/lib/prosody/util/async.lua:139: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
Sep 24 17:37:21 portmanager error Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Sep 24 17:37:21 portmanager error Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Sep 24 17:37:21 modulemanager error Unable to load module ‘token_moderation’: …hare/jitsi-meet/prosody-plugins/mod_token_moderation.lua:2: unexpected symbol near ‘<’

Please help.

Regards,
Subodh

This seems that an installation problem. Some lua modules are missing

Hi Emrah,

Now I have resolved, module ‘basexx’ not found:No LuaRocks module found for basexx.

Now getting following error:

Sep 24 20:29:02 modulemanager error Error initializing module ‘token_verification’ on ‘conference.meetdev.coconnex.com’: error loading module ‘cjson’ from file ‘/usr/local/lib/lua/5.2/cjson.so’:
/usr/local/lib/lua/5.2/cjson.so: undefined symbol: lua_rotate
stack traceback:
[C]: in ?
[C]: in function ‘_real_require’
/usr/lib/prosody/util/startup.lua:199: in function ‘require’
/usr/local/share/lua/5.2/luajwtjitsi.lua:1: in main chunk
[C]: in function ‘_real_require’
/usr/lib/prosody/util/startup.lua:199: in function ‘require’
/usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
(…tail calls…)
…re/jitsi-meet/prosody-plugins/mod_token_verification.lua:24: in main chunk
[C]: in function ‘xpcall’
/usr/lib/prosody/core/modulemanager.lua:183: in function ‘do_load_module’
/usr/lib/prosody/core/modulemanager.lua:261: in function ‘load’
/usr/lib/prosody/core/modulemanager.lua:83: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…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:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/util/startup.lua:391: in function ‘prepare_to_start’
/usr/lib/prosody/util/startup.lua:612: in function ‘f’
/usr/lib/prosody/util/async.lua:139: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
Sep 24 20:29:02 modulemanager error Error initializing module ‘auth_token’ on ‘meetdev.coconnex.com’: error loading module ‘cjson’ from file ‘/usr/local/lib/lua/5.2/cjson.so’:
/usr/local/lib/lua/5.2/cjson.so: undefined symbol: lua_rotate
stack traceback:
[C]: in ?
[C]: in function ‘_real_require’
/usr/lib/prosody/util/startup.lua:199: in function ‘require’
/usr/local/share/lua/5.2/luajwtjitsi.lua:1: in main chunk
[C]: in function ‘_real_require’
/usr/lib/prosody/util/startup.lua:199: in function ‘require’
/usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
(…tail calls…)
/usr/share/jitsi-meet/prosody-plugins/mod_auth_token.lua:8: in main chunk
[C]: in function ‘xpcall’
/usr/lib/prosody/core/modulemanager.lua:183: in function ‘do_load_module’
/usr/lib/prosody/core/modulemanager.lua:261: in function ‘load’
/usr/lib/prosody/core/usermanager.lua:67: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…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:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/util/startup.lua:391: in function ‘prepare_to_start’
/usr/lib/prosody/util/startup.lua:612: in function ‘f’
/usr/lib/prosody/util/async.lua:139: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
Sep 24 20:29:02 portmanager error Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Sep 24 20:29:02 portmanager error Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281

Please help.

How did you install jitsi-meet-tokens?
What is your distro? Ubuntu? Debian? version?

This is a problem that people see when they upgrade from lua 5.1 to lua 5.2 and luarocks is installing extra dependencies to lua 5.1 where prosody runs using 5.2 … there were few posts on the topic.

Ubuntu 18.0
I am referring https://github.com/jitsi/lib-jitsi-meet/issues/1082#issuecomment-684707643

Could you paste the output?

dpkg -l "lua*" | egrep '^ii'

root@meetdev:~# dpkg -l “lua*” | egrep ‘^ii’
ii lua-any 24 all helper script for shebang lines in Lua scripts
ii lua-expat:amd64 1.3.0-4 amd64 libexpat bindings for the Lua language
ii lua-filesystem:amd64 1.6.3-1 amd64 luafilesystem library for the Lua language
ii lua-sec:amd64 0.6-4 amd64 SSL socket library for the Lua language
ii lua-socket:amd64 3.0~rc1+git+ac3201d-4 amd64 TCP/UDP socket library for the Lua language
ii lua5.1 5.1.5-8.1build2 amd64 Simple, extensible, embeddable programming language
ii lua5.2 5.2.4-1.1build1 amd64 Simple, extensible, embeddable programming language
ii luarocks 2.4.2+dfsg-1 all deployment and management system for Lua modules

Could you try to reinstall the packages?
But be careful. If there is something suspicious, paste the output before to accept.

apt-get install lua5.2

apt-get purge jitsi-meet-tokens
apt-get purge luarocks lua5.1
apt-get autoremove --purge

apt-get install luarocks liblua5.2-dev
wget https://emrah.com/files/lua-cjson-2.1devel-1.linux-x86_64.rock
luarocks install lua-cjson-2.1devel-1.linux-x86_64.rock

apt-get install jitsi-meet-tokens

I hope “luarocks” will not be install lua5.1 this time but I didn’t test on Ubuntu before.

Error: Cannot access repository at /usr/local/lib/luarocks/rocks-5.2
dpkg: error processing package luarocks (–configure):
installed luarocks package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Errors were encountered while processing:
luarocks
E: Sub-process /usr/bin/dpkg returned an error code (1)

Did you get any error before this one?

Nope.

This is the first time, I am getting error.

Please help me in solve this.

I think that there is some other issue on your repo config. Did you add the stretch repo to your Ubuntu? If so, this will cause many package conflicts

Hi Emrah,

Please send me steps for repo thing.
Else send me steps so that I can try to reinstall prosody.

Could you return the stable state before the jitsi-meet-token installation?

Do you mean I should remove all packages and install basic jitsi-meet?

If you can get back what you did for jitsi-meet-token, this will be OK. If this doesn’t work, you can reinstall the system.

I have followed following URL - https://github.com/christiancuri/Docs/blob/master/Jitsi%20Meet%20Installation.md

Is this doc for 18.04 or for 20.04?

We are using it 18.04.

I have just fired below command:
root@meetdev:~# sudo apt-get purge jitsi-meet-prosody
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
ca-certificates-java coturn java-common jicofo jitsi-meet-web jitsi-meet-web-config jitsi-videobridge2 libevent-core-2.1-6 libevent-extra-2.1-6
libevent-openssl-2.1-6 libevent-pthreads-2.1-6 libhiredis0.13 libmysqlclient20 libpq5 lua-bitop lua-expat lua-filesystem mysql-common openjdk-8-jre-headless
prosody-trunk
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
jitsi-meet* jitsi-meet-prosody* jitsi-meet-turnserver*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 269 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 220564 files and directories currently installed.)
Removing jitsi-meet (2.0.5076-1) …
Removing jitsi-meet-turnserver (1.0.4428-1) …
Removing jitsi-meet-prosody (1.0.4428-1) …
prosody.service is not active, cannot reload.
invoke-rc.d: initscript prosody, action “reload” failed.
Setting up luarocks (2.4.2+dfsg-1) …
Making manifest for /usr/local/lib/luarocks/rocks-5.2
Warning: This looks like a local rocks tree, but you did not pass --local-tree.

Error: Cannot access repository at /usr/local/lib/luarocks/rocks-5.2
dpkg: error processing package luarocks (–configure):
installed luarocks package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
luarocks
E: Sub-process /usr/bin/dpkg returned an error code (1)