YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 43 forks source link

Synapse server fails when I want to connect #385

Closed pagiraud closed 1 year ago

pagiraud commented 1 year ago

Describe the bug

Since upgrade to 1.84.1~ynh1 I can’t connect to the server from Element web or Android (I didn’t try from other Matrix clients). In the client I get the error "La connexion au serveur a été perdue." and then I can see that the service matrix-synapse is down with "start-pre" written. I can reload the service and then it seems ok but when I want to connect from the client, it fails again.

Context

Logs

Here’s an excerpt from the logs that shows a typical cycle, from service start to failure:

juin 05 20:05:18 systemd[1]: Started Synapse Matrix homeserver.
juin 05 20:05:20 python[82784]: Error in configuration at 'a.p.p._.s.e.r.v.i.c.e._.c.o.n.f.i.g._.f.i.l.e.s':
juin 05 20:05:20 python[82784]:   Expected 'None' to be a list of AS config files:
juin 05 20:05:20 systemd[1]: matrix-synapse.service: Main process exited, code=exited, status=1/FAILURE
juin 05 20:05:20 systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.
juin 05 20:05:20 systemd[1]: matrix-synapse.service: Consumed 3.305s CPU time.
juin 05 20:05:23 systemd[1]: matrix-synapse.service: Scheduled restart job, restart counter is at 3686.
juin 05 20:05:23 systemd[1]: Stopped Synapse Matrix homeserver.
juin 05 20:05:23 systemd[1]: matrix-synapse.service: Consumed 3.305s CPU time.
juin 05 20:05:23 systemd[1]: Starting Synapse Matrix homeserver...
juin 05 20:05:25 systemd[1]: Started Synapse Matrix homeserver.
juin 05 20:05:26 python[82808]: Error in configuration at 'a.p.p._.s.e.r.v.i.c.e._.c.o.n.f.i.g._.f.i.l.e.s':
juin 05 20:05:26 python[82808]:   Expected 'None' to be a list of AS config files:
juin 05 20:05:26 systemd[1]: matrix-synapse.service: Main process exited, code=exited, status=1/FAILURE
juin 05 20:05:26 systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.
juin 05 20:05:26 systemd[1]: matrix-synapse.service: Consumed 3.309s CPU time.
juin 05 20:05:30 systemd[1]: matrix-synapse.service: Scheduled restart job, restart counter is at 3687.

Do you know what is happening?

Josue-T commented 1 year ago

Hello,

Can you try to upgrade from this following branch https://github.com/YunoHost-Apps/synapse_ynh/tree/fix_app_service

pagiraud commented 1 year ago

Hello, Sorry, I was busy and since I didn’t know how to upgrade from alternative branch, I postponed it to this week-end. The upgrade is now available in the main branch: I just did it, and things are running fine again. Thanks!