• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Broken referencial integrity: Database id 15 is not found in data_bases

daanse

Regular Pleskian
Hi,
i had some trouble with Backups.

What can i do? The Log shows this Error for all the 15 Databases.
I have the Latest Plesk Version.
Server Health, Sites all fine.

Warning:
domain "x.de"
Broken referencial integrity: Database id 15 is not found in data_bases
Warning: domain "x.de"
Unable to execute SQL: Table 'psa.DatabaseCustomHosts' doesn't exist. SQL query: SELECT name, type, external_id, host FROM data_bases AS d LEFT JOIN DatabaseCustomHosts AS h ON d.id=h.id WHERE d.id = ?
Warning: domain "x.de"
Unable to execute SQL: Table 'psa.DatabaseCustomHosts' doesn't exist. SQL query: SELECT name, type, external_id, host FROM data_bases AS d LEFT JOIN DatabaseCustomHosts AS h ON d.id=h.id WHERE d.id = ?
Warning: domain "x.de"
Broken referencial integrity: Database id 14 is not found in data_bases
Warning: domain "x.de"
Unable to execute SQL: Table 'psa.DatabaseCustomHosts' doesn't exist. SQL query: SELECT name, type, external_id, host FROM data_bases AS d LEFT JOIN DatabaseCustomHosts AS h ON d.id=h.id WHERE d.id = ?
 
Looks like serious database inconsistency. You can try to fix it with repair utility before starting backup process:

# plesk repair db

Contact Plesk Support Team if this procedure not help. Fixing database directly on your server is required.
 
Hello,

thx for this command. It recreates the table and the backup finishes without error. But the table is empty. I would like to know if this is okay.
 
Will this #plesk repair db affect a running System with Customers on it?
Can i run plesk repair db without any concerns?
 
Will this #plesk repair db affect a running System with Customers on it?
Can i run plesk repair db without any concerns?
Using the Plesk repair utility with the db aspect checks the Plesk database for consistency using both system and Plesk-specific tools. If any inconsistencies are found, the repair utility creates a dump of the database, and then attempts to correct them.
 
Daka Media KG: I run it with no Problems. The recreation of the table works with no Problems (at least until now).

IgorG: Is it normal that the table is just empty and the mentioned SELECT Returns an empty result set? I only have databases hosted on localhost.
 
Yeah, I got this too, after migrating from Ubuntu 12.04.5 + Plesk 12.0.18 #75 to Ubuntu 14.04.3 + Plesk 12.5.30 #21 yesterday, the first backup gave me this error.

# plesk repair db

fixed it.
I will start another thread with some of the other issues I encountered, when i get a minute.
Regards

Lloyd
 
Back
Top