[Solved]! Error Installing jitsi token, will it work this way?


#1

While installing jitsi-meet-token in Ubuntu 18, I got error as following:

lab@jitsimeet:~$ sudo su -
[sudo] password for lab: 
root@jitsimeet:~# apt-get install jitsi-meet-tokens
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 jitsi-meet-tokens : Depends: prosody-trunk (>= 1nightly607) but it is not installable
E: Unable to correct problems, you have held broken packages.
root@jitsimeet:~# cd /home/lab
root@jitsimeet:/home/lab# cd shared
root@jitsimeet:/home/lab/shared# sudo dpkg -i prosody-trunk_1nightly1074-1~trusty_amd64.deb
dpkg: error: cannot access archive 'prosody-trunk_1nightly1074-1~trusty_amd64.deb': No such file or directory
root@jitsimeet:/home/lab/shared# sudo dpkg -i prosody-trunk_1nightly1074-1_trusty_amd64.deb
Selecting previously unselected package prosody-trunk.
dpkg: considering removing prosody in favour of prosody-trunk ...
dpkg: yes, will remove prosody in favour of prosody-trunk
(Reading database ... 208330 files and directories currently installed.)
Preparing to unpack prosody-trunk_1nightly1074-1_trusty_amd64.deb ...
Unpacking prosody-trunk (1nightly1074-1~trusty) ...
Setting up prosody-trunk (1nightly1074-1~trusty) ...
Installing new version of config file /etc/logrotate.d/prosody ...

Configuration file '/etc/prosody/prosody.cfg.lua'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** prosody.cfg.lua (Y/I/N/O/D/Z) [default=N] ? I
Installing new version of config file /etc/prosody/prosody.cfg.lua ...
Installing new version of config file /etc/init.d/prosody ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for systemd (237-3ubuntu10.13) ...
Processing triggers for ureadahead (0.100.0-20) ...
root@jitsimeet:/home/lab/shared# apt-get install jitsi-meet-tokens
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-43 linux-headers-4.15.0-43-generic
  linux-image-4.15.0-43-generic linux-modules-4.15.0-43-generic
  linux-modules-extra-4.15.0-43-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  autotools-dev libltdl-dev liblua5.1-0 liblua5.1-0-dev libreadline-dev
  libtinfo-dev libtool libtool-bin lua-any luarocks pkg-config
Suggested packages:
  libtool-doc readline-doc autoconf automaken gfortran | fortran95-compiler
  gcj-jdk
The following NEW packages will be installed:
  autotools-dev jitsi-meet-tokens libltdl-dev liblua5.1-0 liblua5.1-0-dev
  libreadline-dev libtinfo-dev libtool libtool-bin lua-any luarocks pkg-config
