[Pkg-matrix-maintainers] Bug#1021435: python3-matrix-common: matrix-synapse not starting due to ModuleNotFoundError: No module named 'matrix_common'

Sahil Dhiman sahil at sahilister.in
Sat Oct 8 14:44:19 BST 2022


Adding log `journalctl -u matrix-synapse` here for future reference -


Oct 08 12:51:59 diasp.in systemd[1]: Stopping Synapse Matrix homeserver...
Oct 08 12:52:02 diasp.in systemd[1]: matrix-synapse.service: Succeeded.
Oct 08 12:52:02 diasp.in systemd[1]: Stopped Synapse Matrix homeserver.
Oct 08 12:52:02 diasp.in systemd[1]: matrix-synapse.service: Consumed 3d 
14h 19min 56.529s CPU time.
Oct 08 12:52:02 diasp.in systemd[1]: Starting Synapse Matrix homeserver...
Oct 08 12:52:03 diasp.in python3[2878273]: Traceback (most recent call 
last):
Oct 08 12:52:03 diasp.in python3[2878273]:   File 
"/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
Oct 08 12:52:03 diasp.in python3[2878273]:     mod_name, mod_spec, code 
= _get_module_details(mod_name, _Error)
Oct 08 12:52:03 diasp.in python3[2878273]:   File 
"/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
Oct 08 12:52:03 diasp.in python3[2878273]:     __import__(pkg_name)
Oct 08 12:52:03 diasp.in python3[2878273]:   File 
"/usr/lib/python3/dist-packages/synapse/__init__.py", line 71, in <module>
Oct 08 12:52:03 diasp.in python3[2878273]:     import synapse.util
Oct 08 12:52:03 diasp.in python3[2878273]:   File 
"/usr/lib/python3/dist-packages/synapse/util/__init__.py", line 22, in 
<module>
Oct 08 12:52:03 diasp.in python3[2878273]:     from 
matrix_common.versionstring import get_distribution_version_string
Oct 08 12:52:03 diasp.in python3[2878273]: ModuleNotFoundError: No 
module named 'matrix_common'
Oct 08 12:52:03 diasp.in systemd[1]: matrix-synapse.service: Control 
process exited, code=exited, status=1/FAILURE
Oct 08 12:52:03 diasp.in systemd[1]: matrix-synapse.service: Failed with 
result 'exit-code'.
Oct 08 12:52:03 diasp.in systemd[1]: Failed to start Synapse Matrix 
homeserver.
Oct 08 12:52:06 diasp.in systemd[1]: matrix-synapse.service: Scheduled 
restart job, restart counter is at 1.
Oct 08 12:52:06 diasp.in systemd[1]: Stopped Synapse Matrix homeserver.
Oct 08 12:52:06 diasp.in systemd[1]: Starting Synapse Matrix homeserver...
Oct 08 12:52:06 diasp.in python3[2878566]: Traceback (most recent call 
last):
Oct 08 12:52:06 diasp.in python3[2878566]:   File 
"/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
Oct 08 12:52:06 diasp.in python3[2878566]:     mod_name, mod_spec, code 
= _get_module_details(mod_name, _Error)
Oct 08 12:52:06 diasp.in python3[2878566]:   File 
"/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
Oct 08 12:52:06 diasp.in python3[2878566]:     __import__(pkg_name)
Oct 08 12:52:06 diasp.in python3[2878566]:   File 
"/usr/lib/python3/dist-packages/synapse/__init__.py", line 71, in <module>
Oct 08 12:52:06 diasp.in python3[2878566]:     import synapse.util
Oct 08 12:52:06 diasp.in python3[2878566]:   File 
"/usr/lib/python3/dist-packages/synapse/util/__init__.py", line 22, in 
<module>
Oct 08 12:52:06 diasp.in python3[2878566]:     from 
matrix_common.versionstring import get_distribution_version_string
Oct 08 12:52:06 diasp.in python3[2878566]: ModuleNotFoundError: No 
module named 'matrix_common'
Oct 08 12:52:06 diasp.in systemd[1]: matrix-synapse.service: Control 
process exited, code=exited, status=1/FAILURE
Oct 08 12:52:06 diasp.in systemd[1]: matrix-synapse.service: Failed with 
result 'exit-code'.
Oct 08 12:52:06 diasp.in systemd[1]: Failed to start Synapse Matrix 
homeserver.



More information about the Pkg-matrix-maintainers mailing list