After an upgrade from 10.4 to 10.5 (following the instructions on https://mariadb.com/kb/en/upgrading-from-mariadb-104-to-mariadb-105/), MariaDB fails to start:
2020-07-09 19:43:43 0 [Note] InnoDB: Using Linux native AIO
|
2020-07-09 19:43:43 0 [Note] InnoDB: Uses event mutexes
|
2020-07-09 19:43:43 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
|
2020-07-09 19:43:43 0 [Note] InnoDB: Number of pools: 1
|
2020-07-09 19:43:43 0 [Note] InnoDB: Using SSE4.2 crc32 instructions
|
2020-07-09 19:43:43 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
|
2020-07-09 19:43:43 0 [Note] InnoDB: Initializing buffer pool, total size = 107374182400, chunk size = 134217728
|
2020-07-09 19:43:46 0 [Note] InnoDB: Completed initialization of buffer pool
|
2020-07-09 19:43:46 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
|
2020-07-09 19:43:46 0 [ERROR] InnoDB: Upgrade after a crash is not supported. The redo log was created with MariaDB 10.4.13.
|
2020-07-09 19:43:46 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
|
2020-07-09 19:43:46 0 [Note] InnoDB: Starting shutdown...
|
2020-07-09 19:43:49 0 [ERROR] Plugin 'InnoDB' init function returned error.
|
2020-07-09 19:43:49 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
|
2020-07-09 19:43:49 0 [Note] Plugin 'FEEDBACK' is disabled.
|
2020-07-09 19:43:49 0 [ERROR] Failed to initialize plugins.
|
2020-07-09 19:43:49 0 [ERROR] Aborting
|
Output from sudo journalctl -u mariadb.service indicates a problem with max_open_files, but this seems to be just a warning:
Starting MariaDB 10.5.4 database server...
|
Jul 09 19:43:43 nose mariadbd[1527643]: 2020-07-09 19:43:43 0 [Note] /usr/sbin/mariadbd (mysqld 10.5.4-MariaDB-1:10.5.4+maria~bionic-log) starting as process 1527643 ...
|
Jul 09 19:43:43 nose mariadbd[1527643]: 2020-07-09 19:43:43 0 [Warning] Could not increase number of max_open_files to more than 16364 (request: 66099)
|
Jul 09 19:43:49 nose systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
|
Jul 09 19:43:49 nose systemd[1]: mariadb.service: Failed with result 'exit-code'.
|
Jul 09 19:43:49 nose systemd[1]: Failed to start MariaDB 10.5.4 database server.
|
Downgrading to 10.4 works.
InnoDB config:
innodb-defragment = 1
|
innodb-flush-method = O_DIRECT
|
innodb-log-file-size = 10G
|
innodb-log-buffer-size = 256M
|
innodb-read-io-threads = 16
|
innodb-write-io-threads = 16
|
innodb-flush-log-at-trx-commit = 2
|
innodb-flush-neighbors = 0
|
innodb-file-per-table = 1
|
innodb-buffer-pool-size = 100G
|
innodb-compression-algorithm = zlib
|
How can get further insight into the problem with InnoDB initialization?
{"report":{"fcp":1051.0999999046326,"ttfb":305.90000009536743,"pageVisibility":"visible","entityId":89374,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"fccf102b-9c89-42dd-aecc-d88ef9e9a823","navigationType":0,"readyForUser":1149.6999998092651,"redirectCount":0,"resourceLoadedEnd":723.6999998092651,"resourceLoadedStart":311.40000009536743,"resourceTiming":[{"duration":27,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":311.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":311.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":338.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":27.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":311.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":311.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":339.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":252.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":311.90000009536743,"connectEnd":311.90000009536743,"connectStart":311.90000009536743,"domainLookupEnd":311.90000009536743,"domainLookupStart":311.90000009536743,"fetchStart":311.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":345.7999997138977,"responseEnd":564.2999997138977,"responseStart":376,"secureConnectionStart":311.90000009536743},{"duration":411.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":312.09999990463257,"connectEnd":312.09999990463257,"connectStart":312.09999990463257,"domainLookupEnd":312.09999990463257,"domainLookupStart":312.09999990463257,"fetchStart":312.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":345.5,"responseEnd":723.6999998092651,"responseStart":374.59999990463257,"secureConnectionStart":312.09999990463257},{"duration":68.80000019073486,"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":312.2999997138977,"connectEnd":312.2999997138977,"connectStart":312.2999997138977,"domainLookupEnd":312.2999997138977,"domainLookupStart":312.2999997138977,"fetchStart":312.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":346.09999990463257,"responseEnd":381.09999990463257,"responseStart":375.19999980926514,"secureConnectionStart":312.2999997138977},{"duration":92.5,"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":312.5,"connectEnd":312.5,"connectStart":312.5,"domainLookupEnd":312.5,"domainLookupStart":312.5,"fetchStart":312.5,"redirectEnd":0,"redirectStart":0,"requestStart":371.5,"responseEnd":405,"responseStart":400.2999997138977,"secureConnectionStart":312.5},{"duration":95.69999980926514,"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":312.59999990463257,"connectEnd":312.59999990463257,"connectStart":312.59999990463257,"domainLookupEnd":312.59999990463257,"domainLookupStart":312.59999990463257,"fetchStart":312.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":371.90000009536743,"responseEnd":408.2999997138977,"responseStart":401.69999980926514,"secureConnectionStart":312.59999990463257},{"duration":49.09999990463257,"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":312.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":312.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":362,"responseStart":0,"secureConnectionStart":0},{"duration":96.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":313,"connectEnd":313,"connectStart":313,"domainLookupEnd":313,"domainLookupStart":313,"fetchStart":313,"redirectEnd":0,"redirectStart":0,"requestStart":373.69999980926514,"responseEnd":409.5,"responseStart":403.40000009536743,"secureConnectionStart":313},{"duration":49.30000019073486,"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":313.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":313.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":362.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":97.69999980926514,"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":313.40000009536743,"connectEnd":313.40000009536743,"connectStart":313.40000009536743,"domainLookupEnd":313.40000009536743,"domainLookupStart":313.40000009536743,"fetchStart":313.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":373.7999997138977,"responseEnd":411.09999990463257,"responseStart":405.19999980926514,"secureConnectionStart":313.40000009536743},{"duration":382.69999980926514,"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":319.5,"connectEnd":319.5,"connectStart":319.5,"domainLookupEnd":319.5,"domainLookupStart":319.5,"fetchStart":319.5,"redirectEnd":0,"redirectStart":0,"requestStart":398,"responseEnd":702.1999998092651,"responseStart":694.5,"secureConnectionStart":319.5},{"duration":385.40000009536743,"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":319.5,"connectEnd":319.5,"connectStart":319.5,"domainLookupEnd":319.5,"domainLookupStart":319.5,"fetchStart":319.5,"redirectEnd":0,"redirectStart":0,"requestStart":563.5999999046326,"responseEnd":704.9000000953674,"responseStart":699.6999998092651,"secureConnectionStart":319.5},{"duration":237.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":749.5,"connectEnd":749.5,"connectStart":749.5,"domainLookupEnd":749.5,"domainLookupStart":749.5,"fetchStart":749.5,"redirectEnd":0,"redirectStart":0,"requestStart":946.5999999046326,"responseEnd":986.9000000953674,"responseStart":985.7999997138977,"secureConnectionStart":749.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":81,"responseStart":306,"responseEnd":319,"domLoading":309,"domInteractive":1231,"domContentLoadedEventStart":1231,"domContentLoadedEventEnd":1296,"domComplete":2331,"loadEventStart":2331,"loadEventEnd":2332,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1196.2999997138977},{"name":"bigPipe.sidebar-id.end","time":1197.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1197.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1200.1999998092651},{"name":"activityTabFullyLoaded","time":1313.0999999046326}],"measures":[],"correlationId":"62bc559691162e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":114,"dbReadsTimeInMs":18,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I'm sorry i don't have ib_logfiles any more, and all our are instances are upgraded to 10.5, so i cannot try to reproduce it easily anymore. I solved it by changing the innodb_log_file_size settings to force a rewrite of the logfile.