Ubuntu 18.04 jitsi-meet package "apt-get purge" and "apt-get install" failure

Steps done:

  1. Installation like described here:
    https://jitsi.org/downloads/ubuntu-debian-installations-instructions/

Result: Ok so far.

  1. Uninstall:
    sudo apt-get purge jitsi-meet

Result: Failed or incomplete. Jitsi still running, branch /etc/jitsi not removed.
Fix: Kill instance and remove /etc/jitsi manually.

  1. Reinstall:
    sudo apt-get install jitsi-meet
    Result: Configuration part of installation is not run like it was doen on the first time (pure) installation.
    Fix: sudo dpkg-reconfigure
    Result: Runs partially but fails finally: “/var/lib/dpkg/info/jitsi-videobridge.postinst: line 44: /etc/jitsi/videobridge/config: No such file or directory”

Question:
a) How to remove manually jitsi-meet completely from system in order to get clean install
and/or
b) How to make for example “sudo apt-get install --reinstall jitsi-meet” do the job?

You need to remove all components, not just jitsi-meet. Run dpkg -l | grep -v jitsi to see what packages need to be removed.

  1. That will give huge amout of packages:
    dpkg -l | grep -v jitsi | wc
    655 6497 85871

  2. Package is incorrectly built when package manager does not remove all added software when uninstalling.

Better result by:
dpkg -l | grep jitsi
ii jitsi-archive-keyring 1.0.1 all The public key for the Jitsi packages repository
ii jitsi-meet-prosody 1.0.3729-1 all Prosody configuration for Jitsi Meet
ii jitsi-meet-web 1.0.3729-1 all WebRTC JavaScript video conferences
ii jitsi-meet-web-config 1.0.3729-1 all Configuration for web serving of Jitsi Meet
ii jitsi-videobridge 1126-1 amd64 WebRTC compatible Selective Forwarding Unit (SFU)

Apparently
sudo apt-get purge jitsi-*
revoved all modules.

I did even:
sudo -s
locate jitsi | xargs -r -n 1 -I{} rm -r {}

i.e. trying to make sure everything is cleaned away, but still the same problem: When installing according to the first message there is no configuration part at the end. Trying to fix situation by “sudo dpkg-reconfigure jitsi-meet” also fails, no action.

Oops, sorry yeah, skip the -v

That’s weird. Iss your system one of those “minimal” images? Can you give us some more details about your setup?

Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Kernel: 4.15.0-74-generic

Standard Ubuntu server offered by Hetzner hosting.

sudo apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
linux-image-virtual
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Success:
sudo dpkg-reconfigure jitsi-videobridge

Failure:
sudo dpkg-reconfigure jitsi-meet
/usr/sbin/dpkg-reconfigure: jitsi-meet is broken or not fully installed

Can you wipe all jitsi packages, reinstall and paste the output you get when you do that?

That is the point of question: Uninstall did not wipe all what was done during jitsi-meet package installation, i.e. uninstall of jitsi-meet package did not result in original situation before installation. Everything else is an attempt to find some work around. Here is the output from install and uninstall:

sudo apt-get install jitsi-meet
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
jitsi-meet
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/2,718 B of archives.
After this operation, 11.3 kB of additional disk space will be used.
Selecting previously unselected package jitsi-meet.
(Reading database … 49355 files and directories currently installed.)
Preparing to unpack …/jitsi-meet_1.0.4101-1_all.deb …
Unpacking jitsi-meet (1.0.4101-1) …
Setting up jitsi-meet (1.0.4101-1) …

sudo apt-get purge jitsi-meet
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
jitsi-meet-prosody jitsi-meet-web jitsi-meet-web-config jitsi-videobridge libgd3 libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail
libnginx-mod-stream libwebp6 libxpm4 lua-bitop lua-expat lua-filesystem lua-sec lua-socket lua5.1 nginx-common nginx-core prosody ssl-cert
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
jitsi-meet*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 11.3 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 49358 files and directories currently installed.)
Removing jitsi-meet (1.0.4101-1) …
(Reading database … 49355 files and directories currently installed.)
Purging configuration files for jitsi-meet (1.0.4101-1) …

ls -l /etc/jitsi
total 12
drwx------ 2 jicofo jitsi 4096 Mar 6 15:49 jicofo
drwxr-xr-x 2 root root 4096 Mar 6 11:04 meet
drwx------ 2 jvb jitsi 4096 Mar 6 22:58 videobridge

