Tools
Backup Failed: Backup command returned exit code 1
This usually happens if you are using Web Help Desk 12.7.5 and below version. When trying to create a backup of the PostgreSQL database, the following error displays when clicking Backup Now in Web Help Desk Backup: Backup command returned exit code 1: pg_dump: [archiver (db)] connection to database "whd" failed: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? Backup command returned exit code 1:<br/><br/><font color='red'>pg_dump:[arhiver(db)] connection to database "whdadmin" failed" DATAL: database "whdadmin" does not exist <br/></font>
First published date
Last published date
Overview
The following error displays when clicking Backup Now in Web Help Desk Backup:
Backup command returned exit code 1: pg_dump: [archiver (db)] connection to database "whd" failed: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?
Backup command returned exit code 1:<br/><br/><font color='red'>pg_dump:[arhiver(db)] connection to database "whdadmin" failed" DATAL: database "whdadmin" does not exist <br/></font>
Product section
Cause
Resolution
- Verify if the database is running on PostgreSQL Embedded.
- Check
postgresql.confiflisten_addressesandportare commented (with #). - If not, edit
postgresql.confand verify that it is commented by adding#beforelisten_addressesandport. - Check the port assigned for
whd.db.portin the.whd.propertiesfile and verify that:- If the database is external postgresql, the port is 5432.
- If the database is PostgreSQL Embedded, the port is 20293.
- Create a backup of
.whd.properties. - Stop the Web Help Desk service. Refer to Stop and start Web Help Desk.
- Edit
.whd.propertiesas per step 4 and save. - Start Web Help Desk.
- Create a backup.
If you already changed the Web Help Desk database username, change it to its default credentials.
- username: whd
- password: whd