I have encountered a recurring issue with MariaDB 11.5.1 where the InnoDB storage engine fails to initialize due to a "Missing FILE_CHECKPOINT" error. This issue arises consistently after importing data into a freshly created database and then attempting to restart the MariaDB server.
*Steps to Reproduce:*
1. Install MariaDB 11.5.1.
2. Initialize a new, empty database.
3. Import data into the database.
4. Restart the MariaDB server.
*Expected Behavior:*
MariaDB should restart successfully without any errors.
*Actual Behavior:*
The server fails to restart, and the following error messages appear in the log files:
240619 11:35:26 mysqld_safe Starting mariadbd daemon with databases from /Applications/ServBay/db/mariadb/11.5
|
2024-06-19 11:35:26 0 [Note] Starting MariaDB 11.5.1-MariaDB-log source revision 65079ece42f383bdeb9b3f913a833a6f0123919d as process 32024
|
2024-06-19 11:35:26 0 [Warning] Setting lower_case_table_names=2 because file system for /Applications/ServBay/db/mariadb/11.5/ is case insensitive
|
2024-06-19 11:35:26 0 [Warning] --innodb-file-per-table is deprecated and will be removed in a future release
|
2024-06-19 11:35:26 0 [Note] InnoDB: Compressed tables use zlib 1.3.1
|
2024-06-19 11:35:26 0 [Note] InnoDB: Number of transaction pools: 1
|
2024-06-19 11:35:26 0 [Note] InnoDB: Using generic crc32 instructions
|
2024-06-19 11:35:26 0 [Note] InnoDB: Initializing buffer pool, total size = 4.000GiB, chunk size = 64.000MiB
|
2024-06-19 11:35:26 0 [Note] InnoDB: Completed initialization of buffer pool
|
2024-06-19 11:35:26 0 [Note] InnoDB: End of log at LSN=47733
|
2024-06-19 11:35:26 0 [Note] InnoDB: Opened 3 undo tablespaces
|
2024-06-19 11:35:26 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
|
2024-06-19 11:35:26 0 [Note] InnoDB: Setting file '/Applications/ServBay/db/mariadb/11.5/ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
|
2024-06-19 11:35:26 0 [Note] InnoDB: File '/Applications/ServBay/db/mariadb/11.5/ibtmp1' size is now 12.000MiB.
|
2024-06-19 11:35:26 0 [Note] InnoDB: log sequence number 47733; transaction id 14
|
2024-06-19 11:35:26 0 [Note] InnoDB: Loading buffer pool(s) from /Applications/ServBay/db/mariadb/11.5/ib_buffer_pool
|
2024-06-19 11:35:26 0 [Note] Plugin 'FEEDBACK' is disabled.
|
2024-06-19 11:35:26 0 [Note] Plugin 'wsrep-provider' is disabled.
|
2024-06-19 11:35:26 0 [Note] InnoDB: Buffer pool(s) load completed at 240619 11:35:26
|
2024-06-19 11:35:27 0 [Note] Server socket created on IP: '::1'.
|
2024-06-19 11:35:27 0 [Note] Server socket created on IP: '127.0.0.1'.
|
2024-06-19 11:35:27 0 [Note] Server socket created on IP: '::'.
|
2024-06-19 11:35:27 0 [Note] Server socket created on IP: '0.0.0.0'.
|
2024-06-19 11:35:27 0 [Note] mariadbd: Event Scheduler: Loaded 0 events
|
2024-06-19 11:35:27 0 [Note] /Applications/ServBay/package/mariadb/11.5/current/bin/mariadbd: ready for connections.
|
Version: '11.5.1-MariaDB-log' socket: '/Applications/ServBay/tmp/mariadb-11.5.sock' port: 3306 ServBay.dev
|
2024-06-19 11:37:01 0 [Note] /Applications/ServBay/package/mariadb/11.5/current/bin/mariadbd (initiated by: unknown): Normal shutdown
|
2024-06-19 11:37:01 0 [Note] InnoDB: FTS optimize thread exiting.
|
2024-06-19 11:37:01 0 [Note] InnoDB: Starting shutdown...
|
2024-06-19 11:37:01 0 [Note] InnoDB: Dumping buffer pool(s) to /Applications/ServBay/db/mariadb/11.5/ib_buffer_pool
|
2024-06-19 11:37:01 0 [Note] InnoDB: Buffer pool(s) dump completed at 240619 11:37:01
|
2024-06-19 11:37:01 0 [Note] InnoDB: Removed temporary tablespace data file: "/Applications/ServBay/db/mariadb/11.5/ibtmp1"
|
2024-06-19 11:37:01 0 [Note] InnoDB: Shutdown completed; log sequence number 10225990; transaction id 623
|
2024-06-19 11:37:01 0 [Note] /Applications/ServBay/package/mariadb/11.5/current/bin/mariadbd: Shutdown complete
|
|
240619 11:37:01 mysqld_safe mysqld from pid file /Applications/ServBay/tmp/mariadb-11.5.pid ended
|
240619 11:37:02 mysqld_safe Starting mariadbd daemon with databases from /Applications/ServBay/db/mariadb/11.5
|
2024-06-19 11:37:02 0 [Warning] Setting lower_case_table_names=2 because file system for /Applications/ServBay/db/mariadb/11.5/ is case insensitive
|
2024-06-19 11:37:02 0 [Note] Starting MariaDB 11.5.1-MariaDB-log source revision 65079ece42f383bdeb9b3f913a833a6f0123919d as process 32351
|
2024-06-19 11:37:02 0 [Warning] --innodb-file-per-table is deprecated and will be removed in a future release
|
2024-06-19 11:37:02 0 [Note] InnoDB: Compressed tables use zlib 1.3.1
|
2024-06-19 11:37:02 0 [Note] InnoDB: Number of transaction pools: 1
|
2024-06-19 11:37:02 0 [Note] InnoDB: Using generic crc32 instructions
|
2024-06-19 11:37:02 0 [Note] InnoDB: Initializing buffer pool, total size = 4.000GiB, chunk size = 64.000MiB
|
2024-06-19 11:37:02 0 [Note] InnoDB: Completed initialization of buffer pool
|
2024-06-19 11:37:02 0 [ERROR] InnoDB: Missing FILE_CHECKPOINT(10225974) at 10225974
|
2024-06-19 11:37:02 0 [ERROR] InnoDB: Log scan aborted at LSN 10225974
|
2024-06-19 11:37:02 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
|
2024-06-19 11:37:02 0 [Note] InnoDB: Starting shutdown...
|
2024-06-19 11:37:03 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
|
2024-06-19 11:37:03 0 [Note] Plugin 'FEEDBACK' is disabled.
|
2024-06-19 11:37:03 0 [Note] Plugin 'wsrep-provider' is disabled.
|
2024-06-19 11:37:03 0 [ERROR] Unknown/unsupported storage engine: InnoDB
|
2024-06-19 11:37:03 0 [ERROR] Aborting
|
240619 11:37:03 mysqld_safe mysqld from pid file /Applications/ServBay/tmp/mariadb-11.5.pid ended
|
This issue has been observed consistently across multiple users and environments.
*Environment Details:*
- MariaDB version: 11.5.1
- Operating System: macOS Sonoma
*Additional Information:*
The issue does not occur when the database is empty. It only arises after data has been imported and the server is restarted. Sometimes it will also cause ib_logfile0 to be lost.
11.5.0 works fine.
*Reproducibility:*
This issue is reproducible every time following the steps outlined above.
{"report":{"fcp":1886.3999999999069,"ttfb":608,"pageVisibility":"visible","entityId":129662,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"74605e0e-0c98-44db-a11a-1d8629793c7d","navigationType":0,"readyForUser":1991.3999999999069,"redirectCount":0,"resourceLoadedEnd":2390.5,"resourceLoadedStart":620.8999999999069,"resourceTiming":[{"duration":599.2999999998137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":620.8999999999069,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":620.8999999999069,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1220.1999999997206,"responseStart":0,"secureConnectionStart":0},{"duration":599.2000000001863,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":621.2999999998137,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":621.2999999998137,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1220.5,"responseStart":0,"secureConnectionStart":0},{"duration":780.8999999999069,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":621.5,"connectEnd":621.5,"connectStart":621.5,"domainLookupEnd":621.5,"domainLookupStart":621.5,"fetchStart":621.5,"redirectEnd":0,"redirectStart":0,"requestStart":621.5,"responseEnd":1402.3999999999069,"responseStart":1402.3999999999069,"secureConnectionStart":621.5},{"duration":843.8000000002794,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":621.5999999996275,"connectEnd":621.5999999996275,"connectStart":621.5999999996275,"domainLookupEnd":621.5999999996275,"domainLookupStart":621.5999999996275,"fetchStart":621.5999999996275,"redirectEnd":0,"redirectStart":0,"requestStart":621.5999999996275,"responseEnd":1465.3999999999069,"responseStart":1465.3999999999069,"secureConnectionStart":621.5999999996275},{"duration":848.2000000001863,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":621.7999999998137,"connectEnd":621.7999999998137,"connectStart":621.7999999998137,"domainLookupEnd":621.7999999998137,"domainLookupStart":621.7999999998137,"fetchStart":621.7999999998137,"redirectEnd":0,"redirectStart":0,"requestStart":621.7999999998137,"responseEnd":1470,"responseStart":1470,"secureConnectionStart":621.7999999998137},{"duration":848.7999999998137,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":622,"connectEnd":622,"connectStart":622,"domainLookupEnd":622,"domainLookupStart":622,"fetchStart":622,"redirectEnd":0,"redirectStart":0,"requestStart":622,"responseEnd":1470.7999999998137,"responseStart":1470.7999999998137,"secureConnectionStart":622},{"duration":849.3000000002794,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":622.1999999997206,"connectEnd":622.1999999997206,"connectStart":622.1999999997206,"domainLookupEnd":622.1999999997206,"domainLookupStart":622.1999999997206,"fetchStart":622.1999999997206,"redirectEnd":0,"redirectStart":0,"requestStart":622.1999999997206,"responseEnd":1471.5,"responseStart":1471.5,"secureConnectionStart":622.1999999997206},{"duration":931.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":622.3999999999069,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":622.3999999999069,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1553.8999999999069,"responseStart":0,"secureConnectionStart":0},{"duration":850.3000000002794,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":622.5999999996275,"connectEnd":622.5999999996275,"connectStart":622.5999999996275,"domainLookupEnd":622.5999999996275,"domainLookupStart":622.5999999996275,"fetchStart":622.5999999996275,"redirectEnd":0,"redirectStart":0,"requestStart":622.5999999996275,"responseEnd":1472.8999999999069,"responseStart":1472.8999999999069,"secureConnectionStart":622.5999999996275},{"duration":931.2999999998137,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":622.7999999998137,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":622.7999999998137,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1554.0999999996275,"responseStart":0,"secureConnectionStart":0},{"duration":851.1000000000931,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":622.8999999999069,"connectEnd":622.8999999999069,"connectStart":622.8999999999069,"domainLookupEnd":622.8999999999069,"domainLookupStart":622.8999999999069,"fetchStart":622.8999999999069,"redirectEnd":0,"redirectStart":0,"requestStart":622.8999999999069,"responseEnd":1474,"responseStart":1474,"secureConnectionStart":622.8999999999069},{"duration":1720.6000000000931,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":631.7999999998137,"connectEnd":631.7999999998137,"connectStart":631.7999999998137,"domainLookupEnd":631.7999999998137,"domainLookupStart":631.7999999998137,"fetchStart":631.7999999998137,"redirectEnd":0,"redirectStart":0,"requestStart":631.7999999998137,"responseEnd":2352.399999999907,"responseStart":2352.399999999907,"secureConnectionStart":631.7999999998137},{"duration":1758.6000000000931,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":631.8999999999069,"connectEnd":631.8999999999069,"connectStart":631.8999999999069,"domainLookupEnd":631.8999999999069,"domainLookupStart":631.8999999999069,"fetchStart":631.8999999999069,"redirectEnd":0,"redirectStart":0,"requestStart":631.8999999999069,"responseEnd":2390.5,"responseStart":2390.5,"secureConnectionStart":631.8999999999069},{"duration":359.39999999990687,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1565.7999999998137,"connectEnd":1565.7999999998137,"connectStart":1565.7999999998137,"domainLookupEnd":1565.7999999998137,"domainLookupStart":1565.7999999998137,"fetchStart":1565.7999999998137,"redirectEnd":0,"redirectStart":0,"requestStart":1565.7999999998137,"responseEnd":1925.1999999997206,"responseStart":1925.1999999997206,"secureConnectionStart":1565.7999999998137},{"duration":624.6000000000931,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1875.7999999998137,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1875.7999999998137,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2500.399999999907,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":413,"responseStart":608,"responseEnd":627,"domLoading":619,"domInteractive":2434,"domContentLoadedEventStart":2434,"domContentLoadedEventEnd":2494,"domComplete":3190,"loadEventStart":3190,"loadEventEnd":3191,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2409.6999999997206},{"name":"bigPipe.sidebar-id.end","time":2410.5999999996275},{"name":"bigPipe.activity-panel-pipe-id.start","time":2410.6999999997206},{"name":"bigPipe.activity-panel-pipe-id.end","time":2412.2999999998137},{"name":"activityTabFullyLoaded","time":2516.5999999996275}],"measures":[],"correlationId":"15fcc98db0d12","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":125,"dbReadsTimeInMs":22,"dbConnsTimeInMs":31,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I recovered my data using innodb_force_recovery as well (dumped and then restored to a fresh DB) and later found that all my foreign key contraints were gone.