Hmmā¦ I can start with the not-so-helpful āWhat does it say in the logs?ā When you follow the log, with tail -f
, do messages race by? In my case:
tail -f /var/log/matrix-synapse/homeserver.log
2022-03-09 20:23:00,990 - twisted - 275 - INFO - sentinel- Timing out client: IPv6Address(type='TCP', host='::ffff:188.68.38.222', port=39794, flowInfo=0, scopeID=0)
2022-03-09 20:23:01,548 - synapse.handlers.presence - 772 - INFO - persist_presence_changes-44614- Persisting 4 unpersisted presence updates
2022-03-09 20:23:03,077 - synapse.federation.transport.server.federation - 95 - INFO - PUT-803398- Received txn 1644862894031 from leprette.fr. (PDUs: 0, EDUs: 1)
2022-03-09 20:23:03,130 - synapse.access.https.8448 - 421 - INFO - PUT-803398- ::ffff:89.234.177.95 - 8448 - {leprette.fr} Processed request: 0.054sec/0.001sec (0.006sec, 0.000sec) (0.003sec/0.043sec/5) 11B 200 "PUT /_matrix/federation/v1/send/1644862894031 HTTP/1.1" "Synapse/1.47.1" [0 dbevts]
2022-03-09 20:23:06,381 - synapse.federation.transport.server.federation - 95 - INFO - PUT-803399- Received txn 1646758312371 from remi.im. (PDUs: 0, EDUs: 1)
2022-03-09 20:23:06,431 - synapse.access.https.8448 - 421 - INFO - PUT-803399- ::ffff:77.173.199.109 - 8448 - {remi.im} Processed request: 0.052sec/0.001sec (0.005sec, 0.001sec) (0.002sec/0.041sec/5) 11B 200 "PUT /_matrix/federation/v1/send/1646758312371 HTTP/1.1" "Synapse/1.53.0" [0 dbevts]
2022-03-09 20:23:14,633 - synapse.access.http.8008 - 421 - INFO - GET-803400- 83.232.57.155 - 8008 - {@user:homeserver} Processed request: 0.006sec/0.002sec (0.003sec, 0.000sec) (0.001sec/0.001sec/1) 333B 200 "GET /_matrix/client/r0/sync?filter=1&set_presence=offline&timeout=6000&since=s259183_4202135_15841_212534_7423_43_10255_514257_1 HTTP/1.0" "Element/1.3.9 (Linux; U; Android 12; SM-G970F Build/SP1A.210812.01; Flavour FDroid; MatrixAndroidSdk2 1.3.9)" [0 dbevts]
2022-03-09 20:23:18,980 - twisted - 275 - INFO - sentinel- Timing out client: IPv6Address(type='TCP', host='::ffff:144.76.146.18', port=43686, flowInfo=0, scopeID=0)
2022-03-09 20:23:20,747 - twisted - 275 - INFO - sentinel- Timing out client: IPv6Address(type='TCP', host='::ffff:95.217.202.35', port=55482, flowInfo=0, scopeID=0)
2022-03-09 20:23:21,228 - twisted - 275 - INFO - sentinel- Timing out client: IPv6Address(type='TCP', host='::ffff:168.119.236.153', port=55096, flowInfo=0, scopeID=0)
2022-03-09 20:23:25,972 - synapse.federation.transport.server.federation - 95 - INFO - PUT-803401- Received txn 1646755402155 from tilosp.de. (PDUs: 0, EDUs: 1)
So, about a line per second.
If it is many more than that, maybe logging is at debug in the settings. Mine is at INFO, most places:
cat /etc/matrix-synapse/log.yaml
version: 1
formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s- %(message)s'
filters:
context:
(): synapse.util.logcontext.LoggingContextFilter
request: ""
handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: precise
filename: /var/log/matrix-synapse/homeserver.log
filters: [context]
level: INFO
console:
class: logging.StreamHandler
formatter: precise
level: WARN
loggers:
synapse:
level: INFO
synapse.storage.SQL:
level: INFO
root:
level: INFO
handlers: [file, console]
There is also a homeserver-specific logconfig, /etc/matrix-synapse/domain.tld.log.config
, it is also at INFO.
Yours?