Problem with letsencrypt while installing Jitsi

Hello,

I’m trying to install Jitsi and I was able to proceed until install-letsencrypt-cert.sh and after entering an email address nothing happens! and when accessing my domain it is not secured.

You need to agree to the ACME server’s Subscriber Agreement (https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf)
by providing an email address for important account notifications
Enter your email and press [ENTER]: Here I entered an email address
root@jitsiJibri:~#

Console log:

502 (Bad Gateway)
d @ strophe.umd.js:5123
_processRequest @ strophe.umd.js:5137
_throttledRequestHandler @ strophe.umd.js:5290
_connect @ strophe.umd.js:4586
connect @ strophe.umd.js:2368
_interceptConnectArgs @ strophe.stream-management.js:224
connect @ XmppConnection.js:264
_connect @ xmpp.js:544
connect @ xmpp.js:646
Ud.connect @ JitsiConnection.js:61
Woe @ connection.js:52
(anonymous) @ connection.js:196
Yoe @ connection.js:121
Goe @ connection.js:226
nle @ conference.js:217
createInitialLocalTracksAndConnect @ conference.js:713
init @ conference.js:865
await in init (async)
(anonymous) @ actions.web.js:31
Promise.then (async)
(anonymous) @ actions.web.js:30
(anonymous) @ index.js:11
(anonymous) @ middleware.js:30
(anonymous) @ middleware.js:33
(anonymous) @ middleware.js:19
(anonymous) @ middleware.web.js:29
(anonymous) @ middleware.any.js:46
(anonymous) @ middleware.js:67
(anonymous) @ middleware.js:45
(anonymous) @ middleware.js:61
(anonymous) @ middleware.js:20
(anonymous) @ middleware.js:121
(anonymous) @ middleware.js:71
(anonymous) @ middleware.js:79
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:221
(anonymous) @ middleware.js:11
(anonymous) @ middleware.js:80
(anonymous) @ middleware.js:31
(anonymous) @ middleware.web.js:46
(anonymous) @ middleware.web.js:24
(anonymous) @ middleware.any.js:94
(anonymous) @ middleware.js:46
(anonymous) @ middleware.js:77
(anonymous) @ middleware.web.js:38
(anonymous) @ middleware.js:32
(anonymous) @ middleware.js:25
(anonymous) @ middleware.js:16
(anonymous) @ middleware.js:21
(anonymous) @ middleware.js:23
(anonymous) @ middleware.js:20
(anonymous) @ middleware.js:16
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:33
(anonymous) @ middleware.js:256
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:24
(anonymous) @ middleware.js:28
(anonymous) @ middleware.web.js:20
(anonymous) @ middleware.js:42
(anonymous) @ middleware.js:227
(anonymous) @ middleware.js:21
(anonymous) @ middleware.js:147
(anonymous) @ middleware.js:44
(anonymous) @ middleware.js:49
(anonymous) @ middleware.js:90
(anonymous) @ middleware.js:12
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:35
(anonymous) @ middleware.web.js:52
(anonymous) @ middleware.any.js:110
(anonymous) @ middleware.js:203
(anonymous) @ middleware.js:106
(anonymous) @ middleware.js:29
(anonymous) @ middleware.js:23
(anonymous) @ middleware.js:27
(anonymous) @ middleware.js:23
(anonymous) @ middleware.web.js:11
(anonymous) @ middleware.any.js:78
(anonymous) @ middleware.js:16
(anonymous) @ middleware.js:91
(anonymous) @ middleware.js:75
(anonymous) @ middleware.js:24
(anonymous) @ middleware.js:20
(anonymous) @ middleware.js:15
(anonymous) @ middleware.js:188
(anonymous) @ middleware.js:23
(anonymous) @ middleware.js:21
(anonymous) @ middleware.js:25
(anonymous) @ middleware.js:76
(anonymous) @ middleware.js:236
(anonymous) @ middleware.web.js:26
(anonymous) @ middleware.js:201
(anonymous) @ middleware.js:38
(anonymous) @ middleware.web.js:124
(anonymous) @ middleware.js:180
_start @ Conference.js:372
componentDidMount @ Conference.js:168
ms @ react-dom.production.min.js:219
Pl @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
Wr @ react-dom.production.min.js:122
Tl @ react-dom.production.min.js:252
gl @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Wr @ react-dom.production.min.js:122
Kr @ react-dom.production.min.js:123
Gr @ react-dom.production.min.js:122
dl @ react-dom.production.min.js:237
enqueueSetState @ react-dom.production.min.js:133
g.setState @ react.production.min.js:12
(anonymous) @ BaseApp.js:273
_navigate @ BaseApp.js:272
(anonymous) @ middleware.js:154
Promise.then (async)
(anonymous) @ middleware.js:154
(anonymous) @ middleware.js:174
(anonymous) @ middleware.js:27
(anonymous) @ middleware.js:33
(anonymous) @ middleware.js:19
(anonymous) @ middleware.web.js:29
(anonymous) @ middleware.any.js:46
(anonymous) @ middleware.js:67
(anonymous) @ middleware.js:45
(anonymous) @ middleware.js:61
(anonymous) @ middleware.js:20
(anonymous) @ middleware.js:121
(anonymous) @ middleware.js:71
(anonymous) @ middleware.js:79
(anonymous) @ middleware.js:147
(anonymous) @ middleware.js:35
(anonymous) @ middleware.js:221
(anonymous) @ middleware.js:11
(anonymous) @ middleware.js:80
(anonymous) @ middleware.js:31
(anonymous) @ middleware.web.js:46
(anonymous) @ middleware.web.js:24
(anonymous) @ middleware.any.js:94
(anonymous) @ middleware.js:46
(anonymous) @ middleware.js:77
(anonymous) @ middleware.web.js:38
(anonymous) @ middleware.js:32
(anonymous) @ middleware.js:25
(anonymous) @ middleware.js:16
(anonymous) @ middleware.js:21
(anonymous) @ middleware.js:23
(anonymous) @ middleware.js:20
(anonymous) @ middleware.js:16
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:33
(anonymous) @ middleware.js:256
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:24
(anonymous) @ middleware.js:28
(anonymous) @ middleware.web.js:20
(anonymous) @ middleware.js:42
(anonymous) @ middleware.js:227
(anonymous) @ middleware.js:21
(anonymous) @ middleware.js:290
(anonymous) @ middleware.js:72
(anonymous) @ middleware.js:44
(anonymous) @ middleware.js:49
(anonymous) @ middleware.js:90
(anonymous) @ middleware.js:12
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:35
(anonymous) @ middleware.web.js:52
(anonymous) @ middleware.any.js:510
(anonymous) @ middleware.any.js:103
(anonymous) @ middleware.js:203
(anonymous) @ middleware.js:96
(anonymous) @ middleware.js:29
(anonymous) @ middleware.js:23
(anonymous) @ middleware.js:27
(anonymous) @ middleware.js:23
(anonymous) @ middleware.web.js:11
(anonymous) @ middleware.any.js:78
(anonymous) @ middleware.js:16
(anonymous) @ middleware.js:91
(anonymous) @ middleware.js:75
(anonymous) @ middleware.js:24
(anonymous) @ middleware.js:20
(anonymous) @ middleware.js:15
(anonymous) @ middleware.js:188
(anonymous) @ middleware.js:23
(anonymous) @ middleware.js:21
(anonymous) @ middleware.js:25
(anonymous) @ middleware.js:76
(anonymous) @ middleware.js:236
(anonymous) @ middleware.web.js:26
(anonymous) @ middleware.js:201
(anonymous) @ middleware.js:38
(anonymous) @ middleware.web.js:124
(anonymous) @ middleware.js:180
dispatch @ redux.js:636
(anonymous) @ actions.web.js:134
await in (anonymous) (async)
(anonymous) @ index.js:11
(anonymous) @ middleware.js:30
(anonymous) @ middleware.js:33
(anonymous) @ middleware.js:19
(anonymous) @ middleware.web.js:29
(anonymous) @ middleware.any.js:46
(anonymous) @ middleware.js:67
(anonymous) @ middleware.js:45
(anonymous) @ middleware.js:61
(anonymous) @ middleware.js:20
(anonymous) @ middleware.js:121
(anonymous) @ middleware.js:71
(anonymous) @ middleware.js:79
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:221
(anonymous) @ middleware.js:11
(anonymous) @ middleware.js:80
(anonymous) @ middleware.js:31
(anonymous) @ middleware.web.js:46
(anonymous) @ middleware.web.js:24
(anonymous) @ middleware.any.js:94
(anonymous) @ middleware.js:46
(anonymous) @ middleware.js:77
(anonymous) @ middleware.web.js:38
(anonymous) @ middleware.js:32
(anonymous) @ middleware.js:25
(anonymous) @ middleware.js:16
(anonymous) @ middleware.js:21
(anonymous) @ middleware.js:23
(anonymous) @ middleware.js:20
(anonymous) @ middleware.js:16
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:33
(anonymous) @ middleware.js:256
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:24
(anonymous) @ middleware.js:28
(anonymous) @ middleware.web.js:20
(anonymous) @ middleware.js:42
(anonymous) @ middleware.js:227
(anonymous) @ middleware.js:21
(anonymous) @ middleware.js:147
(anonymous) @ middleware.js:44
(anonymous) @ middleware.js:49
(anonymous) @ middleware.js:90
(anonymous) @ middleware.js:12
(anonymous) @ middleware.js:39
(anonymous) @ middleware.js:35
(anonymous) @ middleware.web.js:52
(anonymous) @ middleware.any.js:110
(anonymous) @ middleware.js:203
(anonymous) @ middleware.js:106
(anonymous) @ middleware.js:29
(anonymous) @ middleware.js:23
(anonymous) @ middleware.js:27
(anonymous) @ middleware.js:23
(anonymous) @ middleware.web.js:11
(anonymous) @ middleware.any.js:78
(anonymous) @ middleware.js:16
(anonymous) @ middleware.js:91
(anonymous) @ middleware.js:75
(anonymous) @ middleware.js:24
(anonymous) @ middleware.js:20
(anonymous) @ middleware.js:15
(anonymous) @ middleware.js:188
(anonymous) @ middleware.js:23
(anonymous) @ middleware.js:21
(anonymous) @ middleware.js:25
(anonymous) @ middleware.js:76
(anonymous) @ middleware.js:236
(anonymous) @ middleware.web.js:26
(anonymous) @ middleware.js:201
(anonymous) @ middleware.js:38
(anonymous) @ middleware.web.js:124
(anonymous) @ middleware.js:180
_openURL @ AbstractApp.js:114
componentDidMount @ AbstractApp.js:49
await in componentDidMount (async)
ms @ react-dom.production.min.js:219
Pl @ react-dom.production.min.js:259
t.unstable_runWithPriority @ scheduler.production.min.js:18
Wr @ react-dom.production.min.js:122
Tl @ react-dom.production.min.js:252
gl @ react-dom.production.min.js:243
dl @ react-dom.production.min.js:237
Jl @ react-dom.production.min.js:285
(anonymous) @ react-dom.production.min.js:289
yl @ react-dom.production.min.js:244
ac @ react-dom.production.min.js:289
t.render @ react-dom.production.min.js:296
ufe.renderEntryPoint @ index.web.js:54
(anonymous) @ TEST:26
Show 241 more frames
Logger.js:154 2022-03-22T22:21:33.963Z [JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>: UnhandledError: Strophe: request id 1.1 error 502 happened Script: null Line: null Column: null StackTrace: Error: Strophe: request id 1.1 error 502 happened
at Object.ct.Strophe.log
022-03-22T22:22:43.729Z [modules/xmpp/strophe.util.js] <Object.ct.Strophe.log>: Strophe: request id 2.2 error 502 happened

I have made rules to open ports for ports 22,443,80,8000,8443 and also for udp
I’m using Azure vm with 2 vcpus, 8 GiB memory)

