Currently a failed upgrade or incomplete installation, which ends up with mysqld_safe not being installed, becomes an investigation nightmare. The service attempts to start and after a timeout says that it failed:
sudo /etc/init.d/mysql start
|
[FAIL] Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
|
Syslog only contains unhelpful messages saying that something went wrong:
Sep 21 03:09:10 wheezy-64 /etc/init.d/mysql[13619]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
|
Sep 21 03:09:10 wheezy-64 /etc/init.d/mysql[13619]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
|
Sep 21 03:09:10 wheezy-64 /etc/init.d/mysql[13619]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
|
Sep 21 03:09:10 wheezy-64 /etc/init.d/mysql[13619]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
|
Sep 21 03:09:10 wheezy-64 /etc/init.d/mysql[13619]:
|
That's how we end up with users' complaints like "server just does not start, nothing in the error log", at which point we get stuck because there's nothing to work with.
It is a realistic situation, for example that's exactly what happens when one tries to dist-upgrade from 5.5 to 10.0 on Wheezy.
It happens because all output of mysqld_safe call in the init script is redirected to /dev/null.
- relates to
-
MDEV-5957
mysqld_safe errors are lost when executed from the init script and additional arguments are not passed in case of a "restart" on Debian
-
-
Closed
{"report":{"fcp":777.3000001907349,"ttfb":176.60000014305115,"pageVisibility":"visible","entityId":45201,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"dfc4a526-3e53-40b2-bdf5-ef4c04dbe7f4","navigationType":0,"readyForUser":829.1000001430511,"redirectCount":0,"resourceLoadedEnd":511.30000019073486,"resourceLoadedStart":185,"resourceTiming":[{"duration":87.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":185,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":272.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":87.5,"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":185.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":272.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":145.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":185.40000009536743,"connectEnd":185.40000009536743,"connectStart":185.40000009536743,"domainLookupEnd":185.40000009536743,"domainLookupStart":185.40000009536743,"fetchStart":185.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":185.40000009536743,"responseEnd":330.80000019073486,"responseStart":330.80000019073486,"secureConnectionStart":185.40000009536743},{"duration":219,"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":185.80000019073486,"connectEnd":185.80000019073486,"connectStart":185.80000019073486,"domainLookupEnd":185.80000019073486,"domainLookupStart":185.80000019073486,"fetchStart":185.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":185.80000019073486,"responseEnd":404.80000019073486,"responseStart":404.80000019073486,"secureConnectionStart":185.80000019073486},{"duration":222.10000014305115,"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":186,"connectEnd":186,"connectStart":186,"domainLookupEnd":186,"domainLookupStart":186,"fetchStart":186,"redirectEnd":0,"redirectStart":0,"requestStart":186,"responseEnd":408.10000014305115,"responseStart":408.10000014305115,"secureConnectionStart":186},{"duration":222.5,"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":186,"connectEnd":186,"connectStart":186,"domainLookupEnd":186,"domainLookupStart":186,"fetchStart":186,"redirectEnd":0,"redirectStart":0,"requestStart":186,"responseEnd":408.5,"responseStart":408.5,"secureConnectionStart":186},{"duration":223.10000014305115,"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":186.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":409.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":222.60000014305115,"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":186.20000004768372,"connectEnd":186.20000004768372,"connectStart":186.20000004768372,"domainLookupEnd":186.20000004768372,"domainLookupStart":186.20000004768372,"fetchStart":186.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":186.20000004768372,"responseEnd":408.80000019073486,"responseStart":408.80000019073486,"secureConnectionStart":186.20000004768372},{"duration":223.29999995231628,"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":186.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":409.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":223,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":186.30000019073486,"connectEnd":186.30000019073486,"connectStart":186.30000019073486,"domainLookupEnd":186.30000019073486,"domainLookupStart":186.30000019073486,"fetchStart":186.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":186.30000019073486,"responseEnd":409.30000019073486,"responseStart":409.30000019073486,"secureConnectionStart":186.30000019073486},{"duration":223.30000019073486,"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":186.5,"connectEnd":186.5,"connectStart":186.5,"domainLookupEnd":186.5,"domainLookupStart":186.5,"fetchStart":186.5,"redirectEnd":0,"redirectStart":0,"requestStart":186.5,"responseEnd":409.80000019073486,"responseStart":409.80000019073486,"secureConnectionStart":186.5},{"duration":291.90000009536743,"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":192.40000009536743,"connectEnd":192.40000009536743,"connectStart":192.40000009536743,"domainLookupEnd":192.40000009536743,"domainLookupStart":192.40000009536743,"fetchStart":192.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":192.40000009536743,"responseEnd":484.30000019073486,"responseStart":484.30000019073486,"secureConnectionStart":192.40000009536743},{"duration":318.2000000476837,"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":193.10000014305115,"connectEnd":193.10000014305115,"connectStart":193.10000014305115,"domainLookupEnd":193.10000014305115,"domainLookupStart":193.10000014305115,"fetchStart":193.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":193.10000014305115,"responseEnd":511.30000019073486,"responseStart":511.30000019073486,"secureConnectionStart":193.10000014305115},{"duration":297.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":552.5,"connectEnd":552.5,"connectStart":552.5,"domainLookupEnd":552.5,"domainLookupStart":552.5,"fetchStart":552.5,"redirectEnd":0,"redirectStart":0,"requestStart":552.5,"responseEnd":849.8000001907349,"responseStart":849.8000001907349,"secureConnectionStart":552.5},{"duration":147.29999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":756.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":756.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":903.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":56,"responseStart":176,"responseEnd":192,"domLoading":179,"domInteractive":882,"domContentLoadedEventStart":882,"domContentLoadedEventEnd":920,"domComplete":1202,"loadEventStart":1202,"loadEventEnd":1204,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":865.6000001430511},{"name":"bigPipe.sidebar-id.end","time":866.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":866.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":868.9000000953674},{"name":"activityTabFullyLoaded","time":929.1000001430511}],"measures":[],"correlationId":"d7eac0f74af5ab","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":69,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}