fix(backup) + chore: upgrade to 1.3.0+6.42.0-alpine #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "ci/mysql-backup"
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?
Adds a single-file mysqldump backup + reimport-on-restore hook (mysql_backup.sh). The published recipe dumps via mysqldump --tab but ships no restore hook, so restore was a silent no-op (data loss). Same fix class as the postgres recipes. Caught by cc-ci P4 data-integrity test.
Ghost's fresh-DB first boot runs a full schema migration (dozens of CREATE TABLEs, each a separate MySQL round-trip; ~6-9min on a small/slow node). The 1m start_period + 10x30s retries (~6min grace) is too tight there: swarm marks the still-migrating task unhealthy and kills it mid-migration, leaving a stale migrations_lock row so every later task deadlocks (MigrationsAreLockedError). start_period only widens the startup grace window: a healthy check still marks the task healthy immediately, so fast hosts are unaffected. It cannot be exposed as an env var (abra validates the literal compose 'duration' format BEFORE env substitution, rejecting ${VAR} / "${VAR:-1m}" with FATA 'Does not match format duration'), so a literal bump is the only way to widen it.Auto-closed by /recipe-upgrade: superseded by upgrade-1.3.0+6.42.0-alpine (fresh upgrade against current upstream main)
Reopened. This PR was auto-closed in error by the old
/recipe-upgradesuperseded behavior when upgrade PR #2 was opened — but it's unrelated to that upgrade: it's a real backup/restore data-loss fix (restore was a silent no-op). That auto-close-superseded behavior has now been removed, so unrelated open PRs stay open. @notplants please review.fix(backup): reimport mysqldump on restore (restore was a no-op)to fix(backup) + chore: upgrade to 1.3.0+6.42.0-alpine!testme
🌻 cc-ci —
ghost@26ef5e66✅ passedfull logs · dashboard
!testme
26ef5e6625to11bac13e30!testme
🌻 cc-ci —
ghost@11bac13e✅ passedfull logs · dashboard