!vxTmkuJzhGPsMdkAOc:transformierende-gesellschaft.org

NixOS Matrix Subsystem

150 Members
Coordination and discussion about the matrix subsystem in NixOS - https://wiki.nixos.org/wiki/Matrix74 Servers

Load older messages


SenderMessageTime
17 Feb 2022
@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
@hexa:lossy.networkhexanope, didn't23:45:14
@dandellion:dodsorf.asDandellionhuh, I think it needs to wait for the main synapse to actually run the migration as well, I'm not quite sure how to wait for a healthy signal like that23:46:27
@f0x:pixie.townf0x
In reply to @hexa:lossy.network
the startup order in your module … needs work 😀
the way my module + the synapse systemd docs do it is setting after = ["matrix-synapse.service"] on all the workers
23:46:31
@f0x:pixie.townf0x
In reply to @dandellion:dodsorf.as
huh, I think it needs to wait for the main synapse to actually run the migration as well, I'm not quite sure how to wait for a healthy signal like that
oh, hmmm
23:46:44
@hexa:lossy.networkhexathis module does the same 🙂23:46:47
@hexa:lossy.networkhexausually type notify ig23:46:59
@hexa:lossy.networkhexaso maybe synapse signaled successful startup too early23:47:33
@f0x:pixie.townf0xi wonder if that's an upstream issue then, at the least with the synapse systemd docs23:48:27
18 Feb 2022
@hexa:lossy.networkhexayep, wondering the same00:06:41
@hexa:lossy.networkhexa

Behavior of notify is similar to exec; however, it is expected that the service sends a notification message via sd_notify(3) or an equivalent call when it has finished starting up. systemd will proceed with starting follow-up units after this notification message has been sent.

00:07:10
@hexa:lossy.networkhexahttps://www.freedesktop.org/software/systemd/man/systemd.service.html00:07:13
@hexa:lossy.networkhexa

Feb 17 23:43:37 ganymede systemd[1]: Started Synapse Matrix homeserver.
Feb 17 23:43:38 ganymede synapse[2214287]: synapse.storage.background_updates: [background_updates-0] Starting background schema updates

00:13:18
@hexa:lossy.networkhexacollecting the complete logs, bear with me00:14:13
@dandellion:dodsorf.asDandellionseems a little weird to be doing schema upgrades as a "low priority" task in the background if they block worker00:14:36
@dandellion:dodsorf.asDandellion * seems a little weird to be doing schema upgrades as a "low priority" task in the background if they block workers00:14:37
@hexa:lossy.networkhexahttps://paste.lossy.network/47VNOW2GQYJRORRQOEHVDNMXSE00:15:19
@hexa:lossy.networkhexaI know what this is 😭00:16:05
@hexa:lossy.networkhexa no dependency resolution when you go systemctl restart matrix-synapse matrix-synapse-worker-client1 [...] 00:17:56
@dandellion:dodsorf.asDandellionand I assume that's what nixos-rebuild does00:18:21
@hexa:lossy.networkhexabingo00:18:26
@hexa:lossy.networkhexaso we'll likely need a prestart script that waits for matrix-synapse to be ready 🙂00:18:32
@dandellion:dodsorf.asDandellionI think I actually came to this conclusion a year ago when you mention it00:18:47
@dandellion:dodsorf.asDandellion😬00:19:05
@hexa:lossy.networkhexayeah, so much knowledge gets lost over time00:19:13
@f0x:pixie.townf0x
In reply to @hexa:lossy.network
no dependency resolution when you go systemctl restart matrix-synapse matrix-synapse-worker-client1 [...]
that's cursed...
00:35:53

Show newer messages


Back to Room ListRoom Version: 4