Cannot reinstall previous DNS sticks in virtual machine

Using Ubuntu 18.04 LTS kernel 4.15.0-118-generic

Using a virtual server under DigitalOcean with a droplet.

In attempting to install from deb package as per: https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-quickstart entered a DNS site with sub-directory. It failed in attempting to create subdirectories. Attempts to install by manually creating sub-directories did’t work either. Then purged and install as per

sudo apt purge jigasi jitsi-meet jitsi-meet-web-config jitsi-meet-prosody jitsi-meet-turnserver jitsi-meet-web jicofo jitsi-videobridge2

any un-removed directories were also removed if they could not be purged since they were not empty.
also ran autoremove

Attempted a re-install step by step from the beginning until:

sudo apt install jitsi-meet

which resulted in dpkg error: from cp error:

cp: cannot create regular file ‘/etc/jitsi/meet/rasl.ca/meetings-config.js’: No such file or directory

which results from the previous installation which was to be purged but obviously wasn’t.

I am attempting to use my website rasl.ca as a DNS and had created a subdirectory rasl.ca/meetings under the main directory of the ftp site. I believe I am supposed to use rasl.ca as the DNS rather than a subdirectory but I cannot re-install because it keeps using the last entered DNS.

Can you help please?

What is the hostname you enter, rasl.ca/meetings is not correct hostname.

Did this ran without errors?

Thank you for your reply. Yes the purge ran without errors other than it did not delete /etc/jitsi-meet and /etc/jitsi/videobridge so I deleted them manually. also ran

updatedb
locate jitsi

and deleted everything that had jitsi in it

then
updatedb
locate rasl
and deleted everything with rasl in it

Then tried the manual install and many of the packages are outdated and died at npm install when trying to install jitsi-meet from source.

Any help would be greatly aprpeaciated. This is the fourth day I have been working on this.

Also, I have obtained a DNS A entry named meet.learning.com and initiated it so I can use that as a DNS name or hostname. Hope that helps.

Can you run this command for a the packages listed in the uninstall command like this:
debconf-show jitsi-meet-web-config
debconf-show jitsi-videobridge2
Is there anything shown?

no. Here is the result:

root@virtualstreamer:~# debconf-show jitsi-meet-web-config
root@virtualstreamer:~# debconf-show jitsi-videobridge2
root@virtualstreamer:~#

it fails in the apt install jitsi-meet step and it appears to be in the configuration part of the install. It always assumes I am using rasl.ca/meetings as the hostname and will not let me enter a new one.

I am willing to try an older .deb file or build the .deb file from source. The build from source instructions on GitHub are very depreciated and no longer work.

What about debconf-show for the rest of the packages?

Do you have /etc/jitsi folder?

nope, the /etc/jitsi folder was deleted manually

root@virtualstreamer:~# cd /etc/jitsi
-bash: cd: /etc/jitsi: No such file or directory
root@virtualstreamer:~#

What about debconf-show for the other packages?

I think I purged and deleted everything:

root@virtualstreamer:~# cd /etc/jitsi
-bash: cd: /etc/jitsi: No such file or directory
root@virtualstreamer:~# debconf-show gnupg2
root@virtualstreamer:~# debconf-show apt-transport-https
root@virtualstreamer:~# debconf-show jitsi
root@virtualstreamer:~# debconf-show rasl
root@virtualstreamer:~# debconf-show meetings
root@virtualstreamer:~#

is there a log file or debug file. I could try to reinstall and copy and paste results. Kinda lengthy.

It may be in the key configuration section of the install. Just a guess.

I mean execute the command for everyone of the packages listed in the uninstall command

debconf-show
For every of jitsi-meet jitsi-meet-web-config jitsi-meet-prosody jitsi-meet-turnserver jitsi-meet-web jicofo jitsi-videobridge2

Thank you damencho for spelling it out for me. Here are the results:

root@virtualstreamer:~# debconf-show jigasi
root@virtualstreamer:~# debconf-show jitsi-meet
root@virtualstreamer:~# debconf-show jitsi-meet-web-config
root@virtualstreamer:~# debconf-show jitsi-meet-prosody
root@virtualstreamer:~# debconf-show jitsi-meet-turnserver
jitsi-meet-turnserver/jvb-hostname:

  • jitsi-videobridge/jvb-hostname: rasl.ca/meetings
    root@virtualstreamer:~# debconf-show jitsi-meet-web
    root@virtualstreamer:~# debconf-show jicofo
    root@virtualstreamer:~# debconf-show jitsi-videobridge2
    root@virtualstreamer:~#

Obviously root@virtualstreamer:~# debconf-show jitsi-meet-turnserver
jitsi-meet-turnserver/jvb-hostname:

  • jitsi-videobridge/jvb-hostname: rasl.ca/meetings

is the culprit. I did run the complete purge line as above, however, decided to run it again with this result:

