Backup fails due to pg_dump error. PostgreSQL is running on nonstandard port, and the port is correctly specified in webmin postgresql config page.
Steps to reproduce:
Install Odoo 8 (Python/PostgreSQL). Change PostgreSQL port from standard 5432 to 5433 as in the standard Odoo 8 install steps. Note, Odoo uses PostgreSQL on port 5433 this to avoid possibly conflicting with an already running postgresql running on the server standard port 5432. Similar to running Apache to listen on a different port.
Create the Vmin virtual subserver by Importing the Odoo 8 directory via the Virtualmin web console.
Specify nonstandard port 5433 in the webmin postgresql module "PostgreSQL port to connect to".
Add the postgresql database manually to the vmin subserver so that it'll be part of the backup data. Virtualmin gives success message because it detects the PostgreSQL server and database
Create a backup job by using the Vmin web console. Daily full backup of all virtual servers and all data, save to remote FTP server.
Let Vmin run the backup job at the scheduled time.
Return and look at backup log.
Backup has failed !?
It seems Virtualmin is failing to pass the nonstandard port parameter to the pg_dump script.
Exact error message:
Dumping PostgresSQL database xxxx .. .. dump failed! pg_dump: [archiver (db)] connection to database "xxxx" failed: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?