Jitsi skipping hostname and giving error on re-installation

Hii
I am new to jitsi-meet. I have installed jitsi on digital ocean droplet. Ubuntu 20.04. It worked properly and i created meetings tested. I uninstalled all packages following the official docs:
here
also uninstalled jitsi-videobridge2 manually since its not mentioned there. Here’s the list of commands in order i ran:
apt-get --purge remove jitsi-meet jitsi-meet-prosody jigasi jitsi-meet-web jitsi-meet-web-config jitsi-meet-turnserver jicofo jitsi-videobridge2

apt-get purge jitsi-videobridge2

apt-get autoclean

sudo apt-get --force-yes remove 

sudo apt-get install --reinstall dpkg

apt-get autoremove && apt-get autoclean

But after that when i tried to reinstall the package, jitsi is not asking for hostname and directly goes to ssl certificate promt. Also i also tried removing nginx completely and reinstalled. This is the output i see after the installer run is complete

Created symlink /etc/systemd/system/multi-user.target.wants/jitsi-videobridge2.service → /lib/systemd/system/jitsi-videobridge2.service.
Selecting previously unselected package jitsi-meet.
(Reading database ... 128796 files and directories currently installed.)
Preparing to unpack .../jitsi-meet_2.0.4857-1_all.deb ...
Unpacking jitsi-meet (2.0.4857-1) ...
Setting up jitsi-meet-prosody (1.0.4289-1) ...
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 104: [: /etc/prosody/conf.avail/: binary operator expected
The given hostname does not exist in the config
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 138: [: /etc/prosody/conf.avail/: binary operator expected
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 145: [: /var/lib/prosody/: binary operator expected
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 171: [: /etc/prosody/conf.avail/: binary operator expected
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 180: [: /var/lib/prosody/auth.: binary operator expected
Setting up jitsi-meet-web-config (1.0.4289-1) ...
req: Use -help for summary.
dpkg: error processing package jitsi-meet-web-config (--configure):
 installed jitsi-meet-web-config package post-installation script subprocess returned error exit status 1
Setting up jicofo (1.0-612-1) ...
useradd: warning: the home directory /usr/share/jicofo already exists.
useradd: Not copying any file from skel directory into it.
dpkg: dependency problems prevent configuration of jitsi-meet:
 jitsi-meet depends on jitsi-meet-web-config (= 1.0.4289-1); however:
  Package jitsi-meet-web-config is not configured yet.

dpkg: error processing package jitsi-meet (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up jitsi-meet-web (1.0.4289-1) ...
Processing triggers for systemd (245.4-4ubuntu3.1) ...
Errors were encountered while processing:
 jitsi-meet-web-config
 jitsi-meet
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu-s-1vcpu-1gb-fra1-01:~#

This is not a part of the install. It comes from your system configuration.

  1. sudo vi /etc/hosts
    Edit the line with “127.0.0.1” adding the host name meet.mycompany.com

  2. Add the same hostname to the hostname file:
    sudo vi /etc/hostname and add meet.mycompany.com

  3. Reboot or run sudo hostnamectl set-hostname meet.mycompany.com

Then rerun the Jitsi install.

Hey @corby thanks alot for taking time to look into this. But unfortunately it still is having the same error. I am not able to change the domain name. It still skips the step to ask hostname during installation and just jumps to ssl key prompt.
I am running it on hosted server, and have successfully configured the setup once. But i just uninstalled the setup once then, jitsi is not asking me hostname ever since.
Also here’s one more error i forgot to add earlier. (i’ll add that now) here’s what i am seeing after the installation process is complete

Created symlink /etc/systemd/system/multi-user.target.wants/jitsi-videobridge2.service → /lib/systemd/system/jitsi-videobridge2.service.
Selecting previously unselected package jitsi-meet.
(Reading database ... 128796 files and directories currently installed.)
Preparing to unpack .../jitsi-meet_2.0.4857-1_all.deb ...
Unpacking jitsi-meet (2.0.4857-1) ...
Setting up jitsi-meet-prosody (1.0.4289-1) ...
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 104: [: /etc/prosody/conf.avail/: binary operator expected
The given hostname does not exist in the config
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 138: [: /etc/prosody/conf.avail/: binary operator expected
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 145: [: /var/lib/prosody/: binary operator expected
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 171: [: /etc/prosody/conf.avail/: binary operator expected
/var/lib/dpkg/info/jitsi-meet-prosody.postinst: line 180: [: /var/lib/prosody/auth.: binary operator expected
Setting up jitsi-meet-web-config (1.0.4289-1) ...
req: Use -help for summary.
dpkg: error processing package jitsi-meet-web-config (--configure):
 installed jitsi-meet-web-config package post-installation script subprocess returned error exit status 1
Setting up jicofo (1.0-612-1) ...
useradd: warning: the home directory /usr/share/jicofo already exists.
useradd: Not copying any file from skel directory into it.
dpkg: dependency problems prevent configuration of jitsi-meet:
 jitsi-meet depends on jitsi-meet-web-config (= 1.0.4289-1); however:
  Package jitsi-meet-web-config is not configured yet.

dpkg: error processing package jitsi-meet (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up jitsi-meet-web (1.0.4289-1) ...
Processing triggers for systemd (245.4-4ubuntu3.1) ...
Errors were encountered while processing:
 jitsi-meet-web-config
 jitsi-meet
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu-s-1vcpu-1gb-fra1-01:~#```

Newly created droplet will be better.

While autoremove, add --purge too to delete the old config files of the auto-installed packages.

apt-get autoremove --purge
1 Like