Please help!

sudo systemctl restart prosody jicofo jitsi-videobridge2
Failed to restart prosody.service: Unit prosody.service is masked.

nano /etc/jitsi/videobridge/sip-communicator.properties
JVB_HOST=localhost
JVB_HOST=127.0.0.1

Your system seems in a sorry state. Maybe you tried to install Prosody 0.12 ? or even use an unsupported distro ? You could do worse than reading again the handbook, reset your VPS to a supported distro, and use the quick install - last instructions are to stay clear of Prosody 0.12.

I started all over again and I followed the instruction in the quick start and I had an error

Selecting previously unselected package jitsi-meet-turnserver.
(Reading database … 95827 files and directories currently installed.)
Preparing to unpack …/jitsi-meet-turnserver_1.0.5913-1_all.deb …
Unpacking jitsi-meet-turnserver (1.0.5913-1) …
Setting up jitsi-meet-web (1.0.5913-1) …
Setting up jitsi-meet-prosody (1.0.5913-1) …
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
/usr/bin/env: ‘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 127
Setting up jicofo (1.0-862-1) …
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Updating /etc/jitsi/jicofo/config to use jicofo.conf
Generating an empty jicofo.conf file
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
dpkg: dependency problems prevent configuration of jitsi-meet:
jitsi-meet depends on jitsi-meet-prosody (= 1.0.5913-1); however:
Package jitsi-meet-prosody 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.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of jitsi-meet-turnserver:
jitsi-meet-turnserver depends on jitsi-meet-prosody; however:
Package jitsi-meet-prosody is not configured yet.

