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":1263.8999999761581,"ttfb":513.6999999284744,"pageVisibility":"visible","entityId":64167,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4c8e9cbf-f6ec-4586-85eb-73c6b5ab0978","navigationType":0,"readyForUser":1349.2999999523163,"redirectCount":0,"resourceLoadedEnd":1834.7999999523163,"resourceLoadedStart":519.5999999046326,"resourceTiming":[{"duration":332.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":519.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":519.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":851.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":332,"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":519.8999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":519.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":851.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":341.1999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":520,"connectEnd":520,"connectStart":520,"domainLookupEnd":520,"domainLookupStart":520,"fetchStart":520,"redirectEnd":0,"redirectStart":0,"requestStart":520,"responseEnd":861.1999999284744,"responseStart":861.1999999284744,"secureConnectionStart":520},{"duration":366.89999997615814,"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":520.2999999523163,"connectEnd":520.2999999523163,"connectStart":520.2999999523163,"domainLookupEnd":520.2999999523163,"domainLookupStart":520.2999999523163,"fetchStart":520.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":520.2999999523163,"responseEnd":887.1999999284744,"responseStart":887.1999999284744,"secureConnectionStart":520.2999999523163},{"duration":370.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":520.3999999761581,"connectEnd":520.3999999761581,"connectStart":520.3999999761581,"domainLookupEnd":520.3999999761581,"domainLookupStart":520.3999999761581,"fetchStart":520.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":520.3999999761581,"responseEnd":891,"responseStart":890.8999999761581,"secureConnectionStart":520.3999999761581},{"duration":370.8000000715256,"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":520.5999999046326,"connectEnd":520.5999999046326,"connectStart":520.5999999046326,"domainLookupEnd":520.5999999046326,"domainLookupStart":520.5999999046326,"fetchStart":520.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":520.5999999046326,"responseEnd":891.3999999761581,"responseStart":891.3999999761581,"secureConnectionStart":520.5999999046326},{"duration":371.2000000476837,"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":520.7999999523163,"connectEnd":520.7999999523163,"connectStart":520.7999999523163,"domainLookupEnd":520.7999999523163,"domainLookupStart":520.7999999523163,"fetchStart":520.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":520.7999999523163,"responseEnd":892,"responseStart":892,"secureConnectionStart":520.7999999523163},{"duration":372,"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":521,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":521,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":893,"responseStart":0,"secureConnectionStart":0},{"duration":371.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":521.1999999284744,"connectEnd":521.1999999284744,"connectStart":521.1999999284744,"domainLookupEnd":521.1999999284744,"domainLookupStart":521.1999999284744,"fetchStart":521.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":521.1999999284744,"responseEnd":892.5999999046326,"responseStart":892.5999999046326,"secureConnectionStart":521.1999999284744},{"duration":372,"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":521.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":521.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":893.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":371.7999999523163,"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":521.5,"connectEnd":521.5,"connectStart":521.5,"domainLookupEnd":521.5,"domainLookupStart":521.5,"fetchStart":521.5,"redirectEnd":0,"redirectStart":0,"requestStart":521.5,"responseEnd":893.2999999523163,"responseStart":893.2999999523163,"secureConnectionStart":521.5},{"duration":1311.3999999761581,"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":522.3999999761581,"connectEnd":522.3999999761581,"connectStart":522.3999999761581,"domainLookupEnd":522.3999999761581,"domainLookupStart":522.3999999761581,"fetchStart":522.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":522.3999999761581,"responseEnd":1833.7999999523163,"responseStart":1833.7999999523163,"secureConnectionStart":522.3999999761581},{"duration":1297.6000000238419,"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":537.1999999284744,"connectEnd":537.1999999284744,"connectStart":537.1999999284744,"domainLookupEnd":537.1999999284744,"domainLookupStart":537.1999999284744,"fetchStart":537.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":537.1999999284744,"responseEnd":1834.7999999523163,"responseStart":1834.7999999523163,"secureConnectionStart":537.1999999284744},{"duration":605.2999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1080.7999999523163,"connectEnd":1080.7999999523163,"connectStart":1080.7999999523163,"domainLookupEnd":1080.7999999523163,"domainLookupStart":1080.7999999523163,"fetchStart":1080.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1080.7999999523163,"responseEnd":1686.0999999046326,"responseStart":1686.0999999046326,"secureConnectionStart":1080.7999999523163},{"duration":615.1000000238419,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1257.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1257.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1872.3999999761581,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":30,"responseStart":514,"responseEnd":537,"domLoading":517,"domInteractive":1875,"domContentLoadedEventStart":1875,"domContentLoadedEventEnd":1916,"domComplete":2543,"loadEventStart":2543,"loadEventEnd":2543,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1851},{"name":"bigPipe.sidebar-id.end","time":1851.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1851.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":1854.0999999046326},{"name":"activityTabFullyLoaded","time":1964.2999999523163}],"measures":[],"correlationId":"374e1039c1919b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"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.