jitsi / jitsi-meet

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
https://jitsi.org/meet
Apache License 2.0
23.19k stars 6.74k forks source link

luajwtjitsi not working with lua5.4 and required for prosody 0.12.3 #14918

Closed holzi1005 closed 1 month ago

holzi1005 commented 3 months ago

What happened?

I installed the jitsi-meet-tokens package together with prosody 0.12.3 and I get an lua5.4 error in the prosody logs, that the tokens module cannot be found.

I can downgrade Prosody to 0.11.13 so it will use lua5.2 and the token module will work as expected. When I try to install the luajwtjitsi module with luarocks 5.4, I get a lot of errors an I can still not run prosody 0.12.

Prosody 0.12 must be installed bacause of an upgrade to Debian 12 and that has only prosody 0.12

Platform

Browser / app / sdk version

Browser current and lates jitsi meet version

Relevant log output

Jul 14 00:39:51 modulemanager   error   Error initializing module 'auth_token' on 'meeting.xxxxx': /usr/lib/prosody/util/startup.lua:203: module 'inspect' not found:
    No LuaRocks module found for inspect
    no field package.preload['inspect']
    no file '/usr/lib/prosody/inspect.lua'
    no file '/usr/local/share/lua/5.4/inspect.lua'
    no file '/usr/local/share/lua/5.4/inspect/init.lua'
    no file '/usr/local/lib/lua/5.4/inspect.lua'
    no file '/usr/local/lib/lua/5.4/inspect/init.lua'
    no file '/usr/share/lua/5.4/inspect.lua'
    no file '/usr/share/lua/5.4/inspect/init.lua'
    no file ''
    no file '/var/lib/prosody/.luarocks/share/lua/5.4/inspect.lua'
    no file '/var/lib/prosody/.luarocks/share/lua/5.4/inspect/init.lua'
    no file '/var/lib/prosody/custom_plugins/share/lua/5.4/inspect.lua'
    no file '/var/lib/prosody/custom_plugins/share/lua/5.4/inspect/init.lua'
    no file '/usr/lib/prosody/inspect.so'
    no file '/usr/local/lib/lua/5.4/inspect.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.4/inspect.so'
    no file '/usr/lib/lua/5.4/inspect.so'
    no file '/usr/local/lib/lua/5.4/loadall.so'
    no file ''
    no file '/var/lib/prosody/.luarocks/lib/lua/5.4/inspect.so'
    stack traceback:
    [C]: in upvalue '_real_require'
    /usr/lib/prosody/util/startup.lua:203: in function 'require'
    /usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:21: in main chunk
    (...tail calls...)
    /usr/share/jitsi-meet/prosody-plugins/mod_auth_token.lua:8: in main chunk
    [C]: in function 'util.xpcall.xpcall'
    /usr/lib/prosody/core/modulemanager.lua:270: in upvalue 'do_load_module'
    /usr/lib/prosody/core/modulemanager.lua:353: in function 'core.modulemanager.load'
    /usr/lib/prosody/core/usermanager.lua:97: in function 'core.usermanager.initialize_host'
    /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 'core.hostmanager.activate'
    /usr/lib/prosody/core/hostmanager.lua:58: in field '?'
    /usr/lib/prosody/util/events.lua:81: in function </usr/lib/prosody/util/events.lua:77>
    (...tail calls...)
    /usr/lib/prosody/util/startup.lua:428: in function 'util.startup.prepare_to_start'
    /usr/lib/prosody/util/startup.lua:707: in function 'util.startup.prosody'
    /usr/lib/prosody/util/async.lua:156: in upvalue 'func'
    /usr/lib/prosody/util/async.lua:144: in function </usr/lib/prosody/util/async.lua:142>
Jul 14 00:39:51 mod_websocket   info    The 'cross_domain_websocket' option has been deprecated

Reproducibility

More details?

jitsi-meet-prosody/stable,now 1.0.8043-1 all [installed] jitsi-meet-tokens/stable,now 1.0.8043-1 all [installed] jitsi-meet-turnserver/stable,now 1.0.8043-1 all [installed] jitsi-meet-web-config/stable,now 1.0.8043-1 all [installed] jitsi-meet-web/stable,now 1.0.8043-1 all [installed] jitsi-videobridge2/stable,now 2.3-149-g793df5a9-1 all [installed] lua-basexx/stable,now 0.4.1-jitsi1 all [installed,automatic] lua-cjson/stable,now 2.1.0.10-jitsi1 amd64 [installed,automatic]

Prosody: prosody/now 0.11.13-1 amd64 [installed,upgradable to: 0.12.3-1] --> This version is working. Installed from Ubuntu Archive Repo

holzi1005 commented 3 months ago

related to this stale and closed issue: https://github.com/jitsi/jitsi-meet/issues/11490

holzi1005 commented 3 months ago

when I install the inspect lua module before installing the luajwtjitsi, for lua5.4, it is working also with prosody 0.12 luarocks --lua-version 5.4 install inspect

Is it possile to add the module as an dependency into the jitsi-meet-tokens package

saghul commented 3 months ago

Ping @damencho

holzi1005 commented 3 months ago

@saghul @damencho I found out, that I need to install lua5.4, liblua5.4-dev, and luarocks package before installing prosody 0.12 and then luarocks will be able to install the inspect rock for lua5.4

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.