When running the dbindex script on a cpanel server, or it’s being run via a cronjob, and you get the following error:
The dbindex cache file is out of date
The best way to fix this is to restore the file called “dbindex.db.json” from a recent backup.
Another way to fix this would be to move the file out of the way, IE: rename it to something else, then manually re-associate the databaess with their cPanel accounts.
This file can be found in /var/cpanel/databases