element-hq / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://element-hq.github.io/synapse
GNU Affero General Public License v3.0
1.3k stars 158 forks source link

[Docker] Synapse generates `log.config` in `/data/conf.d` and then prints (harmless) message saying it is ignoring it due to lack of YAML extension #16896

Open erebion opened 7 months ago

erebion commented 7 months ago

Description

Synapse says:

Generating log config file /data/conf.d/log.config which will log to /homeserver.log

and it says a few seconds later:

Found file in config directory that does not end in '.yaml': '/data/conf.d/log.config'. IGNORING.

Steps to reproduce

Synapse Version

1.100.0

Installation Method

Docker (matrixdotorg/synapse)

Database

PostgreSQL

Workers

Single process

Platform

Debian stable

Configuration

Pretty much default config, presende disabled, nothing special

Relevant log output

See above.

Anything else that would be useful to know?

nope

reivilibre commented 4 months ago

This is certainly a bit weird, but I don't think this is actually cause for concern.

The log.config is a specific type of configuration file, separate from the 'normal' configuration files. This message is saying that it's ignoring it for the purposes of 'normal' configuration files (in the Docker image, it seems it includes any yaml file in /data/conf.d).

The warning is therefore harmless. This message in general is just intended to help people who are wondering why their configuration doesn't work, but it is indeed a bit weird that the default docker configuration should emit this.