YunoHost-Apps / jitsi_ynh

Video conference for YunoHost
https://jitsi.org/
Apache License 2.0
21 stars 18 forks source link

You have been disconnected. Solution #118

Closed tio-trom closed 1 year ago

tio-trom commented 1 year ago

2023-07-28_16-25

Using Yunohost 11.2.2 (stable)

I see that I have 2 Jitsi Meet processes:

One outputs this: java -Xmx2000m -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Djdk.tls.ephemeralDHKeySize=2048 -Dconfig.file=/etc/jitsi/videobridge/jvb.conf -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/etc/jitsi -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=videobridge -Dnet.java.sip.communicator.SC_LOG_DIR_LOCATION=/var/log/jitsi -Djava.util.logging.config.file=/etc/jitsi/videobridge/logging.properties -cp /var/www/jitsi/jitsi-videobridge/jitsi-videobridge.jar:/var/www/jitsi/jitsi-videobridge/lib/* org.jitsi.videobridge.MainKt --host=127.0.0.1 --domain=call.tromsite.com --port=5347 --secret=NOTs6wyb

And another:

java -Xmx2000m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -Djdk.tls.ephemeralDHKeySize=2048 -Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/etc/jitsi -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=jicofo -Dnet.java.sip.communicator.SC_LOG_DIR_LOCATION=/var/log/jitsi -Djava.util.logging.config.file=/etc/jitsi/jicofo/logging.properties -Dconfig.file=/etc/jitsi/jicofo/jicofo.conf -cp /var/www/jitsi/jitsi-jicofo/jicofo.jar:/var/www/jitsi/jitsi-jicofo/lib/agafua-syslog-0.4.jar:/var/www/jitsi/jitsi-jicofo/lib/annotations-23.0.0.jar:/var/www/jitsi/jitsi-jicofo/lib/aopalliance-repackaged-3.0.1.jar:/var/www/jitsi/jitsi-jicofo/lib/cglib-nodep-2.2.jar:/var/www/jitsi/jitsi-jicofo/lib/commons-codec-1.11.jar:/var/www/jitsi/jitsi-jicofo/lib/commons-lang3-3.12.0.jar:/var/www/jitsi/jitsi-jicofo/lib/commons-logging-1.2.jar:/var/www/jitsi/jitsi-jicofo/lib/config-1.4.2.jar:/var/www/jitsi/jitsi-jicofo/lib/gson-2.8.5.jar:/var/www/jitsi/jitsi-jicofo/lib/hk2-api-3.0.1.jar:/var/www/jitsi/jitsi-jicofo/lib/hk2-locator-3.0.1.jar:/var/www/jitsi/jitsi-jicofo/lib/hk2-utils-3.0.1.jar:/var/www/jitsi/jitsi-jicofo/lib/httpclient-4.5.13.jar:/var/www/jitsi/jitsi-jicofo/lib/httpcore-4.4.14.jar:/var/www/jitsi/jitsi-jicofo/lib/jackson-annotations-2.13.0.jar:/var/www/jitsi/jitsi-jicofo/lib/jackson-core-2.13.0.jar:/var/www/jitsi/jitsi-jicofo/lib/jackson-databind-2.13.0.jar:/var/www/jitsi/jitsi-jicofo/lib/jackson-module-jakarta-xmlbind-annotations-2.13.0.jar:/var/www/jitsi/jitsi-jicofo/lib/jackson-module-kotlin-2.14.1.jar:/var/www/jitsi/jitsi-jicofo/lib/jakarta.activation-2.0.1.jar:/var/www/jitsi/jitsi-jicofo/lib/jakarta.annotation-api-2.0.0.jar:/var/ww

I have not done any custom settings to it except increase the RAM memory for the app via the dashboard. It didn't work before that either.

It used to work perfectly fine. If I am to remove it and reinstall it will work for some time.

Baffled.

Here are some logs jitsi-jicofo https://paste.yunohost.org/eduzecenut and jitsi-videobridge https://paste.yunohost.org/aguzofewuf

tio-trom commented 1 year ago

I can confirm after I removed then reinstalled Jitsi started to work. Same errors as above but works. I suspect that the Metronome service was running in the background that's why it was not working. But I need to confirm.

tio-trom commented 1 year ago

Yes I can confirm. If you restart the server then Metronome and Prosody will both start making it impossible to use Jitsi. You need to stop the Metronome service and restart Prosody. Then all works fine.

If you can, please push a fix for it. Unfortunately I do not know how.

yalh76 commented 1 year ago

During install or upgrade of prosody, Metronome is disabled:

https://github.com/YunoHost-Apps/prosody_ynh/blob/50802a05483bb2d42b76d90f89dd598fd1c5db42/scripts/install#L28-L34

So you shouldn't have metronome working.

you can disabled it using:

systemctl stop metronome.service --quiet
systemctl disable metronome.service --quiet
tio-trom commented 1 year ago

Ok thanks. But so you know it was not disabled for me when I installed Jitsi Meet which probably pulled prosody for installation.