YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 43 forks source link

Logs duplicated: Upgrade and explain log.yaml #409

Closed Gredin67 closed 3 months ago

Gredin67 commented 9 months ago

We are having issues with synapse logs filling up our VM from time to time (probably due to other disk usage issues). In particular, logs are being duplicated in different places :

Should log.yaml be upgraded to the currently recommanded config ? https://matrix-org.github.io/synapse/latest/usage/configuration/logging_sample_config.html Can someone explain what the different settings in there do ? e.g. which log files are concerned to which setting ? Is root:handlers responsible for writing in syslog? If yes, is it required ?

yajo commented 9 months ago

Today I hit the same problem. Server toasted due to huge /var/log/matrix-synapse/homeserver.log. Could this be related to https://github.com/YunoHost-Apps/synapse_ynh/pull/155? Couldn't it just send logs to journald and let it do its magic?

Josue-T commented 3 months ago

Closing as since packaging v2 it might be fixed.

Note that in theory you should have the log on systems console and in /var/log/synapse and not in syslog.

For /var/log/synapse we setup logrote so there shouldn't have problem with log size.