Backup fails after upgrade: cache lookup failed for index
91
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:54 PM
Symptom
When executing `evoke backup`, it causes the following error:
```
pg_dump: [archiver (db)] query failed: ERROR: cache lookup failed for index <index_id>
LINE 1: ...lue END AS min_value, cache_value, is_cycled FROM public.aut...
^
pg_dump: [archiver (db)] query was: SELECT sequence_name, start_value, increment_by, CASE WHEN increment_by > 0 AND max_value = 9223372036854775807 THEN NULL WHEN increment_by < 0 AND max_value = -1 THEN NULL ELSE max_value END AS max_value, CASE WHEN increment_by > 0 AND min_value = 1 THEN NULL WHEN increment_by < 0 AND min_value = -9223372036854775807 THEN NULL ELSE min_value END AS min_value, cache_value, is_cycled FROM public.authenticator_configs_id_seq
W, [2020-08-06T22:06:33.510426 #1741] WARN -- : command su conjur -c "pg_dump -Fc -f "/opt/conjur/backup/conjur.db" conjur" failed
```
Environment
DAP Conjur
Cause
The DAP instance was previously upgraded using the replication method. We now recommended the backup and restore method to upgrade DAP in the future.
The BDR custom build of Postgres, can in some cases generate a file for sequences that is incompatible with vanilla Postgres. This incompatible format is copied during replication to vanilla Postgres, however, the backup and restore method automatically fixes the incompatible format.
Resolution
Please create a support ticket and escalate it to R&D.