geonode icon indicating copy to clipboard operation
geonode copied to clipboard

Incorrect database user variables in wait_for_databases script

Open cesarbenjamindotnet opened this issue 9 months ago • 0 comments

The wait_for_databases script currently uses incorrect environment variables for the database users when connecting to the GeoNode databases. This could lead to authentication failures when waiting for the databases to become available.

Expected Behavior

Connect to both databases using env variables correctly

Actual Behavior

In the second and third psql commands, the username should not be the database name (GEONODE_DATABASE / GEONODE_GEODATABASE) but instead the corresponding database user (GEONODE_DATABASE_USER / GEONODE_GEODATABASE_USER).

the test for GEONODE_DATABASE it uses -U ${GEONODE_DATABASE} instead of -U ${GEONODE_DATABASE_USER} the test for GEONODE_GEODATABASE it uses -U ${GEONODE_GEODATABASE} instead of -U ${GEONODE_GEODATABASE_USER}

Steps to Reproduce the Problem

  1. make a fresh install
  2. see the logs

Specifications

  • GeoNode version: any
  • Installation type: any
  • Installation method: any
  • Platform: any

cesarbenjamindotnet avatar Apr 28 '25 09:04 cesarbenjamindotnet