Error during jitsi-meet-tokens installation

Hi, I have some difficulty to install jitsi-meet-tokens on a dev test VM

root@jitsi-test:~# apt install jitsi-meet-tokens
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les NOUVEAUX paquets suivants seront installés :
  jitsi-meet-tokens
0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 24,0 ko dans les archives.
Après cette opération, 123 ko d'espace disque supplémentaires seront utilisés.
Réception de :1 https://download.jitsi.org stable/ jitsi-meet-tokens 1.0.3729-1 [24,0 kB]
24,0 ko réceptionnés en 0s (120 ko/s)
Préconfiguration des paquets...
Sélection du paquet jitsi-meet-tokens précédemment désélectionné.
(Lecture de la base de données... 34453 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../jitsi-meet-tokens_1.0.3729-1_all.deb ...
Dépaquetage de jitsi-meet-tokens (1.0.3729-1) ...
Paramétrage de jitsi-meet-tokens (1.0.3729-1) ...
Installing https://luarocks.org/luajwtjitsi-1.3-7.rockspec
Missing dependencies for luajwtjitsi 1.3-7:
   luacrypto >= 0.3.2-1 (not installed)
   lua-cjson >= 2.1.0 (not installed)
   lbase64 >= 20120807-3 (not installed)

luajwtjitsi 1.3-7 depends on luacrypto >= 0.3.2-1 (not installed)
Installing https://luarocks.org/luacrypto-0.3.2-2.src.rock
gcc -O2 -fPIC -I/usr/include/lua5.1 -c src/lcrypto.c -o src/lcrypto.o -I/usr/include
src/lcrypto.c: In function ‘digest_pnew’:
src/lcrypto.c:81:61: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_MD_CTX’ {aka ‘struct evp_md_ctx_st’}
     EVP_MD_CTX *c = (EVP_MD_CTX *)lua_newuserdata(L, sizeof(EVP_MD_CTX));
                                                             ^~~~~~~~~~
src/lcrypto.c: In function ‘digest_reset’:
src/lcrypto.c:120:10: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’; did you mean ‘EVP_MD_CTX_create’? [-Wimplicit-function-declaration]
     if (!EVP_MD_CTX_cleanup(c))
          ^~~~~~~~~~~~~~~~~~
          EVP_MD_CTX_create
src/lcrypto.c: In function ‘encrypt_pnew’:
src/lcrypto.c:331:69: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX’ {aka ‘struct evp_cipher_ctx_st’}
     EVP_CIPHER_CTX *c = (EVP_CIPHER_CTX *)lua_newuserdata(L, sizeof(EVP_CIPHER_CTX));
                                                                     ^~~~~~~~~~~~~~
src/lcrypto.c: In function ‘encrypt_fencrypt’:
src/lcrypto.c:425:20: error: storage size of ‘c’ isn’t known
     EVP_CIPHER_CTX c;
                    ^
src/lcrypto.c: In function ‘decrypt_pnew’:
src/lcrypto.c:470:69: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX’ {aka ‘struct evp_cipher_ctx_st’}
     EVP_CIPHER_CTX *c = (EVP_CIPHER_CTX *)lua_newuserdata(L, sizeof(EVP_CIPHER_CTX));
                                                                     ^~~~~~~~~~~~~~
src/lcrypto.c: In function ‘decrypt_fdecrypt’:
src/lcrypto.c:561:20: error: storage size of ‘c’ isn’t known
     EVP_CIPHER_CTX c;
                    ^
src/lcrypto.c: In function ‘hmac_pnew’:
src/lcrypto.c:604:57: error: invalid application of ‘sizeof’ to incomplete type ‘HMAC_CTX’ {aka ‘struct hmac_ctx_st’}
     HMAC_CTX *c = (HMAC_CTX *)lua_newuserdata(L, sizeof(HMAC_CTX));
                                                         ^~~~~~~~
src/lcrypto.c: In function ‘hmac_fnew’:
src/lcrypto.c:621:5: warning: implicit declaration of function ‘HMAC_CTX_init’; did you mean ‘HMAC_CTX_new’? [-Wimplicit-function-declaration]
     HMAC_CTX_init(c);
     ^~~~~~~~~~~~~
     HMAC_CTX_new
src/lcrypto.c: In function ‘hmac_clone’:
src/lcrypto.c:631:5: error: dereferencing pointer to incomplete type ‘HMAC_CTX’ {aka ‘struct hmac_ctx_st’}
     *d = *c;
     ^~
src/lcrypto.c: In function ‘hmac_gc’:
src/lcrypto.c:697:5: warning: implicit declaration of function ‘HMAC_CTX_cleanup’; did you mean ‘HMAC_CTX_get_md’? [-Wimplicit-function-declaration]
     HMAC_CTX_cleanup(c);
     ^~~~~~~~~~~~~~~~
     HMAC_CTX_get_md
src/lcrypto.c: In function ‘hmac_fdigest’:
src/lcrypto.c:711:14: error: storage size of ‘c’ isn’t known
     HMAC_CTX c;
              ^
src/lcrypto.c: In function ‘sign_pnew’:
src/lcrypto.c:747:61: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_MD_CTX’ {aka ‘struct evp_md_ctx_st’}
     EVP_MD_CTX *c = (EVP_MD_CTX *)lua_newuserdata(L, sizeof(EVP_MD_CTX));
                                                             ^~~~~~~~~~
src/lcrypto.c: In function ‘sign_fsign’:
src/lcrypto.c:828:20: error: storage size of ‘c’ isn’t known
         EVP_MD_CTX c;
                    ^
src/lcrypto.c: In function ‘verify_pnew’:
src/lcrypto.c:857:61: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_MD_CTX’ {aka ‘struct evp_md_ctx_st’}
     EVP_MD_CTX *c = (EVP_MD_CTX *)lua_newuserdata(L, sizeof(EVP_MD_CTX));
                                                             ^~~~~~~~~~
src/lcrypto.c: In function ‘verify_fverify’:
src/lcrypto.c:940:20: error: storage size of ‘c’ isn’t known
         EVP_MD_CTX c;
                    ^
src/lcrypto.c: In function ‘rand_pseudo_bytes’:
src/lcrypto.c:992:5: warning: ‘RAND_pseudo_bytes’ is deprecated [-Wdeprecated-declarations]
     return rand_do_bytes(L, RAND_pseudo_bytes);
     ^~~~~~
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/err.h:13,
                 from src/lcrypto.c:7:
/usr/include/openssl/rand.h:44:1: note: declared here
 DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
 ^~~~~~~~~~~~~~~~~~
src/lcrypto.c: In function ‘pkey_generate’:
src/lcrypto.c:1064:9: warning: ‘RSA_generate_key’ is deprecated [-Wdeprecated-declarations]
         RSA *rsa = RSA_generate_key(key_len, RSA_F4, NULL, NULL);
         ^~~
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/err.h:13,
                 from src/lcrypto.c:7:
/usr/include/openssl/rsa.h:234:1: note: declared here
 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
 ^~~~~~~~~~~~~~~~~~
src/lcrypto.c:1074:9: warning: ‘DSA_generate_parameters’ is deprecated [-Wdeprecated-declarations]
         DSA *dsa = DSA_generate_parameters(key_len, NULL, 0, NULL, NULL, NULL, NULL);
         ^~~
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/err.h:13,
                 from src/lcrypto.c:7:
/usr/include/openssl/dsa.h:117:1: note: declared here
 DEPRECATEDIN_0_9_8(DSA *DSA_generate_parameters(int bits,
 ^~~~~~~~~~~~~~~~~~
src/lcrypto.c: In function ‘pkey_to_pem’:
src/lcrypto.c:1164:27: error: dereferencing pointer to incomplete type ‘struct evp_pkey_st’
     if (private && pkey_st->type == EVP_PKEY_DSA)
                           ^~
src/lcrypto.c: In function ‘pkey_tostring’:
src/lcrypto.c:1277:60: error: dereferencing pointer to incomplete type ‘EVP_PKEY’ {aka ‘struct evp_pkey_st’}
     sprintf(buf, "%s %s %d %p", LUACRYPTO_PKEYNAME, (*pkey)->type == EVP_PKEY_DSA ? "DSA" : "RSA", EVP_PKEY_bits(*pkey), pkey);
                                                            ^~
src/lcrypto.c: In function ‘seal_pnew’:
src/lcrypto.c:1299:46: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX’ {aka ‘struct evp_cipher_ctx_st’}
     c->ctx = (EVP_CIPHER_CTX *)malloc(sizeof(EVP_CIPHER_CTX));
                                              ^~~~~~~~~~~~~~
In file included from src/lcrypto.c:8:
src/lcrypto.c: In function ‘seal_tostring’:
src/lcrypto.c:1320:81: error: dereferencing pointer to incomplete type ‘EVP_CIPHER_CTX’ {aka ‘struct evp_cipher_ctx_st’}
     sprintf(s, "%s %p %s", LUACRYPTO_SEALNAME, (void *)c, EVP_CIPHER_name(c->ctx->cipher));
                                                                                 ^~
src/lcrypto.c: In function ‘seal_fseal’:
src/lcrypto.c:1400:20: error: storage size of ‘ctx’ isn’t known
     EVP_CIPHER_CTX ctx;
                    ^~~
src/lcrypto.c: In function ‘open_pnew’:
src/lcrypto.c:1483:46: error: invalid application of ‘sizeof’ to incomplete type ‘EVP_CIPHER_CTX’ {aka ‘struct evp_cipher_ctx_st’}
     c->ctx = (EVP_CIPHER_CTX *)malloc(sizeof(EVP_CIPHER_CTX));
                                              ^~~~~~~~~~~~~~
src/lcrypto.c: In function ‘open_fopen’:
src/lcrypto.c:1602:20: error: storage size of ‘ctx’ isn’t known
     EVP_CIPHER_CTX ctx;
                    ^~~

Error: Failed installing dependency: https://luarocks.org/luacrypto-0.3.2-2.src.rock - Build error: Failed compiling object src/lcrypto.o
Failed to install luajwtjitsi - try installing it manually
Installing https://luarocks.org/basexx-0.4.1-1.rockspec
Warning: /usr/local/share/lua/5.1/basexx_0_4_1_1-basexx.lua is not tracked by this installation of LuaRocks. Moving it to /usr/local/share/lua/5.1/basexx_0_4_1_1-basexx.lua~
basexx 0.4.1-1 is now installed in /usr/local (license: MIT)

root@jitsi-test:~# ^C
root@jitsi-test:~# uname -a
Linux jitsi-test 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux

Best regard

finally found a solution but I have to try it on a clean VM to be sure I didn’t forget anything in this procedure.

# assuming jitsi-meet is installed following the quick install guide
# patching prosody FIRST https://github.com/jitsi/lib-jitsi-meet/blob/master/doc/tokens.md#patching-prosody
# get the last prosody-trunk build from https://packages.prosody.im/debian/pool/main/p/prosody-trunk/
dpkg -i  prosody-trunk_1nightly1221-1_focal_amd64.deb

apt install git cmake lua5.1-dev luarocks
git clone https://github.com/evanlabs/luacrypto
cd luacrypto
luarocks make
cd ..
luarocks install luajwtjitsi
apt install jitsi-meet-tokens

Now i’m facing to an issue:



http-bind?room=room&token=token requests respond after exactly 1 minute (where does this timeout come from ? prosody ? jicofo ?) and the response is partial <body xmlns:stream='http://etherx.jabber.org/streams' xmlns='http://jabber.org/protocol/httpbind' sid='6278ecb6-57d5-434c-9cd9-4bf4cf024d21'></body>

prosody err log : I replaced the FQDN by jitsi.example.com

Jan 28 11:20:17 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Jan 28 11:20:17 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Jan 28 11:40:12 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Jan 28 11:40:12 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Jan 28 15:36:01 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Jan 28 15:36:01 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Jan 28 16:02:26 modulemanager	error	Error initializing module 'auth_token' on 'jitsi.example.com': /usr/lib/prosody/util/startup.lua:144: module 'luajwtjitsi' not found:No LuaRocks module found for luajwtjitsi
	no field package.preload['luajwtjitsi']
	no file '/usr/lib/prosody/luajwtjitsi.lua'
	no file '/usr/local/share/lua/5.2/luajwtjitsi.lua'
	no file '/usr/local/share/lua/5.2/luajwtjitsi/init.lua'
	no file '/usr/local/lib/lua/5.2/luajwtjitsi.lua'
	no file '/usr/local/lib/lua/5.2/luajwtjitsi/init.lua'
	no file '/usr/share/lua/5.2/luajwtjitsi.lua'
	no file '/usr/share/lua/5.2/luajwtjitsi/init.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.2/luajwtjitsi.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.2/luajwtjitsi/init.lua'
	no file '/usr/lib/prosody/luajwtjitsi.so'
	no file '/usr/local/lib/lua/5.2/luajwtjitsi.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.2/luajwtjitsi.so'
	no file '/usr/lib/lua/5.2/luajwtjitsi.so'
	no file '/usr/local/lib/lua/5.2/loadall.so'
	no file '/var/lib/prosody/.luarocks/lib/lua/5.2/luajwtjitsi.so'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:144: 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:178: in function 'do_load_module'
	/usr/lib/prosody/core/modulemanager.lua:256: 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:330: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:551: 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>
Jan 28 16:02:26 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Jan 28 16:02:26 portmanager	error	Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Jan 28 16:02:26 modulemanager	error	Error initializing module 'token_verification' on 'conference.jitsi.example.com': /usr/lib/prosody/util/startup.lua:144: module 'luajwtjitsi' not found:No LuaRocks module found for luajwtjitsi
	no field package.preload['luajwtjitsi']
	no file '/usr/lib/prosody/luajwtjitsi.lua'
	no file '/usr/local/share/lua/5.2/luajwtjitsi.lua'
	no file '/usr/local/share/lua/5.2/luajwtjitsi/init.lua'
	no file '/usr/local/lib/lua/5.2/luajwtjitsi.lua'
	no file '/usr/local/lib/lua/5.2/luajwtjitsi/init.lua'
	no file '/usr/share/lua/5.2/luajwtjitsi.lua'
	no file '/usr/share/lua/5.2/luajwtjitsi/init.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.2/luajwtjitsi.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.2/luajwtjitsi/init.lua'
	no file '/usr/lib/prosody/luajwtjitsi.so'
	no file '/usr/local/lib/lua/5.2/luajwtjitsi.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.2/luajwtjitsi.so'
	no file '/usr/lib/lua/5.2/luajwtjitsi.so'
	no file '/usr/local/lib/lua/5.2/loadall.so'
	no file '/var/lib/prosody/.luarocks/lib/lua/5.2/luajwtjitsi.so'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:144: 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:178: in function 'do_load_module'
	/usr/lib/prosody/core/modulemanager.lua:256: in function 'load'
	/usr/lib/prosody/core/modulemanager.lua:78: 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:330: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:551: 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>
Jan 28 16:15:47 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 28 16:15:47 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 28 16:15:47 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:15:47 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 28 16:15:47 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:15:47 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 28 16:40:21 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 28 16:40:21 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 28 16:40:21 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:40:21 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 28 16:40:21 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:40:21 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 28 16:40: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)
Jan 28 16:40:40 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 28 16:40:40 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:40:40 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 28 16:40:40 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:40:40 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 28 16:49:26 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 28 16:49:26 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 28 16:49:26 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:49:26 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 28 16:49:26 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:49:26 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 28 16:53:37 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 28 16:53:37 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 28 16:53:37 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:53:37 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 28 16:53:37 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:53:37 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 28 16:54:09 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 28 16:54:09 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 28 16:54:09 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:54:09 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 28 16:54:09 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 28 16:54:09 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 08:55:39 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 08:55:39 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 08:55:39 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 08:55:39 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 08:55:39 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 08:55:39 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 08:55:59 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 08:55:59 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 08:55:59 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 08:55:59 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 08:55:59 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 08:55:59 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 08:57:05 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 08:57:05 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 08:57:05 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 08:57:05 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 08:57:05 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 08:57:05 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 09:08:25 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 09:08:25 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 09:08:25 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 09:08:25 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 09:08:25 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 09:08:25 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 09:08:59 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 09:08:59 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 09:08:59 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 09:08:59 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 09:08:59 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 09:08:59 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 09:36:59 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 09:36:59 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 09:36:59 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 09:36:59 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 09:36:59 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 09:36:59 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 09:37:29 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 09:37:29 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 09:37:29 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 09:37:29 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 09:37:29 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 09:37:29 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 10:01:35 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:01:35 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 10:01:35 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:01:35 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 10:01:35 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:01:35 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 10:01:35 modulemanager	error	Error initializing module 'token_verification' on 'conference.jitsi.example.com': /usr/lib/prosody/util/startup.lua:207: module 'crypto' not found:No LuaRocks module found for crypto
	no field package.preload['crypto']
	no file '/usr/lib/prosody/crypto.lua'
	no file '/usr/local/share/lua/5.1/crypto.lua'
	no file '/usr/local/share/lua/5.1/crypto/init.lua'
	no file '/usr/local/lib/lua/5.1/crypto.lua'
	no file '/usr/local/lib/lua/5.1/crypto/init.lua'
	no file '/usr/share/lua/5.1/crypto.lua'
	no file '/usr/share/lua/5.1/crypto/init.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.1/crypto.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.1/crypto/init.lua'
	no file '/usr/lib/prosody/crypto.so'
	no file '/usr/local/lib/lua/5.1/crypto.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/crypto.so'
	no file '/usr/lib/lua/5.1/crypto.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file '/var/lib/prosody/.luarocks/lib/lua/5.1/crypto.so'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:207: in function 'require'
	/usr/local/share/lua/5.1/luajwtjitsi.lua:3: in main chunk
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:202: in function 'require'
	.../share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
	(tail call): ?
	...itsi-meet/prosody-plugins/mod_token_verification.lua:24: 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/modulemanager.lua:99: 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:412: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:636: 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>
Jan 29 10:01:35 modulemanager	error	Error initializing module 'auth_token' on 'jitsi.example.com': /usr/lib/prosody/util/startup.lua:202: loop or previous error loading module 'luajwtjitsi'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:202: in function 'require'
	.../share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
	(tail call): ?
	.../share/jitsi-meet/prosody-plugins/mod_auth_token.lua:8: 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:412: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:636: 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>
Jan 29 10:01:35 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:01:35 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (Permission denied)
Jan 29 10:01:35 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:01:35 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (system lib)
Jan 29 10:12:50 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:12:50 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 10:12:50 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:12:50 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 10:12:50 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:12:50 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 10:12:50 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:12:50 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (Permission denied)
Jan 29 10:12:50 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:12:50 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (system lib)
Jan 29 10:13:24 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:13:24 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 10:13:24 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:13:24 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 10:13:24 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:13:24 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 10:13:24 modulemanager	error	Error initializing module 'token_verification' on 'conference.jitsi.example.com': /usr/lib/prosody/util/startup.lua:207: module 'crypto' not found:No LuaRocks module found for crypto
	no field package.preload['crypto']
	no file '/usr/lib/prosody/crypto.lua'
	no file '/usr/local/share/lua/5.1/crypto.lua'
	no file '/usr/local/share/lua/5.1/crypto/init.lua'
	no file '/usr/local/lib/lua/5.1/crypto.lua'
	no file '/usr/local/lib/lua/5.1/crypto/init.lua'
	no file '/usr/share/lua/5.1/crypto.lua'
	no file '/usr/share/lua/5.1/crypto/init.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.1/crypto.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.1/crypto/init.lua'
	no file '/usr/lib/prosody/crypto.so'
	no file '/usr/local/lib/lua/5.1/crypto.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/crypto.so'
	no file '/usr/lib/lua/5.1/crypto.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file '/var/lib/prosody/.luarocks/lib/lua/5.1/crypto.so'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:207: in function 'require'
	/usr/local/share/lua/5.1/luajwtjitsi.lua:3: in main chunk
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:202: in function 'require'
	.../share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
	(tail call): ?
	...itsi-meet/prosody-plugins/mod_token_verification.lua:24: 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/modulemanager.lua:99: 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:412: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:636: 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>
Jan 29 10:13:24 modulemanager	error	Error initializing module 'auth_token' on 'jitsi.example.com': /usr/lib/prosody/util/startup.lua:202: loop or previous error loading module 'luajwtjitsi'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:202: in function 'require'
	.../share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
	(tail call): ?
	.../share/jitsi-meet/prosody-plugins/mod_auth_token.lua:8: 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:412: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:636: 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>
Jan 29 10:13:24 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:13:24 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (Permission denied)
Jan 29 10:13:24 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:13:24 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (system lib)
Jan 29 10:13:55 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:13:55 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 10:13:55 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:13:55 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 10:13:55 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:13:55 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 10:13:55 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:13:55 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (Permission denied)
Jan 29 10:13:55 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:13:55 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (system lib)
Jan 29 10:14:23 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:14:23 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 10:14:23 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:14:23 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 10:14:23 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:14:23 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 10:14:23 modulemanager	error	Error initializing module 'token_verification' on 'conference.jitsi.example.com': /usr/lib/prosody/util/startup.lua:207: module 'crypto' not found:No LuaRocks module found for crypto
	no field package.preload['crypto']
	no file '/usr/lib/prosody/crypto.lua'
	no file '/usr/local/share/lua/5.1/crypto.lua'
	no file '/usr/local/share/lua/5.1/crypto/init.lua'
	no file '/usr/local/lib/lua/5.1/crypto.lua'
	no file '/usr/local/lib/lua/5.1/crypto/init.lua'
	no file '/usr/share/lua/5.1/crypto.lua'
	no file '/usr/share/lua/5.1/crypto/init.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.1/crypto.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.1/crypto/init.lua'
	no file '/usr/lib/prosody/crypto.so'
	no file '/usr/local/lib/lua/5.1/crypto.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/crypto.so'
	no file '/usr/lib/lua/5.1/crypto.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file '/var/lib/prosody/.luarocks/lib/lua/5.1/crypto.so'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:207: in function 'require'
	/usr/local/share/lua/5.1/luajwtjitsi.lua:3: in main chunk
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:202: in function 'require'
	.../share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
	(tail call): ?
	...itsi-meet/prosody-plugins/mod_token_verification.lua:24: 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/modulemanager.lua:99: 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:412: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:636: 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>
Jan 29 10:14:23 modulemanager	error	Error initializing module 'auth_token' on 'jitsi.example.com': /usr/lib/prosody/util/startup.lua:202: loop or previous error loading module 'luajwtjitsi'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:202: in function 'require'
	.../share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
	(tail call): ?
	.../share/jitsi-meet/prosody-plugins/mod_auth_token.lua:8: 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:412: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:636: 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>
Jan 29 10:14:23 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:14:23 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (Permission denied)
Jan 29 10:14:23 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:14:23 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (system lib)
Jan 29 10:19:33 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:19:33 localhost:tls	error	Error creating context for c2s: error loading private key (Permission denied)
Jan 29 10:19:33 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:19:33 localhost:tls	error	Error creating contexts for s2sout: error loading private key (system lib)
Jan 29 10:19:33 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:19:33 localhost:tls	error	Error creating contexts for s2sin: error loading private key (system lib)
Jan 29 10:19:33 modulemanager	error	Error initializing module 'token_verification' on 'conference.jitsi.example.com': /usr/lib/prosody/util/startup.lua:207: module 'crypto' not found:No LuaRocks module found for crypto
	no field package.preload['crypto']
	no file '/usr/lib/prosody/crypto.lua'
	no file '/usr/local/share/lua/5.1/crypto.lua'
	no file '/usr/local/share/lua/5.1/crypto/init.lua'
	no file '/usr/local/lib/lua/5.1/crypto.lua'
	no file '/usr/local/lib/lua/5.1/crypto/init.lua'
	no file '/usr/share/lua/5.1/crypto.lua'
	no file '/usr/share/lua/5.1/crypto/init.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.1/crypto.lua'
	no file '/var/lib/prosody/.luarocks/share/lua/5.1/crypto/init.lua'
	no file '/usr/lib/prosody/crypto.so'
	no file '/usr/local/lib/lua/5.1/crypto.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/crypto.so'
	no file '/usr/lib/lua/5.1/crypto.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file '/var/lib/prosody/.luarocks/lib/lua/5.1/crypto.so'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:207: in function 'require'
	/usr/local/share/lua/5.1/luajwtjitsi.lua:3: in main chunk
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:202: in function 'require'
	.../share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
	(tail call): ?
	...itsi-meet/prosody-plugins/mod_token_verification.lua:24: 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/modulemanager.lua:99: 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:412: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:636: 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>
Jan 29 10:19:33 modulemanager	error	Error initializing module 'auth_token' on 'jitsi.example.com': /usr/lib/prosody/util/startup.lua:202: loop or previous error loading module 'luajwtjitsi'
stack traceback:
	[C]: in function '_real_require'
	/usr/lib/prosody/util/startup.lua:202: in function 'require'
	.../share/jitsi-meet/prosody-plugins/token/util.lib.lua:7: in main chunk
	(tail call): ?
	.../share/jitsi-meet/prosody-plugins/mod_auth_token.lua:8: 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:412: in function 'prepare_to_start'
	/usr/lib/prosody/util/startup.lua:636: 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>
Jan 29 10:19:33 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Check that the permissions allow Prosody to read this file. (for localhost)
Jan 29 10:19:33 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (Permission denied)
Jan 29 10:19:33 certmanager	error	SSL/TLS: Failed to load '/etc/prosody/certs/localhost.key': Previous error (see logs), or other system error. (for localhost)
Jan 29 10:19:33 portmanager	error	Error creating TLS context for SNI host localhost: error loading private key (system lib)

update

create a symlink resolved the problem (issue 2029)

Now I have authentification issue (red popup "autentification failed) so I suppose it’s only a generation issue

I tried to create the token according this example

so I have :
header

{
  "kid": "jitsi/abc",
  "alg": "HS256",
  "typ": "JWT"
}

payload

{
  "context": {
    "user": {
      "avatar": "https://randomuser.me/api/portraits/men/75.jpg",
      "name": "John Doe",
      "email": "jdoe@example.com",
      "id": "abcd:a1b2c3-d4e5f6-0abc1-23de-abcdef01fedcba"
    },
    "group": "a123-123-456-789"
  },
  "aud": "abc",
  "iss": "abc",
  "sub": "jitsi.example.com",
  "room": "*",
  "exp": 1580719686
}

my prosody conf (/etc/prosody/conf.avail/jitsi.example.com)

-- Plugins path gets uncommented during jitsi-meet-tokens package install - that's where token plugin is located
plugin_paths = { "/usr/share/jitsi-meet/prosody-plugins/" }

VirtualHost "jitsi.example.com"
        authentication = "token";
        app_id = "abc";         -- application identifier
        app_secret = "abc";     -- application secret known only to your token generator and the plugin
        allow_empty_token = true;
        -- enabled = false -- Remove this line to enable this host
        -- Properties below are modified by jitsi-meet-tokens package config
        -- and authentication above is switched to "token"
        -- Assign this host a certificate for TLS, otherwise it would use the one
        -- set in the global section (if any).
        -- Note that old-style SSL on port 5223 only supports one certificate, and will always
        -- use the global one.
        ssl = {
                key = "/etc/prosody/certs/jitsi.example.com.key";
                certificate = "/etc/prosody/certs/jitsi.example.com.crt";
        }
        -- we need bosh
        modules_enabled = {
            "bosh";
            "pubsub";
            "ping"; -- Enable mod_ping
        }

        c2s_require_encryption = false

Component "conference.jitsi.example.com" "muc"
    storage = "memory"
    modules_enabled = { "token_verification" }
admins = { "focus@auth.jitsi.example.com" }

Component "jitsi-videobridge.jitsi.example.com"
    component_secret = "csiapX@i"

VirtualHost "auth.jitsi.example.com"
    ssl = {
        key = "/etc/prosody/certs/auth.jitsi.example.com.key";
        certificate = "/etc/prosody/certs/auth.jitsi.example.com.crt";
    }
    authentication = "internal_plain"

Component "focus.jitsi.example.com"
    component_secret = "Dnmn#OeH"

Best regard

This token is for room https://jitsi.example.com/a123-123-456-789/some_room_name is this what you are accessing? If you want directly accessing https://jitsi.example.com/some_room_name remove the group from the token.

Unfortunately the error still persist
the header is

{
  "kid": "jitsi/abc",
  "alg": "HS256",
  "typ": "JWT"
}

and my current payload is

{
  "context": {
    "user": {
      "name": "John Doe",
      "email": "jdoe@example.com"
    }
  },
  "aud": "abc",
  "iss": "abc",
  "sub": "jitsi.example.com",
  "room": "*",
  "exp": 1580719686
}

I’m not sure to understand what kid in the header is for what,
according to my configuration could you give an example token ?

Best regard

kid is the identifier for the public key that will be hashed and searched on the keyserver in case you are signing with a private key, which you are not.

Remove kid and try again. Check in the developer console, network tab the error bosh message response. What does it say?

thanks for your help :+1:

I had 2 problem in my setup, the kid attribute, and … in jwt.io libraries-io I forgot to change the 256bit secret … I set it to “abc” and now it work.
to be sure the 256 secret is the app_secret in the prosody config ?

Best regard

Faith