Describe the bug
Scheduled backups for PostgreSQL are failing because the backup command wrongly uses the username as the database name.
To Reproduce
  1. Configure PostgreSQL service with:
- Username:
ProdAdminPostGres01
- Database name:
easyflow-prod
  1. Define scheduled backup (cron) in UI.
  2. Save and check logs or wait for schedule.
Observed behavior
Logs show:
psql -U ProdAdminPostGres01 -d ProdAdminPostGres01
Which fails with:
FATAL: database "ProdAdminPostGres01" does not exist
Manual backups work correctly.
Expected behavior
Scheduled backups should use the configured database name (
easyflow-prod
), not the username.
CLI confirmation
Inside
/etc/easypanel/data/data.mdb
the variables are set correctly:
DBUSER="ProdAdminPostGres01"
DBNAME="easyflow-prod"
So the bug is in scheduler command generation.
Environment:
* EasyPanel v2.20.1
* Postgres 17.4-alpine
* Backup provider: Google Drive
Logs:
* Error from CLI:
FATAL: database "ProdAdminPostGres01" does not exist
Additional context
Automatic scheduled backups fail; manual backups succeed.
Looks like scheduler improperly binds
DBUSER
instead of
DBNAME
.
Please let me know if you need more logs or diagnostics. Thanks!