-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bad or partial config could fail faster and more noisily #3513
Comments
Things related to this:
|
For @lampholder 's specific case we could just scream that turn is disabled, which should hopefully provoke some fear that his config is wrong. I'm not sure spitting the config back out is a particularly log friendly thing to do. Disabling turn is a fairly reasonable thing to do for people that don't want the pain of |
scream where? I'm not sure we could do a lot to solve @lampholder's problem beyond providing better test tools, which is covered by #1519. |
I don't think this is an actionable issue as it stands. |
Could i suggest an actionable change to synapse: A commandline way of invoking synapse which does nothing except parse the config file, attempts to load modules as specified, but does not bind to any ports or open any database connections, emits a warning of any parameter in a config file is unused, and returns status code 0 if there were no errors or warnings, and status code 1 if there were any. I'm aware this is not easy within the current flow of synapses' configuration, but it is an important feature for a reliable application. We are able to currently generate an entire config file from scratch, so we should have enough information about parameters to be able to check for invalid ones in a config file. If you look at the options for high reliability services, we find things like I can open this as a seperate issue if you want, but it would also cover @lampholder's case as well as the automation ones. |
agreed, sounds good. (and I don't think it's even that hard). new issue please! |
Setting up a TURN server, somehow I set the config in homeserver.yaml to read:
turn-shared-secret: 81ahb1ahBl4481ahb1ahBl4481ahb1ahBl4481ahb1ahBl44
When of course it should have read:
turn_shared_secret: 81ahb1ahBl4481ahb1ahBl4481ahb1ahBl4481ahb1ahBl44
Synapse uncritically accepted a
turn_shared_secret
of (presumably) empty string and generated (invalid) passwords using that. Coupled with coturn's super limp logging and frustrating debug/test tools, this silent failure frustrated my efforts to set up a functioning TURN server for just over one and a half years 😭The text was updated successfully, but these errors were encountered: