Fix PostgreSQL health check - remove database-specific check
All checks were successful
BotServer CI / build (push) Successful in 12m18s

- Removed -d 'postgres' parameter from pg_isready health checks
- Health check now only verifies server connection on port 5432
- Fixes false positive failures when PostgreSQL is running but specific database has issues
- PostgreSQL logs showed 'database system is ready' but health check was failing
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-02-05 21:55:47 -03:00
parent de3e5c4fec
commit 07ff7a6297

View file

@ -460,7 +460,7 @@ impl BootstrapManager {
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
let status = SafeCommand::new("pg_isready")
.and_then(|c| {
c.args(&["-h", "localhost", "-p", "5432", "-d", "postgres"])
c.args(&["-h", "localhost", "-p", "5432"])
})
.ok()
.and_then(|cmd| cmd.execute().ok())
@ -506,7 +506,7 @@ impl BootstrapManager {
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
let status = SafeCommand::new("pg_isready")
.and_then(|c| {
c.args(&["-h", "localhost", "-p", "5432", "-d", "postgres"])
c.args(&["-h", "localhost", "-p", "5432"])
})
.ok()
.and_then(|cmd| cmd.execute().ok())