Commit Graph
21 Commits
Author SHA1 Message Date
Hermenix 1c420283f4 buzz: prebuild artifact-sync indexes before relay migrates
The relay image is ghcr.io/block/buzz:main with autoUpdate and
BUZZ_AUTO_MIGRATE=true. On 2026-11-02 an auto-update pulled a newer build
whose migrations include 0078_artifact_sync_indexes.sql. That migration
refuses to create its four indexes inline once the target table is
populated -- it raises "prebuild <index> concurrently" and points at
docs/artifact-sync-deployment.md. channel_members is populated on a live
relay, so migration 78 aborts, the relay exits 1 and has been
crash-looping ever since. The schema sits at 0077, so every earlier
migration (including 0077_artifact_sync_timestamps) is applied; rolling
the image back is not an option because sqlx rejects a schema that is
ahead of the binary's known migrations.

Fix the gate instead of the image: a one-shot compose service,
relay-index-prebuild, runs on the postgres image after postgres reports
healthy and builds the four indexes CONCURRENTLY. Each index is checked
first -- missing, valid, or invalid (present but not
indisvalid/indisready/indislive); an invalid leftover is dropped
concurrently before the rebuild, and an already-valid index is left
alone, so re-runs are cheap and safe. The relay now waits on
relay-index-prebuild completing successfully, next to its existing
postgres/redis/minio/minio-init conditions.

Authored by hermenix.
2026-11-03 04:32:29 +00:00
ari 32bc1e83e9 fixing buzz pairing 2026-10-20 16:46:54 -04:00
ari 4f3a95b42c tracking 2026-10-19 14:49:47 -04:00
ari 0388875455 ddclient for cloudflare 2026-10-13 20:15:16 -04:00
ari cd48b65656 migrating immich 2026-10-13 19:52:27 -04:00
ari adf0e990ce more logo 2026-10-03 01:01:42 -04:00
ari 17b14b33e5 making sure files will cause a restart 2026-10-03 00:57:28 -04:00
ari c4056e45cb gitea landing page 2026-10-03 00:16:55 -04:00
ari 4d1a269e00 buildbot + caddy 22 2026-10-02 14:43:37 -04:00
ari 34607e944b nicer template 2026-10-01 16:11:14 -04:00
ari e063c3cfea push rules + omarchy 2026-10-01 14:17:36 -04:00
ari a7c1b1cc0c public gitea + nixarchy work 2026-10-01 13:45:17 -04:00
ari 8bd66c9975 nitw-gc 2026-09-30 15:58:41 -04:00
ari 2f281b354a gitea container 2026-09-30 14:40:26 -04:00
ari eb213e56e5 gitea container 2026-09-30 13:31:15 -04:00
ari 35b66f5435 gitea container work 2026-09-30 11:22:38 -04:00
ari 4f396d93c4 new dns routing 2026-09-29 11:23:25 -04:00
ari 09e2e03423 single file for dns 2026-09-26 01:47:42 -04:00
ari 0737f21ccb clean up of secrets and a better namespace for delta 2026-09-25 16:06:01 -04:00
ari b615811418 using rootdir properly 2026-09-25 14:59:18 -04:00
ari b5bde292d2 refactoring hosts too big 2026-09-25 14:51:13 -04:00