Matrix-synapse.service: Control process exited

After a freedombox update last night the matrix-synapse wont start.

This is the ´journalctl -xe´ output:

Okt 09 08:24:40 freedombox python3[25914]: Traceback (most recent call last):
Okt 09 08:24:40 freedombox python3[25914]:   File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
Okt 09 08:24:40 freedombox python3[25914]:     mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
Okt 09 08:24:40 freedombox python3[25914]:   File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
Okt 09 08:24:40 freedombox python3[25914]:     __import__(pkg_name)
Okt 09 08:24:40 freedombox python3[25914]:   File "/usr/lib/python3/dist-packages/synapse/__init__.py", line 71, in <module>
Okt 09 08:24:40 freedombox python3[25914]:     import synapse.util
Okt 09 08:24:40 freedombox python3[25914]:   File "/usr/lib/python3/dist-packages/synapse/util/__init__.py", line 22, in <mod>
Okt 09 08:24:40 freedombox python3[25914]:     from matrix_common.versionstring import get_distribution_version_string
Okt 09 08:24:40 freedombox python3[25914]: ModuleNotFoundError: No module named 'matrix_common'
Okt 09 08:24:40 freedombox systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE

I also found this discussion which seems to talk about the error. They downgraded the python3-matrix-common package to version 1.2.1-1~bpo11+1 and it worked afterwards. I checked my installation and it is running verion 1.3.0.

Unfortunately I don’t know how to do the downgrade. Can anybody help please?

Okay after some tinkering I found a solution (probably not very elegant but serves the purpose now). So it seems as if the python3-matrix-common backport package is missing vital files therefore I found an uncorrupted version with all files included downloaded it locally

wget http://ftp.debian.org/debian/pool/main/p/python-matrix-common/python3-matrix-common_1.3.0-2_all.deb

and installed it with

dpkg -i python3-matrix-common_1.3.0-2_all.deb

Now it purrs again like my cat :slight_smile:

1 Like

Wondered why my matrix stopped responding last night.
Why is it always the matrix-breaking updates when I’m away from home…

1 Like

@timmy I guess a classic case of Murphy’s Law :smiley: were you able to resolve it?

Yep. Your brief instructions, combined with the links to the other discussion, were sufficient for a quick fix.

Nice, I’m glad to hear that!

Edit: The only downside I noticed just now… Matrix Synapse dissapeared from the list of active apps :thinking:

Hmm. Mine still shows. Tried a reboot of the freedombox machine/VM?

That did the trick :+1: thx!