A Galera cluster uses encryption for SST with the following configuration:
[sst]
|
encrypt=3
|
tkey=/path/to/key.pem
|
tcert=/path/to/cert.pem
|
tca=/path/to/ca.pem
|
Upgrading a node to 10.1.28 (in a Galera cluster of 10.1.23 nodes) fails with:
2017-11-04 18:23:17 140462627223296 [Note] WSREP: (3804918b, 'tcp://0.0.0.0:4567') turning message relay requesting off
|
xb_stream_read_chunk(): wrong chunk magic at offset 0x0.
|
WSREP_SST: [ERROR] Error while getting data from donor node: exit codes: 137 1 (20171104 18:24:55.419)
|
WSREP_SST: [ERROR] Cleanup after exit with status:32 (20171104 18:24:55.421)
|
One explication is that the joiner doesn't expect an encrypted stream, poining at a problem with the configuration under [sst] section.
After some investigation I restricted the problem to the wsrep_sst_xtrabackup-v2's function parse_cnf() which was moved to wsrep_sst_common.
In 10.1.23 parse_cnf() is in wsrep_sst_xtrabackup-v2 and it's:
parse_cnf()
|
{
|
local group=$1
|
local var=$2
|
# print the default settings for given group using my_print_default.
|
# normalize the variable names specified in cnf file (user can use _ or - for example log-bin or log_bin)
|
# then grep for needed variable
|
# finally get the variable value (if variables has been specified multiple time use the last value only)
|
reval=$($MY_PRINT_DEFAULTS $group | awk -F= '{if ($1 ~ /_/) { gsub(/_/,"-",$1); print $1"="$2 } else { print $0 }}' | grep -- "--$var=" | cut -d= -f2- | tail -1)
|
if [[ -z $reval ]];then
|
[[ -n $3 ]] && reval=$3
|
fi
|
echo $reval
|
}
|
In 10.1.28 it's moved to wsrep_sst_common and it's:
parse_cnf()
|
{
|
local group=$1
|
local var=$2
|
local reval=""
|
|
# print the default settings for given group using my_print_default.
|
# normalize the variable names specified in cnf file (user can use _ or - for example log-bin or log_bin)
|
# then grep for needed variable
|
# finally get the variable value (if variables has been specified multiple time use the last value only)
|
|
# look in group+suffix
|
if [[ -n $WSREP_SST_OPT_CONF_SUFFIX ]]; then
|
reval=$($MY_PRINT_DEFAULTS -c $WSREP_SST_OPT_CONF "${group}${WSREP_SST_OPT_CONF_SUFFIX}" | awk -F= '{if ($1 ~ /_/) { gsub(/_/,"-",$1); print $1"="$2 } else { print $0 }}' | grep -- "--$var=" | cut -d= -f2- | tail -1)
|
fi
|
|
# look in group
|
if [[ -z $reval ]]; then
|
reval=$($MY_PRINT_DEFAULTS -c $WSREP_SST_OPT_CONF $group | awk -F= '{if ($1 ~ /_/) { gsub(/_/,"-",$1); print $1"="$2 } else { print $0 }}' | grep -- "--$var=" | cut -d= -f2- | tail -1)
|
fi
|
|
# use default if we haven't found a value
|
if [[ -z $reval ]]; then
|
[[ -n $3 ]] && reval=$3
|
fi
|
echo $reval
|
}
|
|
Using wsrep_sst_common and wsrep_sst_xtrabackup-v2 from version 10.1.23 on 10.1.28 fixes the problem and the node succesfully joins.
- relates to
-
MDEV-15254
10.1.31 does not join an existing cluster with SST xtrabackup-v2
-
-
Closed
{"report":{"fcp":1043.3999999761581,"ttfb":224.5,"pageVisibility":"visible","entityId":64167,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"846d48db-0145-4805-9250-7c5083da148c","navigationType":0,"readyForUser":1126.8999999761581,"redirectCount":0,"resourceLoadedEnd":1187.5,"resourceLoadedStart":229.20000004768372,"resourceTiming":[{"duration":154.19999992847443,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":229.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":383.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":154.10000002384186,"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":229.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":383.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":318.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":229.60000002384186,"connectEnd":229.60000002384186,"connectStart":229.60000002384186,"domainLookupEnd":229.60000002384186,"domainLookupStart":229.60000002384186,"fetchStart":229.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":229.60000002384186,"responseEnd":548,"responseStart":548,"secureConnectionStart":229.60000002384186},{"duration":410,"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":229.89999997615814,"connectEnd":229.89999997615814,"connectStart":229.89999997615814,"domainLookupEnd":229.89999997615814,"domainLookupStart":229.89999997615814,"fetchStart":229.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":229.89999997615814,"responseEnd":639.8999999761581,"responseStart":639.8999999761581,"secureConnectionStart":229.89999997615814},{"duration":413.60000002384186,"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":230,"connectEnd":230,"connectStart":230,"domainLookupEnd":230,"domainLookupStart":230,"fetchStart":230,"redirectEnd":0,"redirectStart":0,"requestStart":230,"responseEnd":643.6000000238419,"responseStart":643.6000000238419,"secureConnectionStart":230},{"duration":413.7999999523163,"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":230.20000004768372,"connectEnd":230.20000004768372,"connectStart":230.20000004768372,"domainLookupEnd":230.20000004768372,"domainLookupStart":230.20000004768372,"fetchStart":230.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":230.20000004768372,"responseEnd":644,"responseStart":644,"secureConnectionStart":230.20000004768372},{"duration":413.90000009536743,"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":230.39999997615814,"connectEnd":230.39999997615814,"connectStart":230.39999997615814,"domainLookupEnd":230.39999997615814,"domainLookupStart":230.39999997615814,"fetchStart":230.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":230.39999997615814,"responseEnd":644.3000000715256,"responseStart":644.3000000715256,"secureConnectionStart":230.39999997615814},{"duration":456.5,"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":230.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":687.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":414.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":230.70000004768372,"connectEnd":230.70000004768372,"connectStart":230.70000004768372,"domainLookupEnd":230.70000004768372,"domainLookupStart":230.70000004768372,"fetchStart":230.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":230.70000004768372,"responseEnd":644.8000000715256,"responseStart":644.8000000715256,"secureConnectionStart":230.70000004768372},{"duration":456.3000000715256,"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":230.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":230.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":687.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":414.3000000715256,"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":231,"connectEnd":231,"connectStart":231,"domainLookupEnd":231,"domainLookupStart":231,"fetchStart":231,"redirectEnd":0,"redirectStart":0,"requestStart":231,"responseEnd":645.3000000715256,"responseStart":645.3000000715256,"secureConnectionStart":231},{"duration":817.7999999523163,"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":236.80000007152557,"connectEnd":236.80000007152557,"connectStart":236.80000007152557,"domainLookupEnd":236.80000007152557,"domainLookupStart":236.80000007152557,"fetchStart":236.80000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":236.80000007152557,"responseEnd":1054.6000000238419,"responseStart":1054.6000000238419,"secureConnectionStart":236.80000007152557},{"duration":817.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":237.20000004768372,"connectEnd":237.20000004768372,"connectStart":237.20000004768372,"domainLookupEnd":237.20000004768372,"domainLookupStart":237.20000004768372,"fetchStart":237.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":237.20000004768372,"responseEnd":1055.1000000238419,"responseStart":1055.1000000238419,"secureConnectionStart":237.20000004768372},{"duration":77.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":698.1000000238419,"connectEnd":698.1000000238419,"connectStart":698.1000000238419,"domainLookupEnd":698.1000000238419,"domainLookupStart":698.1000000238419,"fetchStart":698.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":698.1000000238419,"responseEnd":775.3999999761581,"responseStart":775.3999999761581,"secureConnectionStart":698.1000000238419},{"duration":222,"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":965.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":965.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1187.5,"responseStart":0,"secureConnectionStart":0},{"duration":255.30000007152557,"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":966.3999999761581,"connectEnd":966.3999999761581,"connectStart":966.3999999761581,"domainLookupEnd":966.3999999761581,"domainLookupStart":966.3999999761581,"fetchStart":966.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":966.3999999761581,"responseEnd":1221.7000000476837,"responseStart":1221.7000000476837,"secureConnectionStart":966.3999999761581},{"duration":258.89999997615814,"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":966.7000000476837,"connectEnd":966.7000000476837,"connectStart":966.7000000476837,"domainLookupEnd":966.7000000476837,"domainLookupStart":966.7000000476837,"fetchStart":966.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":966.7000000476837,"responseEnd":1225.6000000238419,"responseStart":1225.6000000238419,"secureConnectionStart":966.7000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":52,"responseStart":225,"responseEnd":236,"domLoading":227,"domInteractive":1198,"domContentLoadedEventStart":1198,"domContentLoadedEventEnd":1247,"domComplete":1458,"loadEventStart":1458,"loadEventEnd":1459,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1171.3000000715256},{"name":"bigPipe.sidebar-id.end","time":1172},{"name":"bigPipe.activity-panel-pipe-id.start","time":1172.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1174.3000000715256},{"name":"activityTabFullyLoaded","time":1269.1000000238419}],"measures":[],"correlationId":"295df9c6d4d7df","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
We are experiencing a similar problem. We have compressor and decompressor configured under the [sst] section of my.cnf
The problem as we see it is that those settings are being ignored because the code that tries to execute is
because the $WSREP_SST_OPT_CONF variable is empty.
If we run the line as
basically just remove the "-c" as well as the reference to the variable the value is properly extracted.