question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to connect users - bad argument #1 to 'lower'

See original GitHub issue

Description:

After updating to the latest unstable users are no longer able to connect in meetings. The host opens the room with the JWT and the users are able to join but the video and audio feeds never connect. I will be happy to supply more verbose logs privately. Using BOSH for xmpp and websockets for videobridge. The error I am getting in prosody seems to be related to token/util.lib.lua

Steps to reproduce:

  1. Open Browser and start a meeting using JWT
  2. Open incognito tab and join the meeting as a “guest”
  3. Both users will be in the same meeting but will not connect to one another
  4. The same is true when adding more users

Expected behavior:

Users should connect to share audio and video

Actual behavior:

Users all appear to be in the same room but no one else is present.

Server information:

  • Jitsi Meet version: 2.0.5947-1
  • Operating System: Ubuntu 18

Client information:

  • Chrome, Firefox
  • Operating System: Windows 10, Mac 11.2.3

Additional information:

jitsi-bug060221-4

prosody.err:

Jun 02 09:32:05 mod_bosh        error   Traceback[bosh]: /usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:343: bad argument #1 to 'lower' (string expected, got nil)
stack traceback:
        [C]: in function 'lower'
        /usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:343: in function 'verify_room'
        ...re/jitsi-meet/prosody-plugins/mod_token_verification.lua:62: in function 'verify_user'
        ...re/jitsi-meet/prosody-plugins/mod_token_verification.lua:86: in function '?'
        /usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
        (...tail calls...)
        /usr/lib/prosody/modules/muc/muc.lib.lua:561: in function '_handle_normal_presence'
        ...hare/jitsi-meet/prosody-plugins/mod_token_moderation.lua:24: in function <...hare/jitsi-meet/prosody-plugins/mod_token_moderation.lua:23>
        (...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:180: in function 'core_post_stanza'
        /usr/lib/prosody/core/stanza_router.lua:127: in function 'dispatch_stanza'
        /usr/lib/prosody/modules/mod_bosh.lua:323: 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:465: 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:285: 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:229: 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:924: in function </usr/lib/prosody/net/server_select.lua:908>
        [C]: in function 'xpcall'
        /usr/bin/prosody:76: in function 'loop'
        /usr/bin/prosody:86: in main chunk
        [C]: in ?

Prosody log:

Jun 02 09:33:29 bosh453d8670-ec07-4a2e-b650-86cae68cb015        debug   Received[c2s]: <presence to='testing@conference.meet.myserver.com/1cd6b951'>
Jun 02 09:33:29 conference.meet.myserver.com:muc        debug   no occupant found for testing@conference.meet.myserver.com/1cd6b951; creating new occupant object for 1cd6b951-35e6-4848-b5d1-4d1dc7b2355d@guest.meet.myserver.com/jpXQuHg7
Jun 02 09:33:29 general info    --------------> user 1cd6b951-35e6-4848-b5d1-4d1dc7b2355d domain guest.meet.myserver.com res jpXQuHg7 pass nil
Jun 02 09:33:29 conference.meet.myserver.com:token_verification debug   pre join: MUC room (testing@conference.meet.myserver.com) <presence from='1cd6b951-35e6-4848-b5d1-4d1dc7b2355d@guest.meet.myserver.com/jpXQuHg7' to='testing@conference.meet.myserver.com/1cd6b951'><x xmlns='http://jabber.org/protocol/muc'/><stats-id>Gayle-J7R</stats-id><region id='us-east-1' xmlns='http://jitsi.org/jitsi-meet'/><c ver='GFN9rIHAX0oGpTKtxSr6D7qvTiM=' node='http://jitsi.org/jitsimeet' xmlns='http://jabber.org/protocol/caps' hash='sha-1'/><jitsi_participant_region>us-east-1</jitsi_participant_region><jitsi_participant_codecType>vp8</jitsi_participant_codecType><email>srobinson@telware.com</email><nick xmlns='http://jabber.org/protocol/nick'>Sumner Robinson</nick><audiomuted>false</audiomuted><videomuted>false</videomuted></presence>
Jun 02 09:33:29 conference.meet.myserver.com:token_verification debug   Session token: nil, session room: nil
Jun 02 09:33:29 conference.meet.myserver.com:token_verification debug   Will verify token for user: 1cd6b951-35e6-4848-b5d1-4d1dc7b2355d@guest.meet.myserver.com/jpXQuHg7, room: testing@conference.meet.myserver.com/1cd6b951
Jun 02 09:33:29 runnerQRfaQpzL  debug   changed state from ready to error (ready)
Jun 02 09:33:29 mod_bosh        error   Traceback[bosh]: /usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:343: bad argument #1 to 'lower' (string expected, got nil)
stack traceback:
        [C]: in function 'lower'
        /usr/share/jitsi-meet/prosody-plugins/token/util.lib.lua:343: in function 'verify_room'
        ...re/jitsi-meet/prosody-plugins/mod_token_verification.lua:62: in function 'verify_user'
        ...re/jitsi-meet/prosody-plugins/mod_token_verification.lua:86: in function '?'
        /usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
        (...tail calls...)
        /usr/lib/prosody/modules/muc/muc.lib.lua:561: in function '_handle_normal_presence'
        ...hare/jitsi-meet/prosody-plugins/mod_token_moderation.lua:24: in function <...hare/jitsi-meet/prosody-plugins/mod_token_moderation.lua:23>
        (...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:180: in function 'core_post_stanza'
        /usr/lib/prosody/core/stanza_router.lua:127: in function 'dispatch_stanza'
        /usr/lib/prosody/modules/mod_bosh.lua:323: 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:465: 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:285: 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:229: 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:924: in function </usr/lib/prosody/net/server_select.lua:908>
        [C]: in function 'xpcall'
        /usr/bin/prosody:76: in function 'loop'
        /usr/bin/prosody:86: in main chunk
        [C]: in ?
Jun 02 09:33:29 mod_bosh        debug   Session 453d8670-ec07-4a2e-b650-86cae68cb015 has 1 out of 1 requests open
Jun 02 09:33:29 mod_bosh        debug   and there are 0 things in the send_buffer:
Jun 02 09:33:29 mod_bosh        debug   Have nothing to say, so leaving request unanswered for now

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
damenchocommented, Jun 2, 2021

Thanks for testing and reporting it.

1reaction
damenchocommented, Jun 2, 2021

In general we haven’t designed tokens to work with guest domain, so the fact it worked is a coincidence now looking at the code. But there is some issue for sure … I will take a look.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bad argument #1 to 'lower' (string expected, got nil) - Stack ...
lua - I have a gLua error: bad argument #1 to 'lower' (string expected, got nil) - Stack Overflow. Stack Overflow for Teams...
Read more >
lua script - bad argument #1 to 'pairs' (table expected, got nil)
Hi all, I have a lua script that pulls back hubs, robots, probes and the state of the probe.This has been working for...
Read more >
16.10 - 5399 Bad argument type to UPPER or LOWER function.
Explanation: The argument to UPPER or LOWER function was not of CHAR or VARCHAR type. Generated By: OPT modules For Whom: End User....
Read more >
error: bad argument type: stringp nil - Autodesk Forums
Solved: hi, I m trying to open a folder from inside cad using lisp, otherthan current folder. But I keep getting an error...
Read more >
Troubleshoot Amazon Redshift connection errors
I'm unable to connect to my Amazon Redshift cluster. ... Error: [Amazon](500310) Invalid operation: no pg_hba.conf entry for host ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found