root@virtualstreamer:~# apt purge jitsi-meet-turnserver
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package jitsi-meet-turnserver
root@virtualstreamer:~# debconf-show jitsi-meet-turnserver

  • jitsi-videobridge/jvb-hostname: rasl.ca/meetings
    jitsi-meet-turnserver/jvb-hostname:
    root@virtualstreamer:~#

Thanks for getting me this far. How do I kill the remnant?

Try echo PURGE | debconf-communicate jitsi-meet-turnserver
What about debconf-show jitsi-videobridge2, if its not empty use the command above to clear it and try again.

Done:

root@virtualstreamer:~# debconf-show jitsi-videobridge2
root@virtualstreamer:~# echo PURGE | debconf-communicate jitsi-meet-turnserver
0
root@virtualstreamer:~# echo PURGE | debconf-communicate jitsi-meet-turnserver
0
root@virtualstreamer:~#

so it looks like jitsi-videobridge2 has been completely purged and I assume the “0” result from

echo PURGE | debconf-communicate jitsi-meet-turnserver

has killed it???

If so, then I will try to reinstall through the prerequisites and .deb file. I will proceed with a reinstall and let you know.

Thanks for your help. I think we should update readme.md when I have succeeded with the re-install.

I get the following which shows promise:

root@virtualstreamer:~# debconf-show jitsi-meet-turnserver
root@virtualstreamer:~#

The re-install still fails and the incorrect hostname rasl.ca/meetings is still prevalent in the install. I tried a reinstall and there was a failure in setting up ngnix. After checking ngnix that it runs ok tried another reinstall and it failed at the prosody config step because it was looking for rasl.ca/meetings.cfg.lua. Here is some output:

nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
root@virtualstreamer:~# sudo apt install jitsi-meet
Reading package lists… Done
Building dependency tree
Reading state information… Done
jitsi-meet is already the newest version (2.0.5076-1).
The following packages were automatically installed and are no longer required:
coturn libevent-core-2.1-6 libevent-extra-2.1-6 libevent-openssl-2.1-6 libevent-pthreads-2.1-6 libhiredis0.13 libmysqlclient20 libpq5
mysql-common
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up jitsi-meet-prosody (1.0.4428-1) …
cp: cannot create regular file ‘/etc/prosody/conf.avail/rasl.ca/meetings.cfg.lua’: No such file or directory
dpkg: error processing package jitsi-meet-prosody (–configure):
installed jitsi-meet-prosody package post-installation script subprocess returned error exit status 1

Thank you so much for your time and effort. I then uninstalled according to readme.md with purge and attempted another reinstall.

Here is some additional results after attempting a reinstall:

E: Sub-process /usr/bin/dpkg returned an error code (1)
root@virtualstreamer:~# debconf-show jitsi-meet-turnserver

  • jitsi-videobridge/jvb-hostname: rasl.ca/meetings
    jitsi-meet-turnserver/jvb-hostname:
    root@virtualstreamer:~#

So somehow it is being put back in again.

root@virtualstreamer:~# echo PURGE | debconf-communicate jitsi-meet-turnserver
0
root@virtualstreamer:~# debconf-show jitsi-meet-turnserver
root@virtualstreamer:~#

sudo apt purge jigasi jitsi-meet jitsi-meet-web-config jitsi-meet-prosody jitsi-meet-turnserver jitsi-meet-web jicofo jitsi-videobridge2

resulted in following errors:

