Bon, je reprends mes investigations.
# systemctl status synapse
● synapse.service - Synapse Matrix homeserver
Loaded: loaded (/etc/systemd/system/synapse.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2024-05-18 12:28:03 UTC; 1min 26s ago
Le service vient de redémarrer. Et effectivement, il y a eu 9 redémarrages depuis mon message d’il y a trois jours :
# grep STARTING /var/log/matrix-synapse/homeserver.log | grep "2024-05-" | wc -l
45
Rien qu’aujourd’hui, il y a 14 000 lignes dans le fichier de logs…
# cat /var/log/matrix-synapse/homeserver.log | grep "2024-05-18" | wc -l
14246
J’essaye de trier un peu pour ne pas avoir trop de logs à analyser.
# cat /var/log/matrix-synapse/homeserver.log | grep "2024-05-" | grep -v INFO | wc -l
550
# cat /var/log/matrix-synapse/homeserver.log | grep "2024-05-" | grep -v WARNING | wc -l
481213
Si je regarde dans ces logs :
# # cat /var/log/matrix-synapse/homeserver.log | grep "2024-05-18 12:28:13,647 - root" -B 10 -A 10
2024-05-18 12:27:49,402 - synapse.http.matrixfederationclient - 362 - INFO - federation_transaction_transmission_loop-70- {PUT-O-29} [t2bot.io] Completed request: 200 OK in 0.14 secs, got 11 bytes - PUT matrix-federation://t2bot.io/_matrix/federation/v1/send/1716034870500
2024-05-18 12:27:49,403 - synapse.federation.sender.transaction_manager - 180 - INFO - federation_transaction_transmission_loop-70- TX [t2bot.io] {1716034870500} got 200 response
2024-05-18 12:27:49,504 - synapse.http.matrixfederationclient - 362 - INFO - federation_transaction_transmission_loop-71- {PUT-O-30} [matrix.mygaia.org] Completed request: 200 OK in 0.13 secs, got 11 bytes - PUT matrix-federation://matrix.mygaia.org/_matrix/federation/v1/send/1716034870501
2024-05-18 12:27:49,505 - synapse.federation.sender.transaction_manager - 180 - INFO - federation_transaction_transmission_loop-71- TX [matrix.mygaia.org] {1716034870501} got 200 response
2024-05-18 12:27:50,058 - synapse.http.client - 426 - INFO - GET-85- Received response to GET https://www.youtube.com/watch?v=rwwnDAss03o&t=670s: 200
2024-05-18 12:27:50,064 - synapse.access.http.8008 - 472 - INFO - GET-80- 193.121.114.248 - 8008 - {@simon:artanux.be} Processed request: 0.557sec/0.013sec (0.100sec, 0.008sec) (0.029sec/0.104sec/14) 16149B 200 "GET /_matrix/client/v3/rooms/!QXEsKNOMscCaAUthmX%3Aartanux.be/context/%24dpasCmxFT2coiPmzNTi4pkckSslII6zE6KRnwzpUUhs?filter=%7B%22lazy_load_members%22%3Atrue%7D HTTP/1.0" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36.0 (KHTML, like Gecko) Chrome/118.0.5993.159 Safari/537.36.0" [22 dbevts]
2024-05-18 12:27:50,082 - synapse.http.client - 426 - INFO - GET-87- Received response to GET https://www.youtube.com/watch?v=liHKITEUAQ8: 200
2024-05-18 12:27:50,219 - synapse.http.client - 426 - INFO - GET-86- Received response to GET https://www.amazon.fr/dp/B09NPZBH2P: 200
2024-05-18 12:27:50,226 - synapse.access.http.8008 - 472 - INFO - GET-89- 193.121.114.248 - 8008 - {None} Processed request: 0.091sec/0.064sec (0.009sec, 0.000sec) (0.003sec/0.009sec/2) 80B 200 "GET /_matrix/client/v3/profile/%40simon%3Aartanux.be HTTP/1.0" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36.0 (KHTML, like Gecko) Chrome/118.0.5993.159 Safari/537.36.0" [0 dbevts]
2024-05-18 12:27:50,328 - synapse.access.http.8008 - 472 - INFO - GET-90- 193.121.114.248 - 8008 - {@simon:artanux.be} Processed request: 0.067sec/0.003sec (0.039sec, 0.004sec) (0.003sec/0.025sec/3) 16149B 200 "GET /_matrix/client/v3/rooms/!QXEsKNOMscCaAUthmX%3Aartanux.be/context/%24dpasCmxFT2coiPmzNTi4pkckSslII6zE6KRnwzpUUhs?filter=%7B%22lazy_load_members%22%3Atrue%7D HTTP/1.0" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36.0 (KHTML, like Gecko) Chrome/118.0.5993.159 Safari/537.36.0" [0 dbevts]
2024-05-18 12:28:13,647 - root - 355 - WARNING - main- ***** STARTING SERVER *****
2024-05-18 12:28:13,648 - root - 356 - WARNING - main- Server /opt/yunohost/matrix-synapse/lib/python3.9/site-packages/synapse/app/homeserver.py version 1.105.1
2024-05-18 12:28:13,649 - root - 361 - WARNING - main- Copyright (c) 2023 New Vector, Inc
2024-05-18 12:28:13,650 - root - 362 - WARNING - main- Licensed under the AGPL 3.0 license. Website: https://github.com/element-hq/synapse
2024-05-18 12:28:13,650 - root - 365 - INFO - main- Server hostname: artanux.be
2024-05-18 12:28:13,652 - root - 366 - INFO - main- Instance name: master
2024-05-18 12:28:13,652 - root - 367 - INFO - main- Twisted reactor: EPollReactor
2024-05-18 12:28:13,653 - synapse.app.homeserver - 356 - INFO - main- Setting up server
2024-05-18 12:28:13,654 - synapse.server - 345 - INFO - main- Setting up.
2024-05-18 12:28:13,707 - synapse.storage.databases - 73 - INFO - main- [database config 'master']: Checking database server
2024-05-18 12:28:13,713 - synapse.storage.databases - 76 - INFO - main- [database config 'master']: Preparing for databases ['main', 'state']
Je ne vois rien qui explique le redémarrage du service.
En regardant avec journal
# journalctl -xe | grep synapse | grep "exited" -B 20
(...)
May 18 12:20:46 artanux.be systemd[1]: synapse.service: Failed with result 'core-dump'.
░░ The unit synapse.service has entered the 'failed' state with result 'core-dump'.
May 18 12:20:46 artanux.be systemd[1]: synapse.service: Consumed 24.675s CPU time.
░░ The unit synapse.service completed and consumed the indicated resources.
May 18 12:20:50 artanux.be systemd[1]: synapse.service: Scheduled restart job, restart counter is at 15.
░░ Automatic restarting of the unit synapse.service has been scheduled, as the result for
░░ Subject: A stop job for unit synapse.service has finished
░░ A stop job for unit synapse.service has finished.
May 18 12:20:50 artanux.be systemd[1]: synapse.service: Consumed 24.675s CPU time.
░░ The unit synapse.service completed and consumed the indicated resources.
░░ Subject: A start job for unit synapse.service has begun execution
░░ A start job for unit synapse.service has begun execution.
May 18 12:20:58 artanux.be python[396928]: File '/etc/matrix-synapse/conf.d/app_service.yaml' is empty or doesn't parse into a key-value map. IGNORING.
░░ Subject: A start job for unit synapse.service has finished successfully
░░ A start job for unit synapse.service has finished successfully.
May 18 12:21:09 artanux.be python[396938]: 2024-05-18 12:21:09,377 - root - 356 - WARNING - main- Server /opt/yunohost/matrix-synapse/lib/python3.9/site-packages/synapse/app/homeserver.py version 1.105.1
May 18 12:21:09 artanux.be python[396938]: 2024-05-18 12:21:09,379 - root - 362 - WARNING - main- Licensed under the AGPL 3.0 license. Website: https://github.com/element-hq/synapse
May 18 12:21:10 artanux.be python[396938]: 2024-05-18 12:21:10,743 - synapse.app - 56 - WARNING - sentinel- Failed to listen on 0.0.0.0, continuing because listening on [::]
May 18 12:27:47 artanux.be python[396938]: 2024-05-18 12:27:47,835 - synapse.http.server - 782 - WARNING - GET-43- Not sending response to request <XForwardedForRequest at 0x7f4020799d90 method='GET' uri='/_matrix/client/v3/sync?filter=3&timeout=30000&set_presence=unavailable&since=s33101_2492534_0_68086_4621_4_2115_141691_0_3' clientproto='HTTP/1.0' site='8008'>, already disconnected.
May 18 12:27:51 artanux.be systemd[1]: synapse.service: Main process exited, code=dumped, status=4/ILL
░░ An ExecStart= process belonging to unit synapse.service has exited.