FS#77392 - [matrix-synapse] 1.75.0-1 does not start

Attached to Project: Community Packages
Opened by Simon Perry (pezz) - Sunday, 05 February 2023, 00:45 GMT
Last edited by Toolybird (Toolybird) - Saturday, 11 February 2023, 21:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Johannes Löthberg (demize)
Alexander Epaneshnikov (alex19EP)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

1.75.0-1 does not start due to module error, see below/

Additional info:
* package version(s)

1.75.0-1

* config and/or log files etc.

Feb 05 11:38:40 kira systemd[1]: Starting Synapse Matrix homeserver (master)...
Feb 05 11:38:41 kira synapse[48151]: Traceback (most recent call last):
Feb 05 11:38:41 kira synapse[48151]: File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
Feb 05 11:38:41 kira synapse[48151]: mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
Feb 05 11:38:41 kira synapse[48151]: File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
Feb 05 11:38:41 kira synapse[48151]: __import__(pkg_name)
Feb 05 11:38:41 kira synapse[48151]: File "/usr/lib/python3.10/site-packages/synapse/__init__.py", line 23, in <modu$
Feb 05 11:38:41 kira synapse[48151]: from synapse.util.rust import check_rust_lib_up_to_date
Feb 05 11:38:41 kira synapse[48151]: File "/usr/lib/python3.10/site-packages/synapse/util/rust.py", line 20, in <mod$
Feb 05 11:38:41 kira synapse[48151]: from synapse.synapse_rust import get_rust_file_digest
Feb 05 11:38:41 kira synapse[48151]: ModuleNotFoundError: No module named 'synapse.synapse_rust'
Feb 05 11:38:41 kira systemd[1]: synapse.service: Main process exited, code=exited, status=1/FAILURE
Feb 05 11:38:41 kira systemd[1]: synapse.service: Failed with result 'exit-code'.
Feb 05 11:38:41 kira systemd[1]: Failed to start Synapse Matrix homeserver (master).

* link to upstream bug report, if any

Couldn't find any.

Steps to reproduce:

Upgrade to 1.75.0-1

Workaround:

Downgrade to 1.74.0-1
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 11 February 2023, 21:39 GMT
Reason for closing:  Not a bug
Comment by Alexander Epaneshnikov (alex19EP) - Saturday, 11 February 2023, 15:09 GMT
I can't reproduce on matrix-synapse 1.75.0-1

> systemctl status synapse.service
● synapse.service - Synapse Matrix homeserver (master)
Loaded: loaded (/usr/lib/systemd/system/synapse.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/synapse.service.d
└─override-hardened.conf
Active: active (running) since Sat 2023-02-11 18:07:12 MSK; 13s ago
Main PID: 592 (python3)
IP: 7.1M in, 228.2K out
IO: 44.8M read, 4.0K written
Tasks: 18 (limit: 4687)
Memory: 140.4M
CPU: 2.109s
CGroup: /system.slice/synapse.service
└─592 /usr/bin/python3 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml
фев 11 18:07:07 moon.alex19ep.me systemd[1]: Starting Synapse Matrix homeserver (master)...
фев 11 18:07:12 moon.alex19ep.me systemd[1]: Started Synapse Matrix homeserver (master).

please check if your system is fully updated.
Comment by Simon Perry (pezz) - Saturday, 11 February 2023, 20:43 GMT
I should have noted that this is on Arch Linux ARM, and their repos do lag a bit behind sometimes.

Apologies for not mentioning that.

I'm going to go through the dependencies and check the ARM versions against x64 Arch, would you know which module may be the issue here?
Comment by Simon Perry (pezz) - Saturday, 11 February 2023, 21:04 GMT
All of the matrix-synapse dependencies on Arch ARM are identical to the main Arch x64 repo yet I still receive the "No module named 'synapse.synapse_rust'" error on 1.75 and it does not start.
Comment by Simon Perry (pezz) - Saturday, 11 February 2023, 21:21 GMT
Found the issue, the ARM package is missing a file:

% diff host1-files.txt host2-files.txt
2006a2007
> matrix-synapse /usr/lib/python3.10/site-packages/synapse/synapse_rust.abi3.so

Will close this and contact the ARM maintainer.

Sorry for the noise.
Comment by Toolybird (Toolybird) - Saturday, 11 February 2023, 21:38 GMT
For future reference, ARM is not supported here at all, so filing ARM bugs here is banned.

Loading...