-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
synapse: minor changes. #34676
synapse: minor changes. #34676
Conversation
d84c25a
to
833f37d
Compare
Hi, just saw this PR. I've been maintaining the package and added the The configurable config file location looks good to me. For patching config files, I'd like to have the config file updates installed so that e.g. |
Should also mention that #34682 has already been merged. |
I was used to see error output in the logging space of
If you read the first three paragraphs of the config file that you want to install you see that this config file is not intended to be copied into Please test your patches before you create pull requests. |
We'll need to have a Void team member weigh in on this because the history of the logging service (introduced in #31263) was what made me start using vlogger instead of the older
I compared the output of |
6254369
to
56f5bac
Compare
For synapse, logging of stderr doesn't really make sense anyway since it only
Sure you can ignore what the authors of the software and people that use it
If registering a user in the command line (which you do when you follow the I've rearranged my patches. Feel free to do with them as you please. I'll just
and be done with it. |
56f5bac
to
6df4a1f
Compare
Being able to see those configuration problems raised in syslog makes debugging easier.
The
I missed this when I was testing, thanks for pointing it out. I was struggling to find a "beginner" use-case that would be a blocker requiring that the secrets be generated and couldn't come up with one. However, this isn't necessarily a bad thing. The Debian package maintained by the authors does the same thing -- they generate a default config without generated secrets and the user must manually supply them, see https://github.com/matrix-org/synapse/blob/develop/debian/build_virtualenv. |
Syslog is not installed by default on void so you won't see the problems raised anywhere. If you think that installing socklog-void and knowing where vlogger logs to by default is easier than using
That's a nice form of cargo-cult that begs for the statement that if you like how it's done in distribution X maybe you should switch to distribution X. If I remember correctly void is trying to provide packages as 'vanilla' as possible. If one seriously wants to set up a synapse homeserver, they have to install synapse, get valid ssl certificates, set up a reverse proxy, install postgresql and set it up, add well-known files for clients and federation, have a working e-mail setup, set up a TURN server and start running different worker processes to do load balancing. I don't think that copying sample config files so that the service starts without failing after a fresh install helps a beginner doing any of that. But it might have wrong defaults like the name of the homeserver (which makes the generated sqlite-db unusable if you want to switch the name later) and missing randomly generated secrets as already mentioned. It also introduced problems for people that were already having a working setup. |
Not trying to strawman here, but by this logic, it seems like no service in Void should be shipping a
I wasn't really pointing to "how Debian does it" as much as "the authors are using this approach as a way to ship their own software so maybe we can learn from it", but you are right that this may be a too vendored approach for Void.
I agree that making a few changes to a default config to get the synapse service running is not representative of the amount of work needed to actually stand-up a feature-complete synapse from scratch. The original reason I attempted to have a default config in place was to remove the existing
which is all that |
synapse has it's own logging facilities. By default it logs to a logfile in |
Oh, I didn't realize |
Anyways, I'm OK with these commits. I think they will need to be squashed into one commit, or I can add them to the next version. |
By default synapse only logs to stderr when there is a problem with configuration. For this we don't need a process running that won't do anything for 99% of the time. Logging to runsvdir should be enough.
That way one can set desired locale and path to config file.
6df4a1f
to
2f2f6ea
Compare
2f2f6ea
to
bcc7198
Compare
Superseded by #35109. |
Don't patch sample config.
Make run script configurable so that admin can change path to config file and set locale if necessary.
Create /etc/synapse again.
Log to daemon.notice.Logging daemon is not really necessary for this.Testing the changes