pg_dump: Error message from server: ERROR: cache lookup fai
Posted: Sat Apr 06, 2013 1:28 pm
We have Nagios XI 2012R1.6
and we are tryingto backup nagios and we are getting this error message.
We tried today to backup nagios an still the same error message:
Our version is: Nagios XI 2012R1.6
the last event we had in March 22nd 2013, was precisely a problem with
and we are tryingto backup nagios and we are getting this error message.
Code: Select all
[root@nagioscwp 1365271728]# /usr/local/nagiosxi/scripts/backup_xi.sh
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/ndo.sock: socket ignored
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up PostgresQL databases...
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: cache lookup failed for index 16462
pg_dump: The command was: SELECT t.tableoid, t.oid, t.relname as indexname, pg_catalog.pg_get_indexdef(i.indexrelid) as indexdef, t.relnatts as indnkeys, i.indkey, i.indisclustered, c.contype, c.conname, c.tableoid as contableoid, c.oid as conoid, (SELECT spcname FROM pg_catalog.pg_tablespace s WHERE s.oid = t.reltablespace) as tablespace FROM pg_catalog.pg_index i JOIN pg_catalog.pg_class t ON (t.oid = i.indexrelid) LEFT JOIN pg_catalog.pg_depend d ON (d.classid = t.tableoid AND d.objid = t.oid AND d.deptype = 'i') LEFT JOIN pg_catalog.pg_constraint c ON (d.refclassid = c.tableoid AND d.refobjid = c.oid) WHERE i.indrelid = '16400'::pg_catalog.oid ORDER BY indexname
Error backing up PostgresQL database 'nagiosxi' !
[root@nagioscwp 1365271728]#Our version is: Nagios XI 2012R1.6
the last event we had in March 22nd 2013, was precisely a problem with
Code: Select all
“[Fri Mar 22 08:09:22 2013] [error] [client 172.18.92.33] PHP Warning: pg_pconnect() [<a href='function.pg-pconnect'>function.pg-pconnect</a>]: Unable to connect to PostgreSQL server: FATAL: database is not accepting commands to avoid wraparound data loss in database "postgres"\nHINT: Stop the postmaster and use a standalone backend to vacuum database …”Code: Select all
[root@nagioscwp ~]# /usr/local/nagiosxi/scripts/backup_xi.sh
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/ndo.sock: socket ignored
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up PostgresQL databases...
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: cache lookup failed for index 16462
pg_dump: The command was: SELECT t.tableoid, t.oid, t.relname as indexname, pg_c
atalog.pg_get_indexdef(i.indexrelid) as indexdef, t.relnatts as indnkeys, i.indk
ey, i.indisclustered, c.contype, c.conname, c.tableoid as contableoid, c.oid as
conoid, (SELECT spcname FROM pg_catalog.pg_tablespace s WHERE s.oid = t.reltable
space) as tablespace FROM pg_catalog.pg_index i JOIN pg_catalog.pg_class t ON (t
.oid = i.indexrelid) LEFT JOIN pg_catalog.pg_depend d ON (d.classid = t.tableoid
AND d.objid = t.oid AND d.deptype = 'i') LEFT JOIN pg_catalog.pg_constraint c O
N (d.refclassid = c.tableoid AND d.refobjid = c.oid) WHERE i.indrelid = '16400':
:pg_catalog.oid ORDER BY indexname
Error backing up PostgresQL database 'nagiosxi' !