Description of problem: engine-cleanup fails in case running on clean machine or when db is not initialized. Job failed. See system logs and 'systemctl status' for details. 2012-01-11 15:27:34::DEBUG::common_utils::228::root:: retcode = 1 2012-01-11 15:27:34::ERROR::engine-cleanup::295::root:: Traceback (most recent call last): File "/usr/bin/engine-cleanup", line 291, in runFunc funcs() File "/usr/bin/engine-cleanup", line 277, in restartPostgresql postgresql.start(True) File "/usr/share/ovirt-engine/scripts/common_utils.py", line 559, in start raise Exception(output_messages.ERR_FAILED_START_SERVICE % self.serviceName) Exception: Error: Can't start the postgresql service 2012-01-11 15:27:34::DEBUG::engine-cleanup::218::root:: DB Backup started 2012-01-11 15:27:34::DEBUG::common_utils::219::root:: Executing command --> '/usr/bin/pg_dump -C -E UTF8 --column-inserts --disable-dollar-quoting --disable-triggers -U postgres --format=p -f /usr/share/ovirt-engine/db-backups/tmp7KaI_5.sql engine' 2012-01-11 15:27:34::DEBUG::common_utils::226::root:: output = 2012-01-11 15:27:34::DEBUG::common_utils::227::root:: stderr = pg_dump: [archiver (db)] connection to database "engine" failed: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? 2012-01-11 15:27:34::DEBUG::common_utils::228::root:: retcode = 1 2012-01-11 15:27:34::ERROR::engine-cleanup::295::root:: Traceback (most recent call last): File "/usr/bin/engine-cleanup", line 289, in runFunc funcName() File "/usr/bin/engine-cleanup", line 221, in backup output, rc = utils.execCmd(cmd, None, True, MSG_ERROR_BACKUP_DB, []) File "/usr/share/ovirt-engine/scripts/common_utils.py", line 231, in execCmd raise Exception(msg) Exception: Error: Database backup failed 2012-01-11 15:27:34::DEBUG::engine-cleanup::169::root:: CA backup started 2012-01-11 15:27:34::DEBUG::engine-cleanup::176::root:: Copy /etc/pki/ovirt-engine to /etc/pki/engine-backups/ovirt-engine-2012_01_11_15_27_34 2012-01-11 15:27:34::DEBUG::engine-cleanup::179::root:: CA backup completed successfully 2012-01-11 15:27:34::DEBUG::engine-cleanup::182::root:: CA Remove started 2012-01-11 15:27:34::DEBUG::engine-cleanup::189::root:: /etc/pki/ovirt-engine/.truststore doesn't exists 2012-01-11 15:27:34::DEBUG::engine-cleanup::196::root:: /etc/pki/ovirt-engine/.keystore doesn't exists 2012-01-11 15:27:34::DEBUG::engine-cleanup::198::root:: CA Remove completed successfully 2012-01-11 15:27:34::INFO::engine-cleanup::301::root:: Error: Can't start the postgresql service 2012-01-11 15:27:34::INFO::engine-cleanup::301::root:: Error: Database backup faile
Fixed in patch for https://bugzilla.redhat.com/show_bug.cgi?id=782176 *** This bug has been marked as a duplicate of bug 782176 ***