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":893.3999999761581,"ttfb":194.5,"pageVisibility":"visible","entityId":101798,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"5b05ed8e-5b39-47fa-a645-d250cd390fb0","navigationType":0,"readyForUser":964.2000000476837,"redirectCount":0,"resourceLoadedEnd":637.2000000476837,"resourceLoadedStart":199.5,"resourceTiming":[{"duration":6.600000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":199.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":199.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":206.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":6.600000023841858,"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":199.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":199.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":206.30000007152557,"responseStart":0,"secureConnectionStart":0},{"duration":287.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":199.89999997615814,"connectEnd":199.89999997615814,"connectStart":199.89999997615814,"domainLookupEnd":199.89999997615814,"domainLookupStart":199.89999997615814,"fetchStart":199.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":211.80000007152557,"responseEnd":487.8000000715256,"responseStart":297.10000002384186,"secureConnectionStart":199.89999997615814},{"duration":437.2000000476837,"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":200,"connectEnd":200,"connectStart":200,"domainLookupEnd":200,"domainLookupStart":200,"fetchStart":200,"redirectEnd":0,"redirectStart":0,"requestStart":213,"responseEnd":637.2000000476837,"responseStart":300.10000002384186,"secureConnectionStart":200},{"duration":11.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":200.10000002384186,"connectEnd":200.10000002384186,"connectStart":200.10000002384186,"domainLookupEnd":200.10000002384186,"domainLookupStart":200.10000002384186,"fetchStart":200.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":200.10000002384186,"responseEnd":211.60000002384186,"responseStart":211.60000002384186,"secureConnectionStart":200.10000002384186},{"duration":12.199999928474426,"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":200.20000004768372,"connectEnd":200.20000004768372,"connectStart":200.20000004768372,"domainLookupEnd":200.20000004768372,"domainLookupStart":200.20000004768372,"fetchStart":200.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":200.20000004768372,"responseEnd":212.39999997615814,"responseStart":212.39999997615814,"secureConnectionStart":200.20000004768372},{"duration":16.09999990463257,"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":200.30000007152557,"connectEnd":200.30000007152557,"connectStart":200.30000007152557,"domainLookupEnd":200.30000007152557,"domainLookupStart":200.30000007152557,"fetchStart":200.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":200.30000007152557,"responseEnd":216.39999997615814,"responseStart":216.39999997615814,"secureConnectionStart":200.30000007152557},{"duration":18.200000047683716,"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":200.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":200.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":218.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":73.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":200.5,"connectEnd":200.5,"connectStart":200.5,"domainLookupEnd":200.5,"domainLookupStart":200.5,"fetchStart":200.5,"redirectEnd":0,"redirectStart":0,"requestStart":221.80000007152557,"responseEnd":273.60000002384186,"responseStart":272.5,"secureConnectionStart":200.5},{"duration":20.600000023841858,"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":200.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":200.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":221.30000007152557,"responseStart":0,"secureConnectionStart":0},{"duration":98.69999992847443,"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":200.70000004768372,"connectEnd":200.70000004768372,"connectStart":200.70000004768372,"domainLookupEnd":200.70000004768372,"domainLookupStart":200.70000004768372,"fetchStart":200.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":225.80000007152557,"responseEnd":299.39999997615814,"responseStart":277.5,"secureConnectionStart":200.70000004768372},{"duration":53.300000071525574,"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":206.5,"connectEnd":206.5,"connectStart":206.5,"domainLookupEnd":206.5,"domainLookupStart":206.5,"fetchStart":206.5,"redirectEnd":0,"redirectStart":0,"requestStart":206.5,"responseEnd":259.8000000715256,"responseStart":259.8000000715256,"secureConnectionStart":206.5},{"duration":56.799999952316284,"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":206.60000002384186,"connectEnd":206.60000002384186,"connectStart":206.60000002384186,"domainLookupEnd":206.60000002384186,"domainLookupStart":206.60000002384186,"fetchStart":206.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":206.60000002384186,"responseEnd":263.39999997615814,"responseStart":263.39999997615814,"secureConnectionStart":206.60000002384186},{"duration":127.69999992847443,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":630.3000000715256,"connectEnd":630.3000000715256,"connectStart":630.3000000715256,"domainLookupEnd":630.3000000715256,"domainLookupStart":630.3000000715256,"fetchStart":630.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":729.1000000238419,"responseEnd":758,"responseStart":757.3000000715256,"secureConnectionStart":630.3000000715256},{"duration":152.10000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":850.8999999761581,"connectEnd":850.8999999761581,"connectStart":850.8999999761581,"domainLookupEnd":850.8999999761581,"domainLookupStart":850.8999999761581,"fetchStart":850.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":972.5,"responseEnd":1003,"responseStart":1002.3000000715256,"secureConnectionStart":850.8999999761581},{"duration":87.10000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":886.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":886.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":973.8000000715256,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":13,"responseStart":194,"responseEnd":205,"domLoading":198,"domInteractive":1057,"domContentLoadedEventStart":1057,"domContentLoadedEventEnd":1105,"domComplete":1574,"loadEventStart":1574,"loadEventEnd":1574,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1031.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1031.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":1032.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1033.5},{"name":"activityTabFullyLoaded","time":1123.5}],"measures":[],"correlationId":"a93419c1bbb16f","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
cvicentiu I tried but it just said that it doesn't fit in to regex..