When using our -systemd- binary tarballs the distributed mysqld.service systemd service file has
ProtectSystem=full
set since MDEV-10298. As this leads to everything under /usr being read-only, but the binary tarball builds having the data dir set up under /usr/local/mariadb-.../data by default.
So trying to bring the MariaDB server up using default settings, according to our instructions in
2021-08-06 10:44:49 0 [ERROR] mysqld: File '/usr/local/mariadb-10.4.18-linux-systemd-x86_64/data/aria_log_control' not found (Errcode: 30 "Read-only file system")
while starting the server manually works just fine.
So I'd suggest to add
ReadWritePaths=/usr/local/mysql/data
to the bundled mariadb.service file. As /usr/local/mysql/data is a symlink, and SystemD resolves this link to the actual data directory, this should work across all releases without requiring per-release adjustments.
A more complete fix would be to allow both the symlink and the actual versioned path, like e.g.:
Just by coincidence I ran into the same yesterday (didn't even really remember I had encountered it before, and especially not that I created this ticked), and for now updated the KB entries on tarball installation and on systemD to mention this problem and how to deal with it with a simple extra systemd service include file:
Hartmut Holzgraefe
added a comment - Just by coincidence I ran into the same yesterday (didn't even really remember I had encountered it before, and especially not that I created this ticked), and for now updated the KB entries on tarball installation and on systemD to mention this problem and how to deal with it with a simple extra systemd service include file:
https://mariadb.com/kb/en/installing-mariadb-binary-tarballs/#auto-start-of-mysqld
https://mariadb.com/kb/en/systemd/#configuring-the-data-directory
People
Daniel Black
Hartmut Holzgraefe
Votes:
0Vote for this issue
Watchers:
5Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1450.2000000476837,"ttfb":322.60000002384186,"pageVisibility":"visible","entityId":101798,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"078f81a9-c9a9-4619-aa73-6040b6654160","navigationType":0,"readyForUser":1564.2000000476837,"redirectCount":0,"resourceLoadedEnd":1613,"resourceLoadedStart":328.2999999523163,"resourceTiming":[{"duration":644.7000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":328.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":973,"responseStart":0,"secureConnectionStart":0},{"duration":644.5999999046326,"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":328.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":973.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":653.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":328.89999997615814,"connectEnd":328.89999997615814,"connectStart":328.89999997615814,"domainLookupEnd":328.89999997615814,"domainLookupStart":328.89999997615814,"fetchStart":328.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":328.89999997615814,"responseEnd":982.6000000238419,"responseStart":982.6000000238419,"secureConnectionStart":328.89999997615814},{"duration":717.6999999284744,"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":329.10000002384186,"connectEnd":329.10000002384186,"connectStart":329.10000002384186,"domainLookupEnd":329.10000002384186,"domainLookupStart":329.10000002384186,"fetchStart":329.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":329.10000002384186,"responseEnd":1046.7999999523163,"responseStart":1046.7000000476837,"secureConnectionStart":329.10000002384186},{"duration":721.5,"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":329.2000000476837,"connectEnd":329.2000000476837,"connectStart":329.2000000476837,"domainLookupEnd":329.2000000476837,"domainLookupStart":329.2000000476837,"fetchStart":329.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":329.2000000476837,"responseEnd":1050.7000000476837,"responseStart":1050.7000000476837,"secureConnectionStart":329.2000000476837},{"duration":721.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":329.39999997615814,"connectEnd":329.39999997615814,"connectStart":329.39999997615814,"domainLookupEnd":329.39999997615814,"domainLookupStart":329.39999997615814,"fetchStart":329.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":329.39999997615814,"responseEnd":1051.1000000238419,"responseStart":1051.1000000238419,"secureConnectionStart":329.39999997615814},{"duration":721.8999999761581,"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":329.60000002384186,"connectEnd":329.60000002384186,"connectStart":329.60000002384186,"domainLookupEnd":329.60000002384186,"domainLookupStart":329.60000002384186,"fetchStart":329.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":329.60000002384186,"responseEnd":1051.5,"responseStart":1051.5,"secureConnectionStart":329.60000002384186},{"duration":798.0999999046326,"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":329.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":329.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1127.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":722.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":329.89999997615814,"connectEnd":329.89999997615814,"connectStart":329.89999997615814,"domainLookupEnd":329.89999997615814,"domainLookupStart":329.89999997615814,"fetchStart":329.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":329.89999997615814,"responseEnd":1052.1000000238419,"responseStart":1052.1000000238419,"secureConnectionStart":329.89999997615814},{"duration":797.8999999761581,"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":330,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":330,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1127.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":722.5,"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":330.2000000476837,"connectEnd":330.2000000476837,"connectStart":330.2000000476837,"domainLookupEnd":330.2000000476837,"domainLookupStart":330.2000000476837,"fetchStart":330.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":330.2000000476837,"responseEnd":1052.7000000476837,"responseStart":1052.7000000476837,"secureConnectionStart":330.2000000476837},{"duration":908.5,"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":331.10000002384186,"connectEnd":331.10000002384186,"connectStart":331.10000002384186,"domainLookupEnd":331.10000002384186,"domainLookupStart":331.10000002384186,"fetchStart":331.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":331.10000002384186,"responseEnd":1239.6000000238419,"responseStart":1239.6000000238419,"secureConnectionStart":331.10000002384186},{"duration":919.8999999761581,"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":331.2000000476837,"connectEnd":331.2000000476837,"connectStart":331.2000000476837,"domainLookupEnd":331.2000000476837,"domainLookupStart":331.2000000476837,"fetchStart":331.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":331.2000000476837,"responseEnd":1251.1000000238419,"responseStart":1251.1000000238419,"secureConnectionStart":331.2000000476837},{"duration":51.10000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1156.8999999761581,"connectEnd":1156.8999999761581,"connectStart":1156.8999999761581,"domainLookupEnd":1156.8999999761581,"domainLookupStart":1156.8999999761581,"fetchStart":1156.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":1156.8999999761581,"responseEnd":1208,"responseStart":1208,"secureConnectionStart":1156.8999999761581},{"duration":212.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1400.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1400.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1613,"responseStart":0,"secureConnectionStart":0},{"duration":201.80000007152557,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1401.2999999523163,"connectEnd":1401.2999999523163,"connectStart":1401.2999999523163,"domainLookupEnd":1401.2999999523163,"domainLookupStart":1401.2999999523163,"fetchStart":1401.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1401.2999999523163,"responseEnd":1603.1000000238419,"responseStart":1603.1000000238419,"secureConnectionStart":1401.2999999523163},{"duration":208.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":1401.7999999523163,"connectEnd":1401.7999999523163,"connectStart":1401.7999999523163,"domainLookupEnd":1401.7999999523163,"domainLookupStart":1401.7999999523163,"fetchStart":1401.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1401.7999999523163,"responseEnd":1610.2999999523163,"responseStart":1610.2999999523163,"secureConnectionStart":1401.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":154,"responseStart":322,"responseEnd":326,"domLoading":326,"domInteractive":1627,"domContentLoadedEventStart":1627,"domContentLoadedEventEnd":1675,"domComplete":2079,"loadEventStart":2079,"loadEventEnd":2079,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1597.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1598.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1598.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1599.8999999761581},{"name":"activityTabFullyLoaded","time":1697.3999999761581}],"measures":[],"correlationId":"cae5ab99dfd469","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":15,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
cvicentiu I tried but it just said that it doesn't fit in to regex..