Hi everyone.
I’ve got a strange error on JWT authentication, i follow the configuration in https://github.com/jitsi/lib-jitsi-meet/blob/master/doc/tokens.md, so i set all the configuration needed.
I got this error in /var/log/prosody/prosody.err
after restart prosody service:
Apr 17 18:10:40 modulemanager error Error initializing module 'auth_token' on '{my-domain}': .../share/jitsi-meet/prosody-plugins/mod_auth_token.lua:40: attempt to call method 'hook_global_global_global' (a nil value)
stack traceback:
.../share/jitsi-meet/prosody-plugins/mod_auth_token.lua:40: in main chunk
[C]: in function 'xpcall'
/usr/lib/prosody/core/modulemanager.lua:200: in function 'do_load_module'
/usr/lib/prosody/core/modulemanager.lua:283: in function 'load'
/usr/lib/prosody/core/usermanager.lua:90: in function '?'
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(tail call): ?
/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 call): ?
/usr/lib/prosody/util/startup.lua:368: in function 'prepare_to_start'
/usr/lib/prosody/util/startup.lua:594: 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>
Apr 17 18:10:40 modulemanager error Error initializing module 'auth_token' on 'localhost': .../share/jitsi-meet/prosody-plugins/mod_auth_token.lua:40: attempt to call method 'hook_global_global_global' (a nil value)
stack traceback:
.../share/jitsi-meet/prosody-plugins/mod_auth_token.lua:40: in main chunk
[C]: in function 'xpcall'
/usr/lib/prosody/core/modulemanager.lua:200: in function 'do_load_module'
/usr/lib/prosody/core/modulemanager.lua:283: in function 'load'
/usr/lib/prosody/core/usermanager.lua:90: in function '?'
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(tail call): ?
/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 call): ?
/usr/lib/prosody/util/startup.lua:368: in function 'prepare_to_start'
/usr/lib/prosody/util/startup.lua:594: 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>
Apr 17 18:10:40 certmanager error SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Apr 17 18:10:40 portmanager error Error creating TLS context for SNI host localhost: error loading private key (Permission denied)
Apr 17 18:10:40 certmanager error SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Apr 17 18:10:40 portmanager error Error creating TLS context for SNI host localhost: error loading private key (system lib)
Apr 17 18:10:40 certmanager error SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Apr 17 18:10:40 localhost:tls error Error creating context for c2s: error loading private key (system lib)
Apr 17 18:10:40 certmanager error SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Apr 17 18:10:40 localhost:tls error Error creating contexts for s2sout: error loading private key (Permission denied)
Apr 17 18:10:40 certmanager error SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Apr 17 18:10:40 localhost:tls error Error creating contexts for s2sin: error loading private key (system lib)
I don’t know how to solve this, can anyone help me?
Thanks