dpkg: error processing package jitsi-meet-turnserver (–configure):
dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-21) …
Processing triggers for systemd (237-3ubuntu10.53) …
Errors were encountered while processing:
jitsi-meet-prosody
jitsi-meet
jitsi-meet-turnserver
E: Sub-process /usr/bin/dpkg returned an error code (1)

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

and again
sudo apt install jitsi-meet

Errors were encountered while processing:
jitsi-meet-prosody
jitsi-meet
jitsi-meet-turnserver
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please help! I’m working for my dissertation topic and I need Jitsi and then Jibri to work!

My advice was: reset your VPS. You have tried to reinstall Jitsi-meet. I said: your system is in a bad state. You did not take heed. If you absolutely don’t want to reinstall your system, you have to repair it because you messed it up. Try to lookup the Internet for that, for example search for ‘sudo apt -f install’ and the like. Your dpkg database is damaged.

Thank you very much for the quick response.

When you mentioned to reset VPS, I thought it was to delete everything. I already deleted my vm in Azure and recreated it. However, I’m not sure if this is what you were referring to?
Please advise.

What OS (and version) are you running on the VM?

Operating system

Linux (ubuntu 18.04)

Size

Standard D2s v3 (2 vcpus, 8 GiB memory)

If you’re starting from scratch, try using Ubuntu 20.04 LTS.
Check to make sure it’s not running Prosody 0.12. If it’s not, make sure you do NOT upgrade to Prosody 0.12.
Then go through the quick install instructions to install.

I don’t get it, you deleted your VM and you need to do a apt purge ? why ???

I will start over again with Ubuntu 20.04 LTS

I deleted my vm then started with the installation first and I got the above mentioned error then I did ’ Uninstall’ for a hope I made it right.

Do you have a DNS domain ? if not, don’t bother with Let’sEncrypt. If yes, do the quick install, enter your domain when configuring, and it should just work. Don’t install a PPA for Prosody unless you absolutely need it (that is, you need JWT or Xmpp-websockets).

Yes I have a DNS domain. I’m deleting the previous vm and I will start with Ubuntu 20.04 LTS as recommended.

Thank you guys for your help. It is working well with Ubuntu 20.04 LTS.

I will proceed to install Jibri. I’m planning to create another vm for Jibri maybe Linux (ubuntu 18.04) with 2 vcpus, 8 GiB memory. I do not want Jitsi and Jibri to be in the same server in case of any crashes. Therefore, can I proceed with that ?What is you recommendation please?

Yes it’s a good Idea to use a separate VM. I’d say that Ubuntu 20.04 could do just as well.
2 vcpus would be a bit light for a real world use but for testing it may be enough. Anyway usually you can upgrade a VM to more vCpus if needed.

1 Like

I started to install Jibri with this tutorial:

I reached where I have to download Miscellaneous Packages apt-get install ffmpeg curl alsa-utils icewm xdotool xserver-xorg-input-void xserver-xorg-video-dummy but I got error:

root@jitsi-VirtualBox:/home/jitsi/Desktop# apt-get install ffmpeg curl alsa-utils icewm xdotool xserver-xorg-input-void xserver-xorg-video-dummy

Reading package lists… Done

Building dependency tree… Done

Reading state information… Done

Package ffmpeg is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

Package icewm is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

Package xdotool is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

Package xserver-xorg-input-void is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

Package xserver-xorg-video-dummy is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package ‘ffmpeg’ has no installation candidate

E: Package ‘icewm’ has no installation candidate

E: Package ‘xdotool’ has no installation candidate

E: Package ‘xserver-xorg-input-void’ has no installation candidate

E: Package ‘xserver-xorg-video-dummy’ has no installation candidate

I’m using now for testing Ubuntu 21.04 VirtualBox.

Please help!

  1. this is a forum, not a support service. Each thread has a subject. Please, if you have a new problem that differs from the thread’s title, create a new post.
  2. I advised you to use Ubuntu 20.04. Ubuntu 21.10 is not a LTS version and as such is not supported.

I’m really sorry. I was so thrilled I finally find people to help. I understand and thank you for your help so far. If needed I will create new post.