[synapse] Service matrix-synapse will not start

Hi there.

My YunoHost server

Hardware: Self-Hosted Proxmox VM server.
YunoHost version: 4.0.4 - Just migrated 2 days ago.
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: Just migrated up to version 4 - 2 days ago.

Description of my issue

“Synapse Matrix homeserver” will not start and fails to auto-start as well.
I have just migrated up to v4 and Buster.

I have a look at thread below on permissions, but this does not seem to be the case.

Any suggestions please.
Thanks.

Log

– Logs begin at Sat 2020-08-15 11:21:39 NZST, end at Sat 2020-08-15 14:44:46 NZST. –
Aug 15 14:44:26 systemd[1]: matrix-synapse.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– Support: Debian -- User Support

– The unit matrix-synapse.service has entered the ‘failed’ state with result ‘exit-code’.
Aug 15 14:44:26 systemd[1]: Failed to start Synapse Matrix homeserver.
– Subject: A start job for unit matrix-synapse.service has failed
– Defined-By: systemd
– Support: Debian -- User Support

– A start job for unit matrix-synapse.service has finished with a failure.

– The job identifier is 2348640 and the job result is failed.
Aug 15 14:44:29 systemd[1]: matrix-synapse.service: Service RestartSec=3s expired, scheduling restart.
Aug 15 14:44:29 systemd[1]: matrix-synapse.service: Scheduled restart job, restart counter is at 30789.
– Subject: Automatic restarting of a unit has been scheduled
– Defined-By: systemd
– Support: Debian -- User Support

– Automatic restarting of the unit matrix-synapse.service has been scheduled, as the result for
– the configured Restart= setting for the unit.
Aug 15 14:44:29 systemd[1]: Stopped Synapse Matrix homeserver.
– Subject: A stop job for unit matrix-synapse.service has finished
– Defined-By: systemd
– Support: Debian -- User Support

– A stop job for unit matrix-synapse.service has finished.

– The job identifier is 2348716 and the job result is done.
Aug 15 14:44:29 systemd[1]: Starting Synapse Matrix homeserver…
– Subject: A start job for unit matrix-synapse.service has begun execution
– Defined-By: systemd
– Support: Debian -- User Support

– A start job for unit matrix-synapse.service has begun execution.

– The job identifier is 2348716.
Aug 15 14:44:29 python[25545]: /opt/yunohost/matrix-synapse/bin/python: Error while finding module specification for ‘synapse.app.homeserver’ (ModuleNotFoundError: No module named ‘synapse’)
Aug 15 14:44:29 systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE
– Subject: Unit process exited
– Defined-By: systemd
– Support: Debian -- User Support

– An ExecStartPre= process belonging to unit matrix-synapse.service has exited.

– The process’ exit code is ‘exited’ and its exit status is 1.
Aug 15 14:44:29 systemd[1]: matrix-synapse.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– Support: Debian -- User Support

– The unit matrix-synapse.service has entered the ‘failed’ state with result ‘exit-code’.
Aug 15 14:44:29 systemd[1]: Failed to start Synapse Matrix homeserver.
– Subject: A start job for unit matrix-synapse.service has failed
– Defined-By: systemd
– Support: Debian -- User Support

– A start job for unit matrix-synapse.service has finished with a failure.

– The job identifier is 2348716 and the job result is failed.
Aug 15 14:44:33 systemd[1]: matrix-synapse.service: Service RestartSec=3s expired, scheduling restart.
Aug 15 14:44:33 systemd[1]: matrix-synapse.service: Scheduled restart job, restart counter is at 30790.
– Subject: Automatic restarting of a unit has been scheduled
– Defined-By: systemd
– Support: Debian -- User Support

– Automatic restarting of the unit matrix-synapse.service has been scheduled, as the result for
– the configured Restart= setting for the unit.
Aug 15 14:44:33 systemd[1]: Stopped Synapse Matrix homeserver.
– Subject: A stop job for unit matrix-synapse.service has finished
– Defined-By: systemd
– Support: Debian -- User Support

– A stop job for unit matrix-synapse.service has finished.

Hello,

I also know a person in this situation.

Is a solution possible?

Thank you.

Best Regards

I think that’s because the python’s virtualenv for synapse needs to be recreated (assuming it’s python…)

Maybe an upgrade of the app can solve the issue

I have the same problem and I have opened an issue here: https://github.com/YunoHost-Apps/synapse_ynh/issues/209

Hello,

I have the same problem. When i run the command :

systemctl status matrix-synapse.service

it returns :

● matrix-synapse.service - Synapse Matrix homeserver
   Loaded: loaded (/etc/systemd/system/matrix-synapse.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Sat 2020-08-15 19:55:18 CEST; 1s ago
  Process: 15238 ExecStartPre=/opt/yunohost/matrix-synapse/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse/homeserver.yaml --config-path=/etc/matrix-synapse/conf.d/ --generate-keys (code=exited, status=1/FAILURE)

Thanks

Hello, please follow this comment: https://github.com/YunoHost-Apps/synapse_ynh/issues/208#issuecomment-674434834

4 Likes

Thank you Josue.

This was very helpful.
I ran a backup and then ran the upgrade command.

yunohost app upgrade synapse -u https://github.com/YunoHost-Apps/synapse_ynh/tree/master

My Synapse-Matrix is now up and running.
Thank you for your support.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.