How to handle Privateark Database crashes and fail to start issues
121
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:02 PM
Symptom
The Privateark Database cannot be repaired or restored on its own, in the event of corruption the vault must be rebuilt from the OS up. Because of this these issues must be handled with extreme care.
The first major point is if the database service is not starting is to not continue to try starting the database. Repeated attempts to start the database can cause further issues.
There are two other major points
1) The MySQL database is configured to recover from crashes
2) Most database crashes are related to disk corruption
The database can recover on its own but because the common source of database corruption is disk corruption the database may recover and fail again or fail to recover due to disk corruption
With all services down (on both nodes if in an HA configuration) run "chkdsk /F /R" against the vault drives. If an issue is found and repaired attempt to start the database service.
Messages in the vaultdb.log that show the database is attempting to recover:
InnoDB: Doing recovery: scanned up to log sequence number 756216474 InnoDB: Progress in percent: 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
Message that recovery has failed
2019-08-12 16:48:58 fc8 InnoDB: Assertion failure in thread 4040 in file fsp0fsp.cc line 3448 InnoDB: We intentionally generate a memory trap. InnoDB: Submit a detailed bug report to http://bugs.mysql.com. InnoDB: If you get repeated assertion failures or crashes, even InnoDB: immediately after the mysqld startup, there may be InnoDB: corruption in the InnoDB tablespace. Please refer to InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html InnoDB: about forcing recovery.
Environment
v7.2;v7.5;v7.6;v8.0;v8.0 Beta;8.1;v8.2;v8.5;v8.6;v9.0;v9.1;v9.2;9.3;9.5;9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10