| 30 Sep 2024 |
K900 | If you're looking for a tool that will let you roll back your entire system EXCEPT nextcloud, that's not a tool problem | 08:39:56 |
K900 | NixOS just doesn't work that way | 08:39:59 |
@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
| 08:43:19 |
@ronnypfannschmidt:matrix.org | its 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 state | 08:45:25 |
K900 | 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 | Because Nextcloud migrations run on system activation | 08:51:27 |
@ronnypfannschmidt:matrix.org | the 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 however | 09:12:26 |
@ronnypfannschmidt:matrix.org | a nice intermediate would be prefer putting a deployment into maintenance mode as opposed to running migrations eagerly and breaking rollback | 09:13:15 |
Jane Jasperous | there is not that system.stateVersion to avoid database and schema migrations between releases? | 09:55:21 |
K900 | There isn't for forward migrations | 09:55:48 |
K900 | And I feel like you're still missing the most important point here | 09:55:57 |
K900 | Which is that this is just how NixOS works | 09:56:04 |
K900 | No tool can work around this problem | 09:56:10 |
K900 | It needs to be solved at NixOS level | 09:56:13 |
Jane Jasperous | yep 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 left the room. | 10:02:19 |
| Andrew 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 joined the room. | 00:22:12 |
| @bishop365:matrix.org left the room. | 11:58:50 |
| -_o joined the room. | 20:55:51 |
| 3 Oct 2024 |
| @midirhee12:tchncs.de joined the room. | 02:13:10 |
| Renato Trevisan joined the room. | 09:17:41 |
| Andrew Morgan (anoa) {he/him} changed their display name from Andrew Morgan (anoa) {he/him} to Andrew Morgan (anoa) {he/him} [away til 8th]. | 18:19:10 |
| 4 Oct 2024 |
| @dschrempf:matrix.org left the room. | 07:56:00 |
| rendakuenthusiast⚡️ left the room. | 09:51:15 |
| @bashfulrobot.:matrix.org changed their profile picture. | 16:24:16 |
| @terrorjack:matrix.terrorjack.com joined the room. | 17:35:30 |
| 5 Oct 2024 |
| zgcarvalho joined the room. | 14:36:21 |
| magic_rb changed their profile picture. | 22:17:05 |
| 6 Oct 2024 |
| Saturn joined the room. | 03:59:04 |