Closed kentcdodds closed 1 year ago
Thanks for the bug report. The error is reporting that it's trying to read the database header magic but that it's all set to zeros. All SQLite databases start with the characters "SQLite format 3\x00"
. My guess is that a replica started copying from the primary but didn't finish and has a partial database file and gets stuck on startup. Sorta similar to https://github.com/superfly/litefs/issues/173. I'll add a check on startup to ignore and re-snapshot from the primary.
Here are the logs starting at the deploy step of an existing app (
kcd-staging
):I have no idea what this error means :(
Here's the broken build: https://github.com/kentcdodds/kentcdodds.com/actions/runs/3448608277/jobs/5755798070
Happened at around 4:50ish of this live stream if that's helpful: https://www.youtube.com/watch?v=AA-1sweDAtA