!vxTmkuJzhGPsMdkAOc:transformierende-gesellschaft.org

NixOS Matrix Subsystem

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

Load older messages


SenderMessageTime
14 Feb 2022
@sumner:nevarro.spaceSumner Evans
In reply to @hexa:lossy.network
How can I enable labs on element-desktop?
you have to create a file in ~/.config/Element/config.json.
23:57:29
@hexa:lossy.networkhexaok, looking into that, thanks23:59:05
17 Feb 2022
@grahamc:nixos.org@grahamc:nixos.org Hey folks, hexa just noted that this room is in the space but doesn't have mjolnir set up. Could I get Admin in here to get Mjolnir setup? 01:52:50
@f0x:pixie.townf0x joined the room.20:59:27
@f0x:pixie.townf0x I've been working on adding Synapse workers support to the existing matrix-synapse module. It's messy and probably not ideal since I just started with Nix, but would there be interest in getting this upstreamed? https://git.pixie.town/f0x/nixos/src/branch/synapse-workers/common/modules/synapse 21:00:57
@dandellion:dodsorf.asDandellionThe current state of getting workers is using some custom config based on https://github.com/dali99/nixos-matrix-modules21:02:23
@f0x:pixie.townf0xmine is a bit more opinionated I think, also setting up nginx to get specific routes to the right workers21:04:20
@dandellion:dodsorf.asDandellionyou have some cool ideas with how you handle routes and things in your module, but I don't think the synapse module will be handling nginx options directly for a while. And we'll definetly need to use the https://github.com/NixOS/nixpkgs/pull/158605 rfc42 way of setting settings21:04:42
@dandellion:dodsorf.asDandellion * you have some cool ideas with how you handle routes and things in your module, but I don't think the synapse module will be handling nginx options directly for a while. And we'll definetly need to use the https://github.com/NixOS/nixpkgs/pull/158605 rfc42 way of generating the config21:04:55
@f0x:pixie.townf0xyeah unfortunate I only learned of that PR just now21:05:12
@f0x:pixie.townf0xI was also wondering if there's a nice way to expose default blocks of routes, so you don't have to configure them all yourself21:05:38
@f0x:pixie.townf0xbut just include workers.routes.client or whatever21:05:51
@dandellion:dodsorf.asDandellion
In reply to @hexa:lossy.network
Dandellion, Sumner Evans TIL: https://gist.github.com/artizirk/e1793e28da16a48b41672d126b44e7a6
An opinionated module can use nginx maps like this
21:06:31
@dandellion:dodsorf.asDandellion I think the plan would generally be to just do matrix.workers.federation_reciever = 2 and such to have the module system enumerate ports and generate nginx routes and whatever else is needed 21:07:47
@f0x:pixie.townf0xthat would be really nice yeah21:08:51
@hexa:lossy.networkhexaOr a list of ports to bind to 21:10:13
@hexa:lossy.networkhexaworkers and secret handling are the next big steps in this module21:15:48
@hexa:lossy.networkhexaI imagine the map mostly as a concatStringsSep with rules being optional in relation to the worker count for the relevant path21:17:28
@hexa:lossy.networkhexahaven't checked whether our nginx module supports maps natively21:17:44
@dandellion:dodsorf.asDandellionit does not21:17:52
@dandellion:dodsorf.asDandellion after you posted it I simply added it to my services.nginx.commonHttpConfig 21:18:32
@hexa:lossy.networkhexaand using such a map allows it to be maintainable for us21:18:34
@hexa:lossy.networkhexasince we can just c/p the patterns from the documentation21:18:48
@hexa:lossy.networkhexa and for ajs124 we enable pcre jit by default 21:28:20
@hexa:lossy.networkhexa
2022-02-17 23:43:34,351 - root - 349 - WARNING - main - ***** STARTING SERVER *****
2022-02-17 23:43:34,352 - root - 350 - WARNING - main - Server /nix/store/rp1cyyj9sbwq8xf41d334wxhlh5i2rvl-matrix-synapse-1.52.0/bin/synapse_worker version 1.52.0
2022-02-17 23:43:34,352 - root - 351 - INFO - main - Server hostname: lossy.network
2022-02-17 23:43:34,352 - root - 352 - INFO - main - Instance name: client1
2022-02-17 23:43:34,352 - synapse.server - 313 - INFO - main - Setting up.
2022-02-17 23:43:34,377 - synapse.storage.databases - 65 - INFO - main - [database config 'master']: Checking database server
2022-02-17 23:43:34,380 - synapse.storage.databases - 68 - INFO - main - [database config 'master']: Preparing for databases ['main', 'state']
2022-02-17 23:43:34,381 - synapse.storage.prepare_database - 116 - INFO - main - ['main', 'state']: Checking existing schema version
2022-02-17 23:43:34,385 - synapse.storage.prepare_database - 120 - INFO - main - ['main', 'state']: Existing schema is 67 (+0 deltas)
2022-02-17 23:43:34,385 - synapse.app._base - 194 - ERROR - main - Exception during startup
Traceback (most recent call last):
  File "/nix/store/rp1cyyj9sbwq8xf41d334wxhlh5i2rvl-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/app/generic_worker.py", line 491, in start
    hs.setup()
  File "/nix/store/rp1cyyj9sbwq8xf41d334wxhlh5i2rvl-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/server.py", line 315, in setup
    self.datastores = Databases(self.DATASTORE_CLASS, self)
  File "/nix/store/rp1cyyj9sbwq8xf41d334wxhlh5i2rvl-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/storage/databases/__init__.py", line 73, in __init__
    prepare_database(
  File "/nix/store/rp1cyyj9sbwq8xf41d334wxhlh5i2rvl-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/storage/prepare_database.py", line 137, in prepare_database
    _upgrade_existing_database(
  File "/nix/store/rp1cyyj9sbwq8xf41d334wxhlh5i2rvl-matrix-synapse-1.52.0/lib/python3.9/site-packages/synapse/storage/prepare_database.py", line 360, in _upgrade_existing_database
    raise UpgradeDatabaseException(
synapse.storage.prepare_database.UpgradeDatabaseException: Expected database schema version 68 but got 67: run the main synapse process to upgrade the database schema before starting worker processes.
**********************************************************************************
 Error during initialisation:
    Expected database schema version 68 but got 67: run the main synapse process to upgrade the database schema before starting worker processes.
23:43:53
@hexa:lossy.networkhexa cc Dandellion 23:43:56
@hexa:lossy.networkhexathe startup order in your module … needs work 😀23:44:08
@dandellion:dodsorf.asDandelliondoesn't it just, resolve itself with the autorestart :P23:44:36
@dandellion:dodsorf.asDandellionbut yes, it does23:44:54
@hexa:lossy.networkhexa
systemd[1]: matrix-synapse-worker-client1.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: matrix-synapse-worker-client1.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Synapse Matrix Worker.
systemd[1]: matrix-synapse-worker-client1.service: Consumed 3.602s CPU time, no IP traffic.
23:45:12

Show newer messages


Back to Room ListRoom Version: 4