Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Upgrade fails: "Failed to execute command: pg_dump"  (Read 2410 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
Upgrade fails: "Failed to execute command: pg_dump"
« on: January 25, 2014, 12:44:54 pm »
Following error occurred during PPA upgrade:

Code: [Select]
[ERROR]: Failed to execute command: pg_dump -h`hostname` -U plesk plesk > /usr/local/ppa/tmp/ppa-upgrade-db-backups/2013-12-11-16-16-46/poa-db-backup.sql
[ERROR]: See update log file /usr/local/ppa/log/ppaupdate.log for details.

The issue is caused by incorrect records in /etc/hosts file. Management Node hostname should resolve to communication IP address.

Check current hostname:
Code: [Select]
[root@ppa ~]# hostname
ppa.test.com

Check IP address which are used for access to Postgres database:
Code: [Select]
[root@ppa ~]cat /var/lib/pgsql/9.0/data/pg_hba.conf | grep plesk | awk {'print $4'}
192.168.0.1

Add the following record at the beginning of file /etc/hosts:
Code: [Select]
192.168.0.1   ppa.test.com