!vxTmkuJzhGPsMdkAOc:transformierende-gesellschaft.org

NixOS Matrix Subsystem

129 Members
Coordination and discussion about the matrix subsystem in NixOS - https://nixos.wiki/wiki/Matrix63 Servers

Load older messages


SenderMessageTime
17 Jun 2022
@fadenb:utzutzutz.netfadenb
error: The option `services.matrix-synapse.settings.listeners.[definition 1-entry 1].bind_address' does not exist. Definition values:
       - In `/etc/nixos/configuration.nix': "127.0.0.1"
(use '--show-trace' to show detailed location information)

Did I misinterpret the latest release config that all top-level config things should be moved to the settings. section?

11:41:49
@fadenb:utzutzutz.netfadenbAh 🤦‍♂️, I should have read the next section 😆11:42:22
@hexa:lossy.networkhexatl;dr: bind_addresses16:12:40
@hexa:lossy.networkhexa

The listeners.*.bind_address option was renamed to bind_addresses in order to match the upstream homeserver.yaml option name. It is now also a list of strings instead of a string.

16:13:50
@hexa:lossy.networkhexawow, I made that it it's own sentence 😄16:14:03
@fadenb:utzutzutz.netfadenb

I ran into another issue though.
I naively just added a settings = { indented my old config lines and closed the curly braces.
This was valid enough to build but had multiple issuss:

database_args was accepted but did not work as expected. This lead to my database name below that being ignored.
Fix was easy, make it database.args and it is ok.
Another thing which broke was my old extraConfig which ended up as a single line in the new config.

I feel this was not sufficiently documented. For such a major change I'd hope for more safeguards or a much more detailed release notes entry that actually covers all those cases.

19:20:39
@dandellion:dodsorf.asDandellion

need to be moved into services.matrix-synapse.settings

might have kind of implied you could just copy it in. but how settings (RFC42) works in the rest of nixos should make it somewhat a pattern so people hopefully don't actually verbatimely copy things into the settings

I don't think there's a nice way to sanity check freeform settings in general (since you want to be able to specify their contents freely), but maybe we could have explicitly checked for things like database_args for a while and thrown

20:00:18
@dandellion:dodsorf.asDandellion I personally think saying it generates a homeserver.yaml file and follows RFC42 ought to be enough, at least combined with settings being like that in other modules 20:03:39
21 Jun 2022
@fadenb:utzutzutz.netfadenbAnyone here using synapse_auto_compressor with psql socket auth and can share with me how to specify how to connect to postgres?21:15:31
@fadenb:utzutzutz.netfadenb I always get a 'invalid configuration host missing' error but I obviously do not want to connect via the network.
Replacing host with a path to the socket does not work either
21:16:37
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.deI just use it over localhost iirc21:35:15
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de * I just use it over localhost21:35:41
@fadenb:utzutzutz.netfadenb Ah, seems that one must use ?host=/var/run/postgresql and no other format mentioned in the manual :) 21:36:12
22 Jun 2022
@ralith:ralith.comRalithwhoever wrote the matrix-synapse release notes, thanks for the hour I just had to spend recovering20:44:11
@ralith:ralith.comRalith "This means that options that are part of your homeserver.yaml configuration, and that were specified at the top-level of the module (services.matrix-synapse) now need to be moved into services.matrix-synapse.settings" is not accurate 20:44:33
@ralith:ralith.comRalith in particular database_type and database_args are ignored, and synapes silently defaults back to using sqlite, which not only breaks everything, but also nukes every active user session! 20:45:45
@ralith:ralith.comRalithcould've lost e2e keys permanently if my backups weren't good20:46:05
@hexa:lossy.networkhexafeel free to imporve the docs.20:46:44
@hexa:lossy.networkhexa * feel free to improve the docs.20:47:53
@ralith:ralith.comRalithunfortunately fixing this mess has used up all my available time for such issues and then some20:47:55
@hexa:lossy.networkhexa
# this attribute set holds all values that go into your homeserver.yaml configuration
# See https://github.com/matrix-org/synapse/blob/develop/docs/sample_config.yaml for
# possible values.
20:49:50
@hexa:lossy.networkhexathe defaults for the database are dependant on the stateVersion20:51:43
@hexa:lossy.networkhexa< 18.03 was sqlite320:51:46
@hexa:lossy.networkhexa

= 18.03 is postgres

20:51:52
@hexa:lossy.networkhexa * >= 18.03 is postgres 20:51:59
@hexa:lossy.networkhexa * < 18.03 was sqlite3 20:52:03
@hexa:lossy.networkhexadatabase_type and database_args do not match the expected synapse config structure20:53:05
@hexa:lossy.networkhexaso of course they were ignored20:53:08
@hexa:lossy.networkhexahttps://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#database20:54:32
@ralith:ralith.comRalithyes, silly me, taking the release notes at face value21:07:14

Show newer messages


Back to Room ListRoom Version: 4