In the official MariaDB container image, the old_mode variable - when set at the command line - behaves inconsistently with a locally-installed version of MariaDB 10.6.11 on the same machine.
In addition, the command-line argument handling is inconsistent for string-valued flags when setting them to the empty string.
Environment:
- Docker client and server: Docker Engine Community, 20.10.21
- Host: Rocky Linux 8.7 on x64
- MariaDB version: 10.6.11, installed via RPM or run inside a Docker container.
docker run --rm -e=MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 mariadb:10.6 --old-mode=""
2022-11-29 11:05:05+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.11+maria~ubu2004 started.
|
2022-11-29 11:05:05+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
|
2022-11-29 11:05:05+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.11+maria~ubu2004 started.
|
2022-11-29 11:05:05+00:00 [Note] [Entrypoint]: Initializing database files
|
ERROR: 1071 Specified key was too long; max key length is 2300 bytes
|
2022-11-29 11:05:05 0 [ERROR] Aborting
|
|
Installation of system tables failed! Examine the logs in
|
/var/lib/mysql/ for more information.
|
|
The problem could be conflicting information in an external
|
my.cnf files. You can ignore these by doing:
|
|
shell> /usr/bin/mariadb-install-db --defaults-file=~/.my.cnf
|
|
You can also try to start the mysqld daemon with:
|
|
shell> /usr/sbin/mariadbd --skip-grant-tables --general-log &
|
|
and use the command line tool /usr/bin/mariadb
|
to connect to the mysql database and look at the grant tables:
|
|
shell> /usr/bin/mysql -u root mysql
|
mysql> show tables;
|
|
Try 'mysqld --help' if you have problems with paths. Using
|
--general-log gives you a log in /var/lib/mysql/ that may be helpful.
|
|
The latest information about mysql_install_db is available at
|
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
|
You can find the latest source at https://downloads.mariadb.org and
|
the maria-discuss email list at https://launchpad.net/~maria-discuss
|
|
Please check all of the above before submitting a bug report
|
at https://mariadb.org/jira
|
docker run --rm -e=MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 mariadb:10.6 --old-mode ""
2022-11-29 11:06:50+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.11+maria~ubu2004 started.
|
2022-11-29 11:06:50+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
|
2022-11-29 11:06:50+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.11+maria~ubu2004 started.
|
2022-11-29 11:06:50+00:00 [Note] [Entrypoint]: Initializing database files
|
2022-11-29 11:06:50 0 [ERROR] /usr/sbin/mariadbd: Error while setting value '--default-time-zone=SYSTEM' to 'old_mode'
|
|
Installation of system tables failed! Examine the logs in
|
/var/lib/mysql/ for more information.
|
[...]
|
Despite the message given, no logs are left in /var/lib/mysql/ inside the container.
The behaviour changes when the /var/lib/mysql directory is set as a mount inside the container. The first run fails with the "2300 bytes" error, while the second run with the same volume mounted succeeds. (e.g. docker run --mount=type=volume,source=mariadb-test,destination=/var/lib/mysql --rm -e=MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=1 mariadb:10.6 --old-mode="")
- relates to
-
MDEV-28915
mysql_upgrade fails due to old_mode="", with "Cannot load from mysql.proc. The table is probably corrupted"
-
-
Closed
{"report":{"fcp":1037,"ttfb":218.60000014305115,"pageVisibility":"visible","entityId":117306,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"231b5425-d15f-4e75-a07f-180fe1027905","navigationType":0,"readyForUser":1109.2000000476837,"redirectCount":0,"resourceLoadedEnd":1007.4000000953674,"resourceLoadedStart":223.79999995231628,"resourceTiming":[{"duration":55.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":223.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":223.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":278.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":55.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":224.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":224.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":279.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":332.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":224.29999995231628,"connectEnd":224.29999995231628,"connectStart":224.29999995231628,"domainLookupEnd":224.29999995231628,"domainLookupStart":224.29999995231628,"fetchStart":224.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":224.29999995231628,"responseEnd":556.7999999523163,"responseStart":556.7999999523163,"secureConnectionStart":224.29999995231628},{"duration":405.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":224.5,"connectEnd":224.5,"connectStart":224.5,"domainLookupEnd":224.5,"domainLookupStart":224.5,"fetchStart":224.5,"redirectEnd":0,"redirectStart":0,"requestStart":224.5,"responseEnd":629.9000000953674,"responseStart":629.9000000953674,"secureConnectionStart":224.5},{"duration":409.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":224.60000014305115,"connectEnd":224.60000014305115,"connectStart":224.60000014305115,"domainLookupEnd":224.60000014305115,"domainLookupStart":224.60000014305115,"fetchStart":224.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":224.60000014305115,"responseEnd":633.9000000953674,"responseStart":633.9000000953674,"secureConnectionStart":224.60000014305115},{"duration":409.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":224.70000004768372,"connectEnd":224.70000004768372,"connectStart":224.70000004768372,"domainLookupEnd":224.70000004768372,"domainLookupStart":224.70000004768372,"fetchStart":224.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":224.70000004768372,"responseEnd":634.4000000953674,"responseStart":634.4000000953674,"secureConnectionStart":224.70000004768372},{"duration":410,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":224.79999995231628,"connectEnd":224.79999995231628,"connectStart":224.79999995231628,"domainLookupEnd":224.79999995231628,"domainLookupStart":224.79999995231628,"fetchStart":224.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":224.79999995231628,"responseEnd":634.7999999523163,"responseStart":634.7999999523163,"secureConnectionStart":224.79999995231628},{"duration":410.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":224.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":224.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":635.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":410.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":225,"connectEnd":225,"connectStart":225,"domainLookupEnd":225,"domainLookupStart":225,"fetchStart":225,"redirectEnd":0,"redirectStart":0,"requestStart":225,"responseEnd":635.2000000476837,"responseStart":635.2000000476837,"secureConnectionStart":225},{"duration":410.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":225.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":225.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":635.6000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":410.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":225.20000004768372,"connectEnd":225.20000004768372,"connectStart":225.20000004768372,"domainLookupEnd":225.20000004768372,"domainLookupStart":225.20000004768372,"fetchStart":225.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":225.20000004768372,"responseEnd":635.7999999523163,"responseStart":635.7999999523163,"secureConnectionStart":225.20000004768372},{"duration":775.1000001430511,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":231.79999995231628,"connectEnd":231.79999995231628,"connectStart":231.79999995231628,"domainLookupEnd":231.79999995231628,"domainLookupStart":231.79999995231628,"fetchStart":231.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":231.79999995231628,"responseEnd":1006.9000000953674,"responseStart":1006.9000000953674,"secureConnectionStart":231.79999995231628},{"duration":773,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":234.40000009536743,"connectEnd":234.40000009536743,"connectStart":234.40000009536743,"domainLookupEnd":234.40000009536743,"domainLookupStart":234.40000009536743,"fetchStart":234.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":234.40000009536743,"responseEnd":1007.4000000953674,"responseStart":1007.4000000953674,"secureConnectionStart":234.40000009536743},{"duration":200.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":780.1000001430511,"connectEnd":780.1000001430511,"connectStart":780.1000001430511,"domainLookupEnd":780.1000001430511,"domainLookupStart":780.1000001430511,"fetchStart":780.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":780.1000001430511,"responseEnd":980.2000000476837,"responseStart":980.2000000476837,"secureConnectionStart":780.1000001430511},{"duration":163.10000014305115,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1014,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1014,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1177.1000001430511,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":93,"responseStart":219,"responseEnd":234,"domLoading":222,"domInteractive":1167,"domContentLoadedEventStart":1167,"domContentLoadedEventEnd":1202,"domComplete":1812,"loadEventStart":1812,"loadEventEnd":1814,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1147.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1148},{"name":"bigPipe.activity-panel-pipe-id.start","time":1148.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1150.7000000476837},{"name":"activityTabFullyLoaded","time":1210.7999999523163}],"measures":[],"correlationId":"946f3c2e5c6f20","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":72,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}