root@virtualstreamer:~# sudo apt purge jigasi jitsi-meet jitsi-meet-web-config jitsi-meet-prosody jitsi-meet-turnserver jitsi-meet-web jicofo jitsi-videobridge2
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ‘jigasi’ is not installed, so not removed
Package ‘jitsi-meet-turnserver’ is not installed, so not removed
The following packages were automatically installed and are no longer required:
coturn libevent-core-2.1-6 libevent-extra-2.1-6 libevent-openssl-2.1-6 libevent-pthreads-2.1-6 libgd3 libhiredis0.13 libmysqlclient20
libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libpq5
lua-bitop lua-expat lua-filesystem lua-sec lua-socket lua5.1 mysql-common nginx nginx-common nginx-core prosody ssl-cert
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
jicofo* jitsi-meet* jitsi-meet-prosody* jitsi-meet-web* jitsi-meet-web-config* jitsi-videobridge2*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 126 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 151227 files and directories currently installed.)
Removing jitsi-meet (2.0.5076-1) …
Removing jitsi-meet-prosody (1.0.4428-1) …
Removing jitsi-meet-web-config (1.0.4428-1) …
nginx.service is not active, cannot reload.
invoke-rc.d: initscript nginx, action “reload” failed.
Removing jicofo (1.0-636-1) …
Removing jitsi-meet-web (1.0.4428-1) …
Removing jitsi-videobridge2 (2.1-351-g0bfaac1c-1) …
Setting up nginx-core (1.14.0-0ubuntu1.7) …
Job for nginx.service failed because the control process exited with error code.
See “systemctl status nginx.service” and “journalctl -xe” for details.
invoke-rc.d: initscript nginx, action “start” failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-09-28 15:45:19 UTC; 9ms ago
Docs: man:nginx(8)
Process: 4390 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Sep 28 15:45:19 virtualstreamer systemd[1]: Starting A high performance web server and a reverse proxy server…
Sep 28 15:45:19 virtualstreamer nginx[4390]: nginx: [emerg] open() “/etc/nginx/sites-enabled/meet.learning.com” failed (2: No such file or d
irectory) in /etc/nginx/nginx.conf:62
Sep 28 15:45:19 virtualstreamer nginx[4390]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 28 15:45:19 virtualstreamer systemd[1]: nginx.service: Control process exited, code=exited status=1
Sep 28 15:45:19 virtualstreamer systemd[1]: nginx.service: Failed with result ‘exit-code’.
Sep 28 15:45:19 virtualstreamer systemd[1]: Failed to start A high performance web server and a reverse proxy server.
dpkg: error processing package nginx-core (–configure):
installed nginx-core package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-core (<< 1.14.0-0ubuntu1.7.1~) | nginx-full (<< 1.14.0-0ubuntu1.7.1~) | nginx-light (<< 1.14.0-0ubuntu1.7.1~) | ngin
x-extras (<< 1.14.0-0ubuntu1.7.1~); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-core (>= 1.14.0-0ubuntu1.7) | nginx-full (>= 1.14.0-0ubuntu1.7) | nginx-light (>= 1.14.0-0ubuntu1.7) | nginx-extras
(>= 1.14.0-0ubuntu1.7); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.

dpkg: error processing package nginx (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while proc
essing:
nginx-core
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

ngnix server was stopped at the time.

root@virtualstreamer:~# debconf-show jitsi-meet-turnserver
root@virtualstreamer:~#

using a script doit.sh gave following output:

root@virtualstreamer:~# more doit.sh
debconf-show jigasi
debconf-show jitsi-meet
debconf-show jitsi-meet-web-config
debconf-show jitsi-meet-prosody
debconf-show jitsi-meet-turnserver
debconf-show jitsi-meet-web
debconf-show jicofo
debconf-show jitsi-videobridge2
root@virtualstreamer:~#
root@virtualstreamer:~#
root@virtualstreamer:~#
root@virtualstreamer:~#
root@virtualstreamer:~# ./doit.sh
jitsi-meet/jvb-hostname:
jitsi-meet/cert-path-key:

  • jitsi-videobridge/jvb-hostname: rasl.ca/meetings
  • jitsi-meet/cert-choice: Generate a new self-signed certificate (You will later get a chance to obtain a Let’s encrypt certificate)
    jitsi-meet/cert-path-crt:
    jicofo/jicofo-authpassword: (password omitted)
    jitsi-videobridge/jvbsecret: (password omitted)
    jicofo/jicofosecret: (password omitted)
    jicofo/jicofo-authuser: focus
    jitsi-meet-prosody/turn-secret: QT3CEwMxHKzCr1g5
  • jitsi-videobridge/jvb-hostname: rasl.ca/meetings
    jitsi-meet-prosody/jvb-hostname: rasl.ca/meetings
    jicofo/jicofosecret: (password omitted)
    jicofo/jicofo-authpassword: (password omitted)
    jicofo/jicofo-authuser: focus
    ******** * jitsi-videobridge/jvb-hostname: rasl.ca/meetings ********************
    jitsi-videobridge/jvbsecret: (password omitted)
  • jitsi-videobridge/jvb-hostname: rasl.ca/meetings
    root@virtualstreamer:~#

This could be left behind in an ngnix config???

I also use ngnix for streaming to multiple outputs in vidcasts so it was always installed. However the very first time I tried to install jitsi it went through fine until I gave it rasl.ca/meetings as a hostname. I notice above in the purge with ngnix involved that the server could not start because it was looking for a nonexistent file as per

Sep 28 15:45:19 virtualstreamer nginx[4390]: nginx: [emerg] open() “/etc/nginx/sites-enabled/meet.learning.com” failed (2: No such file or d
irectory) in /etc/nginx/nginx.conf:62

which is the first time I see meet.learning.com which is the hostname I want. That would come from my /etc/host file where I set my public IP address to meet.learning.com.

XXX.XXX.XXX.XXX meet.learning.com meet.learning.com

I removed that line and rebooted.

Same error with ngnix looking for meet.learning.com. However ngnix starts and stops just fine using terminal command line.

root@virtualstreamer:~# /usr/local/nginx/sbin/nginx
root@virtualstreamer:~# /usr/local/nginx/sbin/nginx -s stop
root@virtualstreamer:~#
root@virtualstreamer:~# debconf-show ngnix
root@virtualstreamer:~#

Thank you for your time.

-Bruce