jitsi / luajwtjitsi

JWT tokens for Lua
MIT License
18 stars 10 forks source link

Issues since version 3 #4

Closed holzi1005 closed 2 years ago

holzi1005 commented 2 years ago

When I install apt install jitsi-meet-tokens, the installer will use the newest luarocks version 3.0 When I set the prosody auth to token, I get the following error in my logs:

mod_bosh        error   Traceback[bosh]: /usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:194: attempt to call field 'decode' (a nil value)
stack traceback:
        /usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:194: in function 'verify_token'
        /usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:291: in function 'process_and_verify_token'
        /usr/share/jitsi-meet/prosody-plugins/mod_auth_token.lua:80: in function 'anonymous'
        /usr/share/jitsi-meet/prosody-plugins/mod_auth_token.lua:131: in function </usr/share/jitsi-meet/prosody-plugins/mod_auth_token.lua:126>
        (...tail calls...)
        /usr/lib/prosody/modules/mod_saslauth.lua:77: in function </usr/lib/prosody/modules/mod_saslauth.lua:66>
        (...tail calls...)
        /usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
        (...tail calls...)
        /usr/lib/prosody/core/stanza_router.lua:142: in function 'dispatch_stanza'
        /usr/lib/prosody/modules/mod_bosh.lua:306: in function 'func'
        /usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
        /usr/lib/prosody/util/async.lua:211: in function 'run'
        /usr/lib/prosody/modules/mod_bosh.lua:448: in function 'cb_handlestanza'
        /usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
        [C]: in function 'parse'
        /usr/lib/prosody/util/xmppstream.lua:282: in function 'feed'
        /usr/lib/prosody/modules/mod_bosh.lua:134: in function '?'
        /usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
        (...tail calls...)
        /usr/lib/prosody/net/http/server.lua:228: in function </usr/lib/prosody/net/http/server.lua:176>
        [C]: in function 'xpcall'
        /usr/lib/prosody/net/http/server.lua:108: in function 'process_next'
        /usr/lib/prosody/net/http/server.lua:124: in function 'success_cb'
        /usr/lib/prosody/net/http/parser.lua:177: in function 'feed'
        /usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
        (...tail calls...)
        /usr/lib/prosody/net/server_select.lua:915: in function </usr/lib/prosody/net/server_select.lua:899>
        [C]: in function 'xpcall'
        /usr/bin/prosody:80: in function 'loop'
        /usr/bin/prosody:90: in main chunk
        [C]: in ?

To fix this issuse, you need to reinstall the luajwtjitsi plugin in version 2.0

luarocks remove luajwtjitsi
luarocks install luajwtjitsi 2.0
emrahcom commented 2 years ago

the same issue here

saghul commented 2 years ago

The next stable version has this fixed, sorry folks.

MartB commented 2 years ago

Is this fixed? lbase64 is not supported on lua5.4 and version 3 does not work because of this for me.

saghul commented 2 years ago

Hum, I thought it was... but maybe I'm wrong, will test again.

saghul commented 2 years ago

We fixed this in Jitsi Meet. The Docker images have been patched and the next stable version will work with 3.0 out of the box.