YunoHost-Apps / jitsi_ynh

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

Jitsi doesn't work after upgrade #95

Closed dhuschde closed 1 year ago

dhuschde commented 1 year ago

Describe the bug

Jitsi stopped working after I upgraded to the latest version. It still doesn't work after reinstalling or using the Backup created before the update. image

Context

Logs

Videobridge

https://paste.yunohost.org/uzeluliboy

Jicofo

https://paste.yunohost.org/yicekegiwe

Prosody

https://paste.yunohost.org/ovededucip

Frereneo commented 1 year ago

Hello, I have the same problem since the update. Sincerely,

rouja commented 1 year ago

Hello,

I had the same issue with the last version. To make Jitsi works again, I installed a previous version :

1- Uninstall jitsi and prosody (if it's not uninstalled automatically) 2- Install a specific version (https://github.com/YunoHost-Apps/jitsi_ynh/commit/d1579c1f9d389ee9c255470670d9bf7b27b6d776)

 sudo yunohost app install https://github.com/YunoHost-Apps/jitsi_ynh/tree/d1579c1f9d389ee9c255470670d9bf7b27b6d776

Sincerely,

Frereneo commented 1 year ago

Hello @rouja Thank you very much !!! It's okay !! But why the version proposed by the update does not work?

Thank you again !!

rouja commented 1 year ago

I just noticed some change in /var/www/jitsi/jitsi-jicofo/jicofo.sh between the two versions. But I can't figure out how to fix the issue :(

Frereneo commented 1 year ago

It's complicated indeed, and couldn't the developer of Jitsi help?

tio-trom commented 1 year ago

Same here. Stopped working. Restoring did not help for some reason.

EDIT: Even after completely removing Jitsi and Prosody, and restoring a backup, failed to work. Had to restore a server snapshot.

Frereneo commented 1 year ago

Hello @tio-trom , The solution proposed by @rouja (https://github.com/YunoHost-Apps/jitsi_ynh/issues/95#issuecomment-1339143598), allows to go back to the version before the update. But it doesn't seem to solve the update

tio-trom commented 1 year ago

Hello @tio-trom , The solution proposed by @rouja (#95 (comment)), allows to go back to the version before the update. But it doesn't seem to solve the update

Yes I did just that but failed to work. Same issue. I had to restore a system snapshot to restore.

Frereneo commented 1 year ago

Hello @tio-trom , The solution proposed by @rouja (#95 (comment)), allows to go back to the version before the update. But it doesn't seem to solve the update

Yes I did just that but failed to work. Same issue. I had to restore a system snapshot to restore.

Oh, ok, sorry. I had misunderstood.

tio-trom commented 1 year ago

No problem at all! :)

rouja commented 1 year ago

Hi,

I think I fixed the issue with the last version. In /etc/jitsi/jicofo/config we have :

# Jitsi Conference Focus settings
# sets the host name of the XMPP server
JICOFO_HOST=$REDACTED

# sets the XMPP domain (default: none)
JICOFO_HOSTNAME=$REDACTED

# sets the XMPP domain name to use for XMPP user logins
JICOFO_AUTH_DOMAIN=$REDACTED

# sets the username to use for XMPP user logins
JICOFO_AUTH_USER=$REDACTED

# sets the password to use for XMPP user logins
JICOFO_AUTH_PASSWORD=$REDACTED

To fix the issue we need to report the value in /etc/jitsi/jicofo/jicofo.conf in the xmpp section:

  xmpp: {
    client: {
      enabled: true #Add this line
      hostname: localhost #Add this line
      client-proxy: $REDACTED #Do not change this line
      xmpp-domain: $JICOFO_HOSTNAME #Add this line and replace the variable by the value from /etc/jitsi/jicofo/jicofo.conf 
      domain: $JICOFO_AUTH_DOMAIN #Add this line and replace the variable by the value from /etc/jitsi/jicofo/jicofo.conf
      user: $JICOFO_AUTH_USER #Add this line and replace the variable by the value from /etc/jitsi/jicofo/jicofo.conf
      password: $JICOFO_AUTH_PASSWORD #Add this line and replace the variable by the value from /etc/jitsi/jicofo/jicofo.conf
    }

Then restart jicofo :

systemctl restart jitsi-jicofo

I hope that it will help to fix jitsi on yunohost.

Frereneo commented 1 year ago

Hello @rouja , Thanks for this detail :). Does the update in the YNH application management do this correction by itself, or do you have to do it yourself? thank you again !

rouja commented 1 year ago

Hello,

The update will not do the correction by itself. You have to do the change yourself. But if it's fix the problem for you too, if I find time, I will try to fix the YNH packaging and submit a PR.

Frereneo commented 1 year ago

Re, The proposed solution corrects the anomaly. Congrats :dancers: !!

vsatmydynipnet commented 1 year ago

Thank you so much. After hours of searching i found this issue, all good now.

dalgwen commented 1 year ago

Thank you for the fix !

hermann-san commented 11 months ago

recently I've updated Jitsi and it appears to have reintroduced the issue after the update. I did apply the proposed solution above, but it didn't help.

My solution was die uninstall Jitsi and uninstall Prosody as well. Then re-install Jitsi and it worked again.

There seems to be something in the Jitsi Update that can break an existing installation.

tio-trom commented 11 months ago

So this needs to be fixed because the issue is from Metronome. If the Metronome service is active then you cannot use JItsi. And you will have to stop Metronome and restart Prosody.

Problem is even trying to kill the Metronome service for good it somehow keeps on resurrecting....idk what to do about this...