Skip to content

Console Output

15:03:32 [2025-11-14T15:03:32.505Z] + export PG_DB=****
15:03:32 [2025-11-14T15:03:32.505Z] + export PG_USER=****
15:03:32 [2025-11-14T15:03:32.505Z] + export POSTGRES_HOST=****
15:03:32 [2025-11-14T15:03:32.505Z] + export PGPASSWORD=****
15:03:32 [2025-11-14T15:03:32.506Z] + echo 🔍 Checking if PostgreSQL server is running...
15:03:32 [2025-11-14T15:03:32.506Z] 🔍 Checking if PostgreSQL server is running...
15:03:32 [2025-11-14T15:03:32.506Z] + docker exec **** pg_isready
15:03:32 [2025-11-14T15:03:32.506Z] + echo ✅ PostgreSQL server is running
15:03:32 [2025-11-14T15:03:32.506Z] ✅ PostgreSQL server is running
15:03:32 [2025-11-14T15:03:32.507Z] + echo â„šī¸  Checking if database and user already exist...
15:03:32 [2025-11-14T15:03:32.507Z] â„šī¸  Checking if database and user already exist...
15:03:32 [2025-11-14T15:03:32.507Z] + docker exec -u postgres **** psql -tAc SELECT 1 FROM pg_database WHERE datname=****
15:03:32 [2025-11-14T15:03:32.758Z] + echo 0
15:03:32 [2025-11-14T15:03:32.758Z] + DB_EXISTS=0
15:03:32 [2025-11-14T15:03:32.758Z] + [ 0 = 1 ]
15:03:32 [2025-11-14T15:03:32.759Z] + echo ❌ Database **** does not exist - it should have been created manually
15:03:32 [2025-11-14T15:03:32.759Z] ❌ Database **** does not exist - it should have been created manually
15:03:32 [2025-11-14T15:03:32.759Z] + echo â„šī¸  Run this on the PostgreSQL server:
15:03:32 [2025-11-14T15:03:32.759Z] â„šī¸  Run this on the PostgreSQL server:
15:03:32 [2025-11-14T15:03:32.759Z] + echo    python3 /path/to/create_db_user.py --username **** --password <password> --databases ****
15:03:32 [2025-11-14T15:03:32.759Z]    python3 /path/to/create_db_user.py --username **** --password <password> --databases ****
15:03:32 [2025-11-14T15:03:32.759Z] + exit 1