Error installing jitsi-meet-tokens


#1

I’m getting errors installing jitsi-meet-tokens. Can someone help?

`
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©)
^~~~~~~~~~~~~~~~~~
EVP_MD_CTX_create
`


#2

FYI - I fixed this by using Ubuntu 17.10 instead of 18.*.


#3

HI markmadlangbayan thx for the Info.
I have Ubuntu 16.04 on my machine and i get an error on installing the dependencies.
Can anyone give me a tip, were is the Problem.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  jitsi-meet-tokens
0 upgraded, 1 newly installed, 0 to remove and 42 not upgraded.
Need to get 0 B/19.7 kB of archives.
After this operation, 98.3 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package jitsi-meet-tokens.
(Reading database ... 34174 files and directories currently installed.)
Preparing to unpack .../jitsi-meet-tokens_1.0.2942-1_all.deb ...
Unpacking jitsi-meet-tokens (1.0.2942-1) ...
Setting up jitsi-meet-tokens (1.0.2942-1) ...
Warning: Failed searching manifest: Failed extracting manifest file
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luajwtjitsi-1.3-7.rockspec...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luajwtjitsi-1.3-7.rockspec... switching to 'build' mode

Missing dependencies for luajwtjitsi:
lbase64 >= 20120807-3
luacrypto >= 0.3.2-1
lua-cjson >= 2.1.0

Warning: Failed searching manifest: Failed extracting manifest file
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lbase64-20120820-1.src.rock... switching to 'build' mode

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lbase64-20120820-1.src.rock - Failed unpacking rock file: /tmp/luarocks_luarocks-rock-lbase64-20120820-1-221/lbase64-20120820-1.src.rock
Failed to install luajwtjitsi - try installing it manually
Warning: Failed searching manifest: Failed extracting manifest file
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/basexx-0.4.0-1.src.rock...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/basexx-0.4.0-1.src.rock... switching to 'build' mode

