Your one-stop-cake-shop for everything Freshly Baked has to offer

fix(m): wait for postgres connection #153

merged
opened by a.starrysky.fyi targeting main from private/minion/push-tuxqlnlmuxol

I woke up this morning to a dead menu instance and the following backtrace:

Jan 05 04:46:24 teal menu-start[1351]: thread 'main' (1351) panicked at src/main.rs:173:6:
Jan 05 04:46:24 teal menu-start[1351]: Failed to connect to database defined in $DATABASE_URL: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Jan 05 04:46:24 teal menu-start[1351]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It seems like this is because, when teal restarted, postgresql hadn't created a socket by the time menu connected. Restarting menu after the fact let it run Just Fine. Adding some retries should stop this problem from coming up...

...a proper solution is probably to fix whatever decides that postgresql is ready in packetmix, but this is much easier to locate and implement

0
by a.starrysky.fyi 0 comments
expand 1 commit
fix(m): wait for postgres connection
expand 1 commit
fix(m): wait for postgres connection
Labels

None yet.

requested-reviewers

None yet.

approved

None yet.

tested-working

None yet.

rejected

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:uuyqs6y3pwtbteet4swt5i5y/sh.tangled.repo.pull/3mbnxawpmek22