Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

155 views
Skip to first unread message

Sahil Dhiman

unread,
Oct 8, 2022, 9:40:03 AM10/8/22
to
Package: python3-matrix-common
Version: 1.3.0-2~bpo11+1
Severity: important
X-Debbugs-Cc: sa...@sahilister.in

Dear Maintainer,

* What led up to the situation?
Was updating matrix-synapse from 1.63.0-1~bpo11+1 to v1.66.0-1~bpo11+1 when python3-matrix-common was also updated to 1.3.0-2~bpo11+1.
* What exactly did you do (or not do) that was effective (or
ineffective)?
From `journalctl -u matrix-synapse`, it shows ModuleNotFoundError: No module named 'matrix_common'. Full log can be found here https://paste.debian.net/1256360/
* What was the outcome of this action?
matrix-synapse package is stuck in activating state.
* What outcome did you expect instead?
matrix-synapse package is not starting.

-- System Information:
Debian Release: 11.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-9-amd64 (SMP w/12 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-matrix-common depends on:
ii python3 3.9.2-3
ii python3-attr 20.3.0-1
ii python3-importlib-metadata 1.6.0-2

python3-matrix-common recommends no packages.

python3-matrix-common suggests no packages.

-- no debconf information

Sahil Dhiman

unread,
Oct 8, 2022, 9:50:04 AM10/8/22
to
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.

Nilesh Patra

unread,
Oct 8, 2022, 10:20:03 AM10/8/22
to
severity -1 serious
stop

Hi Andrej,

Looks like your backports upload is somehow broken, and I am out of time
to dig into it -- could you please fix this?

In particular, all required python files are missing in backported package[1]
while it is OK on bookworm[2]

[1]: https://packages.debian.org/bullseye-backports/all/python3-matrix-common/filelist
[2]: https://packages.debian.org/bookworm/all/python3-matrix-common/filelist
--
Best,
Nilesh
signature.asc

Sahil Dhiman

unread,
Oct 8, 2022, 10:20:03 AM10/8/22
to
For now downgrading to `python3-matrix-common` 1.2.1-1~bpo11+1 worked in
booting `matrix-synapse`

Andrej Shadura

unread,
Oct 8, 2022, 12:40:04 PM10/8/22
to
Hi,

On Sat, 8 Oct 2022, at 15:14, Nilesh Patra wrote:
> Hi Andrej,
>
> Looks like your backports upload is somehow broken, and I am out of time
> to dig into it -- could you please fix this?
>
> In particular, all required python files are missing in backported package[1]
> while it is OK on bookworm[2]

Thanks for reporting.

I think this is an issue with setuptools 59, I saw a similar one in unstable previously. I have no idea how to fix it properly, so I’m going to install the missing files manually.

--
Cheers,
Andrej
0 new messages