sudo tree /etc/jitsi
/etc/jitsi
├── jicofo
│ ├── config
│ └── sip-communicator.properties
├── meet
│ └── meeting.–(some_actual_domain_here)–.fi-config.js
└── videobridge
├── callstats-java-sdk.properties
├── config
├── log4j2.xml
├── logging.properties
└── sip-communicator.properties

ls /usr/share/ji*
/usr/share/jicofo:
collect-dump-logs.sh jicofo.jar jicofo.sh lib

/usr/share/jitsi-meet:
base.html connection_optimization favicon.ico head.html index.html lang logging_config.js package-lock.json scripts static
body.html css fonts images interface_config.js libs package.json plugin.head.html sounds title.html

/usr/share/jitsi-videobridge:
collect-dump-logs.sh graceful_shutdown.sh jitsi-videobridge.jar jvb.sh lib

Have you followed the uninstall instructions? https://jitsi.org/qi#uninstall

Never seen that before :slightly_smiling_face:

However:
sudo apt-get purge jigasi jitsi-meet jitsi-meet-web-config jitsi-meet-prosody jitsi-meet-turnserver jitsi-meet-web jicofo jitsi-videobridge
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package jitsi-meet-turnserver


AFAIK standard uninstall for any software package is just:

sudo apt-get purge <package_name>

About Instructions, chapter systemd details, pls. check the /var/run… path:

sudo cat /proc/$(sudo cat /var/run/jitsi-videobridge/jitsi-videobridge.pid)/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 65000 65000 processes
Max open files 65000 65000 files
Max locked memory 16777216 16777216 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 7662 7662 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us

Server still responds and directory structure exists after running

sudo apt-get purge jigasi jitsi-meet jitsi-meet-web-config jitsi-meet-prosody jitsi-meet-turnserver jitsi-meet-web jicofo jitsi-videobridge
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package jitsi-meet-turnserver

curl -I -k https://cafe.some_domain_here.fi
HTTP/1.1 200 OK
Date: Sat, 07 Mar 2020 08:36:30 GMT
Last-Modified: Fri, 15 Nov 2019 15:57:18 GMT
Content-Type: text/html
Accept-Ranges: bytes
Content-Length: 32555
Server: Jetty(9.4.15.v20190215)

ps $(pgrep java)
PID TTY STAT TIME COMMAND
8715 ? Sl 2:28 java -Xmx3072m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Djava.library.path=/usr/share/jicofo/lib/native/linux-64 -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/etc/jitsi -D…
11550 ? Ssl 2:25 java -Xmx3072m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Djava.library.path=/usr/share/jitsi-videobridge/lib/native/linux-64 -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION…

sudo tree /etc/jitsi
/etc/jitsi
├── jicofo
│ ├── config
│ └── sip-communicator.properties
├── meet
│ ├── cafe.some_domain_here.fi-config.js
│ ├── cafe.some_domain_here.fi.crt
│ └── cafe.some_domain_here.fi.key
└── videobridge
├── cafe.some_domain_here.fi.jks
├── cafe.some_domain_here.fi.p12
├── callstats-java-sdk.properties
├── config
├── log4j2.xml
├── logging.properties
└── sip-communicator.properties

ls /usr/share/ji*
/usr/share/jicofo:
collect-dump-logs.sh jicofo.jar jicofo.sh lib

/usr/share/jitsi-meet:
base.html connection_optimization favicon.ico head.html index.html lang logging_config.js package-lock.json scripts static
body.html css fonts images interface_config.js libs package.json plugin.head.html sounds title.html

/usr/share/jitsi-videobridge:
collect-dump-logs.sh graceful_shutdown.sh jitsi-videobridge.jar jvb.sh lib

1 Like

FYI: Following procedure made installation with nginx server work.

Prerequisites: Ubuntu 18.04, installed nginx, defined DNS and verified https functionality using Let’s Encrypt certificate.

sudo apt-get purge jigasi jitsi-meet jitsi-meet-web-config jitsi-meet-prosody jitsi-meet-web jicofo jitsi-videobridge
i.e. omitted “jitsi-meet-turnserver” which made uninstall fail prematurely.

sudo apt-get install jitsi-meet

sudo dpkg-reconfigure jitsi-videobridge
Selected the domain.

sudo dpkg-reconfigure jitsi-meet-web-config
Selected Let’s Encrypt cert.

sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

2 Likes

Thanks for the report. The turnserver integration is recent and may have some rough edges still.