[Bug 1204312] New: matrix-synapse doesn't start if url_preview is enabled
http://bugzilla.opensuse.org/show_bug.cgi?id=1204312 Bug ID: 1204312 Summary: matrix-synapse doesn't start if url_preview is enabled Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: All OS: openSUSE Tumbleweed Status: NEW Severity: Minor Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: andreas@andreasvoegele.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0 Build Identifier: matrix-synapse doesn't start if the package is built with python-poetry-core 1.3.x and if the url_preview feature is enabled. See https://github.com/matrix-org/synapse/issues/14079 for details. I worked around the problem by editing /usr/lib/python3.10/site-packages/synapse/config/repository.py. I replaced check_requirements("url_preview") with check_requirements("url-preview"). Reproducible: Always Steps to Reproduce: 1. Add "url_preview_enabled: true" and "url_preview_ip_range_blacklist" to /etc/matrix-synapse/homeserver.yaml in as described in https://matrix-org.github.io/synapse/latest/usage/configuration/config_docum... 2. Restart the Matrix server with "systemctl restart matrix-synapse.service". 3. Check the log with "journalctl -b -u matrix-synapse". Actual Results: The matrix-synapse service fails to start and writes "ValueError: Synapse 1.67.0 does not provide the feature 'url_preview'" to the log. Expected Results: The matrix-synapse service starts. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1204312
http://bugzilla.opensuse.org/show_bug.cgi?id=1204312#c1
--- Comment #1 from Andreas Voegele
http://bugzilla.opensuse.org/show_bug.cgi?id=1204312
http://bugzilla.opensuse.org/show_bug.cgi?id=1204312#c4
--- Comment #4 from OBSbugzilla Bot
http://bugzilla.opensuse.org/show_bug.cgi?id=1204312
http://bugzilla.opensuse.org/show_bug.cgi?id=1204312#c5
Benjamin Greiner changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |code@bnavigator.de
--- Comment #5 from Benjamin Greiner
---
(In reply to Andreas Voegele from comment #1)
I've searched the Synapse source code. There's another depedency with an underscore in its name in synapse/config/cache.py: check_requirements("cache_memory")
That's the normalized name of the distributions and should be correct. (In reply to Marcus R�ckert from comment #2)
Provides-Extra: url_preview
That would violated the core metadata specification: https://packaging.python.org/en/latest/specifications/core-metadata/#provide... Upstream fixed the `Provides-Extra:` in https://github.com/matrix-org/synapse/pull/14085, but imposed an upper bound which should be lifted in Tumbleweed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1204312
http://bugzilla.opensuse.org/show_bug.cgi?id=1204312#c6
--- Comment #6 from OBSbugzilla Bot
participants (1)
-
bugzilla_noreply@suse.com