0 upgraded, 12 newly installed, 0 to remove and 19 not upgraded.
Need to get 1,078 kB of archives.
After this operation, 6,091 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 autotools-dev all 20180224.1 [39.6 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 libltdl-dev amd64 2.4.6-2 [162 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 liblua5.1-0 amd64 5.1.5-8.1build2 [100 kB]
Get:4 https://download.jitsi.org unstable/ jitsi-meet-tokens 1.0.3251-1 [22.1 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtinfo-dev amd64 6.1-1ubuntu1.18.04 [81.3 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 libreadline-dev amd64 7.0-3 [133 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 liblua5.1-0-dev amd64 5.1.5-8.1build2 [119 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 libtool all 2.4.6-2 [194 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 libtool-bin amd64 2.4.6-2 [79.5 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 lua-any all 24 [4,718 B]
Get:11 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 luarocks all 2.4.2+dfsg-1 [97.6 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 pkg-config amd64 0.29.1-0ubuntu2 [45.0 kB]
Fetched 1,078 kB in 3s (409 kB/s)      
Preconfiguring packages ...
Selecting previously unselected package autotools-dev.
(Reading database ... 208369 files and directories currently installed.)
Preparing to unpack .../00-autotools-dev_20180224.1_all.deb ...
Unpacking autotools-dev (20180224.1) ...
Selecting previously unselected package libltdl-dev:amd64.
Preparing to unpack .../01-libltdl-dev_2.4.6-2_amd64.deb ...
Unpacking libltdl-dev:amd64 (2.4.6-2) ...
Selecting previously unselected package liblua5.1-0:amd64.
Preparing to unpack .../02-liblua5.1-0_5.1.5-8.1build2_amd64.deb ...
Unpacking liblua5.1-0:amd64 (5.1.5-8.1build2) ...
Selecting previously unselected package libtinfo-dev:amd64.
Preparing to unpack .../03-libtinfo-dev_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libtinfo-dev:amd64 (6.1-1ubuntu1.18.04) ...
Selecting previously unselected package libreadline-dev:amd64.
Preparing to unpack .../04-libreadline-dev_7.0-3_amd64.deb ...
Unpacking libreadline-dev:amd64 (7.0-3) ...
Selecting previously unselected package liblua5.1-0-dev:amd64.
Preparing to unpack .../05-liblua5.1-0-dev_5.1.5-8.1build2_amd64.deb ...
Unpacking liblua5.1-0-dev:amd64 (5.1.5-8.1build2) ...
Selecting previously unselected package libtool.
Preparing to unpack .../06-libtool_2.4.6-2_all.deb ...
Unpacking libtool (2.4.6-2) ...
Selecting previously unselected package libtool-bin.
Preparing to unpack .../07-libtool-bin_2.4.6-2_amd64.deb ...
Unpacking libtool-bin (2.4.6-2) ...
Selecting previously unselected package lua-any.
Preparing to unpack .../08-lua-any_24_all.deb ...
Unpacking lua-any (24) ...
Selecting previously unselected package luarocks.
Preparing to unpack .../09-luarocks_2.4.2+dfsg-1_all.deb ...
Unpacking luarocks (2.4.2+dfsg-1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../10-pkg-config_0.29.1-0ubuntu2_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu2) ...
Selecting previously unselected package jitsi-meet-tokens.
Preparing to unpack .../11-jitsi-meet-tokens_1.0.3251-1_all.deb ...
Unpacking jitsi-meet-tokens (1.0.3251-1) ...
Setting up lua-any (24) ...
Setting up libltdl-dev:amd64 (2.4.6-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Setting up libtinfo-dev:amd64 (6.1-1ubuntu1.18.04) ...
Setting up pkg-config (0.29.1-0ubuntu2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up autotools-dev (20180224.1) ...
Setting up libreadline-dev:amd64 (7.0-3) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up liblua5.1-0:amd64 (5.1.5-8.1build2) ...
Setting up libtool (2.4.6-2) ...
Setting up libtool-bin (2.4.6-2) ...
Setting up liblua5.1-0-dev:amd64 (5.1.5-8.1build2) ...
Setting up luarocks (2.4.2+dfsg-1) ...
Making manifest for /usr/local/lib/luarocks/rocks
Warning: This looks like a local rocks tree, but you did not pass --local-tree.
Generating index.html for /usr/local/lib/luarocks/rocks
Setting up jitsi-meet-tokens (1.0.3251-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/hmac.h:13:0,
                 from src/lcrypto.c:9:
/usr/include/openssl/rand.h:47: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/rsa.h:13:0,
                 from src/lcrypto.c:11:
/usr/include/openssl/rsa.h:193: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/dh.h:13:0,
                 from /usr/include/openssl/dsa.h:31,
                 from src/lcrypto.c:12:
/usr/include/openssl/dsa.h:122: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:0:
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.0-1.src.rock
basexx 0.4.0-1 is now installed in /usr/local (license: MIT)

This package requires BOSH Prosody module to be patched !
Use the following command, after this package has been installed and
after every prosody-trunk upgrade:
sudo patch -N /usr/lib/prosody/modules/mod_bosh.lua /usr/share/jitsi-meet/prosody-plugins/mod_bosh.lua.patch
Processing triggers for libc-bin (2.27-3ubuntu1) ...
root@jitsimeet:/home/lab/shared# sudo apt-get install lua-cjson-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-43 linux-headers-4.15.0-43-generic
  linux-image-4.15.0-43-generic linux-modules-4.15.0-43-generic
  linux-modules-extra-4.15.0-43-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  lua-cjson
The following NEW packages will be installed:
  lua-cjson lua-cjson-dev
0 upgraded, 2 newly installed, 0 to remove and 19 not upgraded.
Need to get 47.8 kB of archives.
After this operation, 255 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 lua-cjson amd64 2.1.0+dfsg-2.1 [17.4 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 lua-cjson-dev amd64 2.1.0+dfsg-2.1 [30.4 kB]
Fetched 47.8 kB in 1s (40.8 kB/s)       
Selecting previously unselected package lua-cjson:amd64.
(Reading database ... 208804 files and directories currently installed.)
Preparing to unpack .../lua-cjson_2.1.0+dfsg-2.1_amd64.deb ...
Unpacking lua-cjson:amd64 (2.1.0+dfsg-2.1) ...
Selecting previously unselected package lua-cjson-dev:amd64.
Preparing to unpack .../lua-cjson-dev_2.1.0+dfsg-2.1_amd64.deb ...
Unpacking lua-cjson-dev:amd64 (2.1.0+dfsg-2.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up lua-cjson:amd64 (2.1.0+dfsg-2.1) ...
Setting up lua-cjson-dev:amd64 (2.1.0+dfsg-2.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
root@jitsimeet:/home/lab/shared# apt-get install jitsi-meet-tokens
Reading package lists... Done
Building dependency tree       
Reading state information... Done
jitsi-meet-tokens is already the newest version (1.0.3251-1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-43 linux-headers-4.15.0-43-generic
  linux-image-4.15.0-43-generic linux-modules-4.15.0-43-generic
  linux-modules-extra-4.15.0-43-generic
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

Will Prosody work with these errors?
lbase64 & luajwtjitsi not installing


#2

16.04 will have support for the next 2 years.

You may wanna try it out, it’s quite stable for jitsi deployments.

Cheers!


#3

Any procedure to install tokens on 18.04? I have another stuff installed that requires 18.04 …I would like to be with 18.04


#4

A problem got resolved by following procedure:

sudo dpkg -i prosody-trunk_1nightly1074-1_bionic_amd64.deb

then

sudo apt-get install libssl1.0-dev

and then

sudo apt-get install luarocks

sudo luarocks install luacrypto

and then finally
sudo apt-get install jitsi-meet-tokens

but luajwtjitsi failed to install because luarocks and luacrypto was already installed before and not installed with the jisti-meet-token and git entry was unavailable.

Here I stuck with the only component - luajwtjitsi not installing.
Error: ‘git’ program not found. Make sure Git is installed and is available in your PATH (or you may want to edit the ‘variables.GIT’ value in file ‘/etc/luarocks/config.lua’)
Failed to install luajwtjitsi - try installing it manually


Secure Rooms and Authentication
#5

You need apt install git.


#6

OOOh Ok, I tried installing after re-installing git by purging git and now everything installed successfully on bionic. Thank you @damencho