Error: Failed unpacking rock file: /tmp/luarocks_luarocks-rock-basexx-0.4.0-1-569/basexx-0.4.0-1.src.rock
Failed to install basexx - try installing it manually
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```

#4

Looks like you’re trying to install from the stable repo. That didn’t work for me, I had dependency issues with luarock.

Installing from the unstable repo worked. If it helps, these are my versions.

ii  jitsi-meet                          1.0.3304-1                                 all          WebRTC JavaScript video conferences
ii  jitsi-meet-prosody                  1.0.3005-1                                 all          Prosody configuration for Jitsi Meet
ii  jitsi-meet-tokens                   1.0.3005-1                                 all          Prosody token authentication plugin for         Jitsi Meet
ii  jitsi-meet-web                      1.0.3005-1                                 all          WebRTC JavaScript video conferences
ii  jitsi-meet-web-config               1.0.3005-1                                 all          Configuration for web serving of Jitsi Meet
ii  jitsi-videobridge                   1084-1                                     amd64        WebRTC compatible Selective Forwarding Unit (SFU)
ii  nginx                               1.10.3-0ubuntu0.16.04.2                    all          small, powerful, scalable web/proxy server
ii  nginx-common                        1.10.3-0ubuntu0.16.04.2                    all          small, powerful, scalable web/proxy server - common files
ii  nginx-core                          1.10.3-0ubuntu0.16.04.2                    amd64        nginx web/proxy server (core version)
ic  prosody                             0.9.10-1                                   amd64        Lightweight Jabber/XMPP server
ii  prosody-trunk                       1nightly747-1~xenial                       amd64        Lightweight Jabber/XMPP server

#5

Thx for the tip, but the issue is the same, even with the unstable version :frowning:

Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  liblua5.1-0 liblua5.1-0-dev libreadline-dev libreadline6-dev libtinfo-dev luarocks zip
Suggested packages:
  readline-doc
Recommended packages:
  pkg-config libtool libtool-bin unzip
The following NEW packages will be installed:
  jitsi-meet-tokens liblua5.1-0 liblua5.1-0-dev libreadline-dev libreadline6-dev libtinfo-dev luarocks zip
0 upgraded, 8 newly installed, 0 to remove and 48 not upgraded.
Need to get 19.7 kB/690 kB of archives.
After this operation, 3,450 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://download.jitsi.org unstable/ jitsi-meet-tokens 1.0.3012-1 [19.7 kB]
Fetched 19.7 kB in 0s (65.0 kB/s)       
Preconfiguring packages ...
Selecting previously unselected package liblua5.1-0:amd64.
(Reading database ... 34036 files and directories currently installed.)
Preparing to unpack .../liblua5.1-0_5.1.5-8ubuntu1_amd64.deb ...
Unpacking liblua5.1-0:amd64 (5.1.5-8ubuntu1) ...
Selecting previously unselected package libtinfo-dev:amd64.
Preparing to unpack .../libtinfo-dev_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking libtinfo-dev:amd64 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package libreadline6-dev:amd64.
Preparing to unpack .../libreadline6-dev_6.3-8ubuntu2_amd64.deb ...
Unpacking libreadline6-dev:amd64 (6.3-8ubuntu2) ...
Selecting previously unselected package libreadline-dev:amd64.
Preparing to unpack .../libreadline-dev_6.3-8ubuntu2_amd64.deb ...
Unpacking libreadline-dev:amd64 (6.3-8ubuntu2) ...
Selecting previously unselected package liblua5.1-0-dev:amd64.
Preparing to unpack .../liblua5.1-0-dev_5.1.5-8ubuntu1_amd64.deb ...
Unpacking liblua5.1-0-dev:amd64 (5.1.5-8ubuntu1) ...
Selecting previously unselected package zip.
Preparing to unpack .../archives/zip_3.0-11_amd64.deb ...
Unpacking zip (3.0-11) ...
Selecting previously unselected package luarocks.
Preparing to unpack .../luarocks_2.2.0+dfsg-2_all.deb ...
Unpacking luarocks (2.2.0+dfsg-2) ...
Selecting previously unselected package jitsi-meet-tokens.
Preparing to unpack .../jitsi-meet-tokens_1.0.3012-1_all.deb ...
Unpacking jitsi-meet-tokens (1.0.3012-1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up liblua5.1-0:amd64 (5.1.5-8ubuntu1) ...
Setting up libtinfo-dev:amd64 (6.0+20160213-1ubuntu1) ...
Setting up libreadline6-dev:amd64 (6.3-8ubuntu2) ...
Setting up libreadline-dev:amd64 (6.3-8ubuntu2) ...
Setting up liblua5.1-0-dev:amd64 (5.1.5-8ubuntu1) ...
Setting up zip (3.0-11) ...
Setting up luarocks (2.2.0+dfsg-2) ...
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.3012-1) ...
Warning: Failed searching manifest: Failed extracting manifest file
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luajwtjitsi-1.3-7.rockspec...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luajwtjitsi-1.3-7.rockspec... switching to 'build' mode

Missing dependencies for luajwtjitsi:
lbase64 >= 20120807-3
luacrypto >= 0.3.2-1
lua-cjson >= 2.1.0

Warning: Failed searching manifest: Failed extracting manifest file
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lbase64-20120820-1.src.rock... switching to 'build' mode

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lbase64-20120820-1.src.rock - Failed unpacking rock file: /tmp/luarocks_luarocks-rock-lbase64-20120820-1-3027/lbase64-20120820-1.src.rock
Failed to install luajwtjitsi - try installing it manually
Warning: Failed searching manifest: Failed extracting manifest file
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/basexx-0.4.0-1.src.rock...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/basexx-0.4.0-1.src.rock... switching to 'build' mode

Error: Failed unpacking rock file: /tmp/luarocks_luarocks-rock-basexx-0.4.0-1-6028/basexx-0.4.0-1.src.rock
Failed to install basexx - try installing it manually
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.23-0ubuntu10) ...```

#6

to FIX -> install unzip !!!
apt -y install unzip

even when “unzip” is already installed

Here you can find the Issue report.


#7

I just created a fresh VM on DO of ubuntu 16.04

# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.5 LTS
Release:	16.04
Codename:	xenial

And installed everything without an error:

# history
    1  wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
    2  sudo sh -c "echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi-stable.list"
    3  apt-get -y update
    4  apt-get -y install jitsi-meet
    5  lsb_release -a
    6  wget https://packages.prosody.im/debian/pool/main/p/prosody-trunk/prosody-trunk_1nightly747-1~xenial_amd64.deb
    7  dpkg -i prosody-trunk_1nightly747-1~xenial_amd64.deb
    8  apt-get install jitsi-meet-tokens
    9  lsb_release -a
   10  history

Here is my console log: console-log.txt (64.5 KB)