• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Broken table dns_recs: Corrupt

cokesaeba

New Pleskian
Server operating system version
Ubuntu 22.04.5 LTS
Plesk version and microupdate number
Plesk Obsidian v18.0.67_build1800250217.08
Hi, I am currently having a problem with the dns-recs database. I can not repair from the plesk panel and I can not renew or create new ssl certificates for the domains that I install on the server. I can't upgrade to the new version of plesk. I copy the failures that tells me the server itself:

Broken table dns_recs: Corrupt
Cannot repair InnoDB tables. Use the following KB article:https://support.plesk.com/hc/articles/12377798484375 or restoredaily dumps stored in /var/lib/psa/dumps


Hopefully someone has the solution more “simple”, thanks in advance, since I do not clarify much with the instructions that tells me on that page and I do not know how to recover the backups indicated.
 
error when trying to upgrade plesk

Check the reason for the error (see log file: /var/log/plesk/install/plesk_18.0.68_installation.log), correct it and try again
mysqldump: Error 1034: The index of table `dns_recs` is corrupt; try to fix it by dumping table `dns_recs` in row: 0
 
error trying to assign the ssl certificate for a new domain

Error: Could not retrieve subscription plan-items: DB query failed: SQLSTATE[HY000]: General error: 1712 Index dns_recs is corrupted, query was: SELECT `dns_recs`.* FROM `dns_recs` WHERE (`dns_zone_id` = 1)
 
You need to recreate the broken index from dns_recs.
You can run the following queries to rebuild the indexes:
SQL:
ALTER TABLE `psa`.`dns_recs` DROP PRIMARY KEY, ADD PRIMARY KEY (`id`) USING BTREE;
ALTER TABLE `psa`.`dns_recs` DROP INDEX `dns_zone_id`, ADD INDEX `dns_zone_id` (`dns_zone_id`) USING BTREE;
ALTER TABLE `psa`.`dns_recs` DROP INDEX `type`, ADD INDEX `type` (`type`) USING BTREE;
ALTER TABLE `psa`.`dns_recs` DROP INDEX `host`, ADD INDEX `host` (`host`) USING BTREE;
 
Thank you very much for your help. I have tried to enter the commands you indicated but I get the above error.
 
Were the indexes removed? What happens if you run the queries again?
Did the MariaDB service restart after the above mentioned error?
 
I have tried to enter again the sql codes you mentioned, in the sql query of the dns_recs table in phpmyadmin.

With mariadb stopped it gives this error

error in procesing code, error code 500, error text, error (rejected)

I have restarted mariab and I get the error I mentioned before

Error

SQL query: Copy

ALTER TABLE `psa`.`dns_recs` DROP PRIMARY KEY, ADD PRIMARY KEY (`id`) USING BTREE;

MySQL said: Documentation
#1030 - Got error 106 “Transport endpoint is already connected” from storage engine InnoDB
 
Try to run the sql queries from the CLI. Access the server via SSH, as root, and run
Code:
plesk db
Afterwards paste the sql queries to alter the indexes.
 
Back
Top