mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-11-23 14:02:45 +00:00
Stalwart 0.16 stores cannot be opened by 1.x; data must be copied with stalwartlabs/stalwart-migrate (v1.0.8) into /var/lib/stalwart/v1 on the data PVC. The chart-native v1Migrate job is not usable here (no PVC mount, SQL stores only), so v1Migrate.alreadyDone=true clears the chart guard. Required runtime sequence before pushing/applying: 1. Snapshot the data-stalwart-stalwart-0 PVC in Longhorn. 2. While 0.16 still runs, incremental migrate from a one-off pod mounting the PVC (image stalwartlabs/stalwart-migrate:v1.0.8, UID/GID 2000): source RocksDb /var/lib/stalwart, target RocksDb /var/lib/stalwart/v1. 3. Cutover: flux suspend hr stalwart -n stalwart; scale sts to 0; run final 'stalwart-migrate run --final --yes'; push; flux resume. 4. After upgrade, restart once with STALWART_UPDATE_ROLE_PERMISSIONS=true (extraEnv) to grant new default-role permissions, then remove it. Expect FTS index rebuild and OAuth re-logins after cutover.