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 (synapse) from 1.104.0~ynh1 to 1.105.0~ynh1 brakes the synapse #454

Closed stepcellwolf closed 2 months ago

stepcellwolf commented 2 months ago

Describe the bug

After upgrading from Synapse (synapse) from 1.104.0~ynh1 to 1.105.0~ynh1 it breaks the synapse, does not start. I need it to remove it from yunohost and restore it, after that SSO is not working anymore.

Context

Steps to reproduce

Log

Log from upgrade: https://paste.yunohost.org/raw/zicigacafu And logs from restore: https://paste.yunohost.org/raw/qigalaviyu

Josue-T commented 2 months ago

Hello,

Can ou provide the full log synapse and of the upgrade process.

stepcellwolf commented 2 months ago

@Josue-T hi sorry, yes I did update issue. I forgot to upload the logs. Please let me know if you need anything else from my end.

nathanael-h commented 2 months ago

It seems that the content of the file /etc/matrix-synapse/conf.d/app_service.yaml is not valid yaml, but should not prevent the synapse app to start because it says "ignoring", during the upgrade process.

2024-04-23 06:46:02,533: DEBUG - Apr 23 06:45:57 python[1941234]: File '\''/etc/matrix-synapse/conf.d/app_service.yaml'\'' is empty or doesn'\''t parse into a key-value map. IGNORING.

Else there is also an issue with the configuration file and a invalid room set be to automatically joinded:

2024-04-23 06:46:02,533: DEBUG - Apr 23 06:45:58 python[1941243]: Error in configuration:
2024-04-23 06:46:02,533: DEBUG - Apr 23 06:45:58 python[1941243]:   Invalid auto_join_rooms entry \#off-topic:matrix.maindomain.tld

Di you configure somewhere synapse to auto join the room #off-topic:matrix.maindomain.tld ?

stepcellwolf commented 2 months ago

For the auto-join room, I noticed that too. Removed the configuration and it should be fine now.

stepcellwolf commented 2 months ago

Here is the new logs when I log in where I'm not able to login with CAS with SSO and it is not working. I get the following error File not found.

Any idea what might be?

stepcellwolf commented 2 months ago

OK, it is working now. After I delete and remove the configuration for auto-join room and click on web interface for upgrade. It worked out without any issue and the SSO and CAS are working as it should be. Thank you so much for the great support.