!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1254 Members
NixOS Deployment tooling308 Servers

Load older messages


SenderMessageTime
29 Sep 2024
@lineararray:matrix.orgLinearArray changed their profile picture.05:04:14
@yzx9:matrix.org@yzx9:matrix.org left the room.11:28:58
@mrdev023:matrix.orgmrdev023 left the room.14:06:25
@freopen:matrix.orgfreopen joined the room.20:42:10
30 Sep 2024
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.organyone aware of a "simple"/"easy" alternative to deploy-rs that includes some type of rollback or at least ensuring ssh/access stays available for remote deploys i want to deploy system and home profliles to my homeserver without bricking it in case of issues, and deploy-rs ended up with a mess for that more regular than for my liking (in particular thanks to nextcloud updates being a big adventure)08:20:01
@k900:0upti.meK900That's not really a deploy-rs problem though08:30:09
@k900:0upti.meK900Nextcloud just doesn't do state rollbacks08:30:14
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgi agree that the issue there isn't the fault of deploy-rs - but the default behavior of deploy-rs elevates the issues nextcloud creates to much worse as any rollback after migrate ends with a sad system08:39:12
@k900:0upti.meK900That's not something deploy-rs is in control of08:39:38
@k900:0upti.meK900If you're looking for a tool that will let you roll back your entire system EXCEPT nextcloud, that's not a tool problem08:39:56
@k900:0upti.meK900NixOS just doesn't work that way08:39:59
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgi beleive theres a missunderstanding - i want to remove the nextcloudbricking - that doesnt imply partial rollback, it would already be enough to defer the migrations until its clear that rollback for other reasons isnt needed 08:43:19
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgits a problem of nixos as a whole tho that no more detailed concept of state management and migrations exist, as operation of services kind of needs to manage their state08:45:25
@k900:0upti.meK900
In reply to@ronnypfannschmidt:matrix.org
i beleive theres a missunderstanding - i want to remove the nextcloudbricking - that doesnt imply partial rollback, it would already be enough to defer the migrations until its clear that rollback for other reasons isnt needed
No tool can do that
08:51:19
@k900:0upti.meK900Because Nextcloud migrations run on system activation08:51:27
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgthe need to have those run on activation is pretty much the failure point of the system - since state-transformation on activation ensures that rollback turns from something securely possible into something that "good luck" some approaches for enabling that are providing multiple versions and deciding which to start based on migration state or having upgrade steps of packages that are more migration aware and being able to run with older/newer versions to some extend (django/alembic based applications have those + for some migrations even schema rollback) in the ideal world software is engineered migration aware and supports both running on newer schema as well as having migrations split so that older versions can be broken at a later point in time reality is often more somber however09:12:26
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orga nice intermediate would be prefer putting a deployment into maintenance mode as opposed to running migrations eagerly and breaking rollback09:13:15
@janejasperous:nadanix.comJane Jasperous there is not that system.stateVersion to avoid database and schema migrations between releases? 09:55:21
@k900:0upti.meK900There isn't for forward migrations09:55:48
@k900:0upti.meK900And I feel like you're still missing the most important point here09:55:57
@k900:0upti.meK900 Which is that this is just how NixOS works 09:56:04
@k900:0upti.meK900No tool can work around this problem09:56:10
@k900:0upti.meK900It needs to be solved at NixOS level09:56:13
@janejasperous:nadanix.comJane Jasperousyep i see: "Note that this generally only affects applications that can’t upgrade their data automatically - applications and services supporting automatic migrations will remain on latest versions when you upgrade."09:56:17
@larstvei:matrix.org@larstvei:matrix.org left the room.10:02:19
@andrewm:element.ioAndrew Morgan (anoa) {he/him} changed their display name from Andrew Morgan (anoa) {he/him} [TOIL] to Andrew Morgan (anoa) {he/him}.10:10:20
1 Oct 2024
@ldare373:matrix.orgldare373 joined the room.00:22:12
@bishop365:matrix.org@bishop365:matrix.org left the room.11:58:50
@-_o:matrix.org-_o joined the room.20:55:51
3 Oct 2024
@midirhee12:tchncs.de@midirhee12:tchncs.de joined the room.02:13:10

Show newer messages


Back to Room ListRoom Version: 6