On Fri, Jan 27, 2017 at 2:31 PM, Ricky Schneberger <ricky(a)schneberger.se> wrote:
Hi,
Its time to move in to Ovirt 4.x.
Good luck!
But when I do the backup I got an error telling me "FATAL: Failed
notifying engine".
The command I us is "engine-backup --mode=backup
--file=engine_2.6.7.tar.gz --log=engine_2.6.7_backup.log" and the what I
got is:
"
Backing up:
Notifying engine
Notifying engine
FATAL: Failed notifying engine
"
The engine_2.6.7_backup.log says:
"
2017-01-27 12:55:20 17029: Start of engine-backup mode backup scope all
file engine_2.6.7.tar.gz
2017-01-27 12:55:20 17029: OUTPUT: Backing up:
2017-01-27 12:55:20 17029: Generating pgpass
2017-01-27 12:55:20 17029: OUTPUT: Notifying engine
2017-01-27 12:55:20 17029: pg_cmd running: psql -w -U engine -h
localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('files',
now(), 0, 'Started', 'ovirt.actnet.local',
'/root/engine_2.6.7_backup.log');
psql: FATAL: password authentication failed for user "engine"
2017-01-27 12:55:20 17029: FATAL: Failed notifying engine
2017-01-27 12:55:20 17029: OUTPUT: Notifying engine
2017-01-27 12:55:20 17029: pg_cmd running: psql -w -U engine -h
localhost -p 5432 engine -t -c SELECT LogEngineBackupEvent('files',
now(), -1, 'Failed notifying engine', 'ovirt.actnet.local',
'/root/engine_2.6.7_backup.log');
psql: FATAL: password authentication failed for user "engine"
2017-01-27 12:55:20 17029: FATAL: Failed notifying engine
"
I can connect to the database with user"engine" and the password found
in the file "10-setup-database.conf".
What happens when you run the following:
PGPASS="$(mktemp)"
. /usr/share/ovirt-engine/bin/engine-prolog.sh
PASSWORD="$(sed 's;\(["\$]\);\\\1;g' << __EOF__
${ENGINE_DB_PASSWORD}
__EOF__
)"
cat > "${PGPASS}" << __EOF__
${ENGINE_DB_HOST}:${ENGINE_DB_PORT}:${ENGINE_DB_DATABASE}:${ENGINE_DB_USER}:${PASSWORD}
__EOF__
PGPASSFILE="${PGPASS}" psql -h "${ENGINE_DB_HOST}" -p
"${ENGINE_DB_PORT}" -U "${ENGINE_DB_USER}" -d
"${ENGINE_DB_DATABASE}"
-c 'select 1'
rm "${PGPASS}"
Best,
--
Didi