-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config blocks are read only from the last configuration file loaded using --config-path, resulting in most of the block missing. #17677
Comments
Can you try with quotes ?
|
It seems the issue is actually caused by having the config separated in two parts to make sure I don't have sensitive information like the SMTP password world-readable in the nix store, but having an email section in both files is causing it to only read the section from the second file with the secrets. I should have probably mentioned that before. |
I have just realized, that my entire database config only worked was because I have overwritten the config written by nix in the secrets config file.
So it's actually an issue with Synapse reading any config blocks only from the last file it finds them in in the order they are presented with the |
It seems like this is a problem, which would be solved if #11203 was solved. So should I close this issue? |
It seems you're using multiple config files in a way that it's not supported. It would be necessary to see those multiple files (redacted) to be sure. If it is indeed #11203 then you must copy entire config blocks into the second or following config files, partials won't work. |
I think it is a duplicate of #11203. |
File 1:
File 2:
|
This sounds exactly like what #11203 is proposing, albeit described in a different manner. |
Description
Synapse fails at startup with an error message saying that the key email.notif_from is missing, but it exists in the configuration file.
Steps to reproduce
--config-path
(like the NixOS module, when theextraConfigFiles
option is used)Homeserver
duanin2.top
Synapse Version
1.114.0
Installation Method
Other (please mention below)
Installed using NixOS Modules
Database
PostgreSQL(single server, no porting, no backup restores)
Workers
Single process
Platform
NixOS unstable on a Raspberry Pi 5.
Configuration
No response
Edit: I have a separate config file for secrets, like the SMTP password, in order to not include them in my public NixOS-Config repository on GitHub, and the nix store.
Relevant log output
Anything else that would be useful to know?
Relevant nix configuration lines
Resulting configuration file lines:
The text was updated successfully, but these errors were encountered: