Jitsi (latest version) + Cloudflare = Error 520

I have a problem with Jitsi + CloudFlare (CDN) when I activate CloudFlare protection this indicates that the server is offline, but when I deactivate it the problem is solved and it loads jitsi well.

I have the latest version of jitsi-meet

jitsi-meet:all/stable 2.0.4384-1 uptodate

I have already configured nginx for CloudFlare to see my public IP.

2 Likes

I’m experiencing the same problem. Only DNS without Proxy from Cloudflare and jitsi conference app works fine. When Proxy is enabled I’m getting Error 520 as you are.

2 Likes

I too am running into this issue. I am running on Debian 10 Buster using the apt packages.
Did a fresh install, as well.

cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux 10 (buster)”

Package: jitsi-meet
Architecture: all
Version: 1.0.1072-1

Any suggestions to try would be much appreciated!

2 Likes

Wow… thought I was the only one with this issue. I installed it 2 weeks ago and it worked just fine but the VM crashed and I installed it anew and I got this error, thought it was something on my end. Hopefully a quick fix is nearby!

1 Like

Any luck on this? I’m experiencing the same issue.

anyone???

I as well experienced this issue when trying to reinstall today. It appears to be something to due with the nginx configuration; a successful workaround for me was to switch the web server to apache2.

1 Like

Thanks buddy for the tip! After another deep dive into nginx logs and related topics in this forum, I finally found a solution that worked for me while not requiring a replacement of the web server engine. What I did was simply:

sudo apt purge jitsi-meet-turnserver and systemctl restart nginx

I’m running a VPS instance based on Ubuntu 18.04.4 LTS (Bionic Beaver)

Hope this will help others as well)

@msokol

sudo apt purge jitsi-meet-turnserver and systemctl restart nginx

These option Take the jitsi server offline.

@jhosman

Just checked once again by rebooting the server. All services restarted successfully including jitsi. The web page is accessible and is proxied by Cloudflare.

A short history of me investigating the issue.

  1. By analyzing log files I found a post describing similar issue, although not related to Cloudflare. The error description was the same as in my case.
  2. I tried to edit the corersponding file /etc/nginx/modules-enabled/60-jitsi-meet.conf as suggested in the post but ended in Nginx failure to restart.
  3. I didn’t want to dig further and continued googling which brought me to another solution of such a problem that has resolved my issue completely. In the previous message, I wrote 2 commands that have made my jitsi-server up and running.

Check your logs, maybe we have different errors.

Good luck!

The error log of nginx:

2020/05/07 22:42:09 [error] 15447#15447: *70 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.126.118, server: 0.0.0.0:443, upstream: "127.0.0.1:4445", bytes from/to client:0/0, bytes from/to upstream:0/0
2020/05/07 22:42:09 [error] 15447#15447: *72 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.126.136, server: 0.0.0.0:443, upstream: "127.0.0.1:4445", bytes from/to client:0/0, bytes from/to upstream:0/0
2020/05/07 22:42:25 [error] 15447#15447: *74 connect() failed (111: Connection refused) while connecting to upstream, client: 162.158.126.142, server: 0.0.0.0:443, upstream: "127.0.0.1:4445", bytes from/to client:0/0, bytes from/to upstream:0/0

Any idea?

restart the server, so it will reload everything.

# apt purge jitsi-meet-turnserver && systemctl restart nginx
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
  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
Utilice «sudo apt autoremove» para eliminarlos.
Los siguientes paquetes se ELIMINARÁN:
  jitsi-meet-turnserver*
0 actualizados, 0 nuevos se instalarán, 1 para eliminar y 0 no actualizados.
Se liberarán 25,6 kB después de esta operación.
¿Desea continuar? [S/n] s
(Leyendo la base de datos ... 143983 ficheros o directorios instalados actualmente.)
Desinstalando jitsi-meet-turnserver (1.0.4074-1) ...
(Leyendo la base de datos ... 143976 ficheros o directorios instalados actualmente.)
Purgando ficheros de configuración de jitsi-meet-turnserver (1.0.4074-1) ...
# reboot

Server Down

# Error 521 <small>Ray ID: 590440fe89b70461 • 2020-05-08 15:36:01 UTC</small>
## Web server is down

How to I can change nginx to apache?

Also the log say you that turnserver broke up.

In the easy install manual there’s a line for the right way to uninstall jitsi

I don’t want to uninstall Jitsi, just work for Apache or Java (as it natively does in the previous version)

Via java is completely not suggested, apache sucks

I think it’s no more possible now