frankie (pg standby) needs db-perms.sh re-run when reachable #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
frankie.hanzalova.internal was unreachable (
no route to host 10.6.0.70) when the app-ownedpg_ident.conf.d/moments.confmigration ran against magrathea on 2026-07-02 (#3).The standby therefore still has the legacy host-named layout — and critically never received the
frootmig.kosherinata.internal → moments_rwmapping at all, so a failover today would lock the worker out.When frankie is back: run
script/db-perms.shfrom a workstation; it converges both pg hosts in one idempotent pass (migrates legacy lines intomoments.conf, adds missing mappings, reloads postgres only if changed).Ran and verified. Both pg hosts are reachable again, and the standby now has the app-owned file with the two mappings that matter:
Live, not just on disk — postgres reloaded at 13:33:11 (
pg_conf_load_time()confirms it, and the journal showsreceived SIGHUP, reloading configuration filesright after the two appends tomoments.conf).That clears the failover risk. Worth recording that it was broader than this issue described:
nikola → moments_rowas missing too, so a failover would have taken the api down as well, not only the worker.Residual divergence, not blocking this
The primary carries four mappings, the standby two:
The two
roosta.hanzalova.internal(workstation) lines are absent on frankie, and that follows from howdb-perms.shworks: it converges each host tomapping_pairs— which holds only the api and worker hosts — plus whatever legacymoments_*lines already existed on that host. magrathea had the workstation lines to migrate out of its host-named files; frankie had none, so it got only the two.So the script converges each host against itself rather than against a common desired set, and hosts can stay permanently divergent. Consequence today is small: after a failover, direct
psqlfrom the workstation asmoments_rw/moments_rowould not authenticate against frankie (thessh+sudo -u postgrespath inasset/sql/bootstrap-moments.sqlstill works). Filed separately if worth fixing.