Bug 38962 - Сервис matrix-synapse не запускается
Summary: Сервис matrix-synapse не запускается
Status: REOPENED
Alias: None
Product: Sisyphus
Classification: Development
Component: matrix-synapse (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Vitaly Lipatov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-18 16:33 MSK by Alexander Makeenkov
Modified: 2024-06-17 16:09 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2020-09-18 16:33:59 MSK
Версия пакета: matrix-synapse-1.19.0-alt1

# systemctl start matrix-synapse
# systemctl status matrix-synapse
● matrix-synapse.service - Synapse Matrix homeserver
     Loaded: loaded (/lib/systemd/system/matrix-synapse.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Fri 2020-09-18 13:29:16 UTC; 406ms ago
    Process: 5698 ExecStart=/usr/bin/python3 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml (code=exited, status=1/FAILURE)
   Main PID: 5698 (code=exited, status=1/FAILURE)
        CPU: 756ms

сен 18 13:29:15 server-91-x86-64-min-20200818.localdomain systemd[1]: Started Synapse Matrix homeserver.
сен 18 13:29:16 server-91-x86-64-min-20200818.localdomain python3[5698]: ERROR:root:Needed canonicaljson>=1.2.0, got canonicaljson==1.1.4
сен 18 13:29:16 server-91-x86-64-min-20200818.localdomain python3[5698]: ERROR:root:Needed optional txredisapi>=1.4.7, got txredisapi==1.2
сен 18 13:29:16 server-91-x86-64-min-20200818.localdomain python3[5698]: Missing Requirements: 'canonicaljson>=1.2.0', 'txredisapi>=1.4.7'
сен 18 13:29:16 server-91-x86-64-min-20200818.localdomain python3[5698]: To install run:
сен 18 13:29:16 server-91-x86-64-min-20200818.localdomain python3[5698]:     pip install --upgrade --force 'canonicaljson>=1.2.0' 'txredisapi>=1.4.7'
сен 18 13:29:16 server-91-x86-64-min-20200818.localdomain systemd[1]: matrix-synapse.service: Main process exited, code=exited, status=1/FAILURE
сен 18 13:29:16 server-91-x86-64-min-20200818.localdomain systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.

# rpm -qa | grep canonicaljson
python3-module-canonicaljson-1.1.4-alt1.noarch

# rpm -qa | grep txredisapi
python3-module-txredisapi-1.2-alt2.noarch
Comment 1 Vitaly Lipatov 2020-09-18 19:22:39 MSK
Понял, обновлю зависимости.
Comment 2 Repository Robot 2020-09-18 22:42:52 MSK
matrix-synapse-1.19.3-alt1 -> sisyphus:

 Fri Sep 18 2020 Vitaly Lipatov <lav@altlinux.ru> 1.19.3-alt1
 - new version 1.19.3 (with rpmrb script)
 - update requirements (ALT bug 38962)
Comment 3 Tatyana Gagina 2024-06-17 16:09:39 MSK
Версия: matrix-synapse-1.104.0-alt1
Стенд, обновлённый до Sisyphus:
ALT Server x86-64

Шаги те же https://bugzilla.altlinux.org/show_bug.cgi?id=38962#c0, поведение несколько изменилось.

Вывод:
# systemctl status matrix-synapse
× matrix-synapse.service - Synapse Matrix homeserver
     Loaded: loaded (/usr/lib/systemd/system/matrix-synapse.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Mon 2024-06-17 15:57:48 MSK; 1s ago
   Duration: 3.963s
    Process: 26264 ExecStart=/usr/bin/python3 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml (code=exited, status=1/FAILURE)
   Main PID: 26264 (code=exited, status=1/FAILURE)
        CPU: 2.467s

июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain python3[26264]:     with open(
июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain python3[26264]:          ^^^^^
июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain python3[26264]:   File "/usr/lib64/python3/site-packages/synapse/config/key.py", line 274, in <lambda>
июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain python3[26264]:     signing_key_path, "w", opener=lambda p, f: os.open(p, f, mode=0o640)
июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain python3[26264]:                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain python3[26264]: PermissionError: [Errno 13] Permission denied: '/etc/synapse/my.matrix.alt.signing.key'
июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain python3[26264]: Generating signing key file /etc/synapse/my.matrix.alt.signing.key
июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain systemd[1]: matrix-synapse.service: Main process exited, code=exited, status=1/FAILURE
июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.
июн 17 15:57:48 server-10-2-x86-64-office-20240613.localdomain systemd[1]: matrix-synapse.service: Consumed 2.467s CPU time.