db upgrade to pg18 fails with POSTGRES_INITDB_ARGS=--no-data-checksums #20
Open
opened 2026-11-08 06:33:24 +00:00 by cgalo5758
·
0 comments
No Branch/Tag Specified
main
upgrade-89420d3
main3
fix-redis-host
disc-official
migrate
migrate2
disc2
disc
idempotent4
idempotent2
idempotent3
idempotent
fix-backup
renovate/configure
cas_readme
1.1.4+2026.7.4
1.1.3+2026.7.4
1.1.2+2026.7.3
1.1.1+2026.7.2
1.1.0+2026.7.1
1.0.0+3.5.3
0.8.1+3.5.0
0.8.0+3.5.0
0.7.0+3.3.1
0.6.3+3.1.2
0.6.2+3.1.1
0.6.1+3.1.1
0.6.0+3.1.1
0.5.0+3.0.6
0.4.1+3.0.6
0.4.0+3.0.1
0.3.1+2.8.9
0.3.0+2.8.9
0.2.1+2.8.9
0.2.0+2.8.1
0.1.0+2.7.7
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze (Born Deleuze)
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
dannygroenewegen (Danny Groenewegen)
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
hex (Josh Dukes)
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1 (p4u1)
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting (stevensting)
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/discourse#20
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Migrating a bitnami deploy (pg13) to 1.1.3+2026.7.4, the db container exits during the upgrade with:
The current discourse/postgres:pg18 image (sha256:07d2e14a6805) does this in
/usr/local/bin/upgrade-postgres.sh:and turns them back on after pg_upgrade. Since compose.yml sets
POSTGRES_INITDB_ARGS=--no-data-checksums, the new cluster already has them off, so--disablefails and the script exits before pg_upgrade runs.Removing that line fixed it for us. The upgrade went through and the new cluster ended up with checksums enabled.
The failed run leaves an empty cluster in
/var/lib/postgresql/18/docker, which I deleted before retrying.Something else we hit: after undeploying, pg_upgrade refused with "The source cluster was not shut down cleanly", because swarm kills postgres before it finishes shutting down. Starting the old postgres:13 once and stopping it cleanly got around it. Might be worth a line in the release notes next to the undeploy step.