启动第二节点报错:WSREP_SST: [ERROR] Error while getting data from donor node: exit codes: 137 0
本来所有节点的wsrep_sst_method均配置为xtrabackup-v2,但是添加第二个节点时报错:WSREP_SST: [ERROR] Error while getting data from donor node: exit codes: 137 0,换成了rsync后,就没有问题了,待验证是否是xtrabackup的版本问题,我之前用的是2.4.7
wsrep_sst_method = xtrabackup-v2
wsrep_sst_method = rsync
使用xtrabackup2.1.8报错:
[ERROR] The xtrabackup vexrsion is 2.1.8. Needs xtrabackup-2.4.4 or higher to perform SST
即换成xtrabackup-2.4.4,还是同样的报错:
WSREP_SST: [ERROR] Error while getting data from donor node: exit codes: 137 0
验证我这个不是xtrabackup版本问题!
在下面的检查过程中,先发现了node1节点的socat未安装,安装好后日志再次报错是sst用户权限的问题,重新授权后解决!
测试步骤:
1、node1启动集群,在node1建库建表,并插入数据;
2、node2用wsrep_sst_method = rsync启动,正常启动后同步数据完成,shutdown node2;
3、修改node2的wsrep_sst_method = xtrabackup-v2,还是正常启动;
4、node1写入数据,node2同步数据正常。
查看节点1的错误日志:
2017-07-31T03:04:03.419546Z 0 [Note] WSREP: Initiating SST/IST transfer on DONOR side (wsrep_sst_xtrabackup-v2 --role 'donor' --address '10.157.26.133:4444/xtrabackup_sst//1' --socket '/tmp/m
ysql.sock' --datadir '/data/mysql/mysql_6666/data/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --binlog '/data/mysql/mysql_6666/logs/binlog/mysql-bin' --gtid 'ed816d86-759a-11e
7-a5c4-469a5c88e506:0')
2017-07-31T03:04:03.424705Z 2 [Note] WSREP: DONOR thread signaled with 0
which: no socat in (/usr/sbin:/sbin:/opt/mysql/Percona-XtraDB-Cluster-5.7.18-rel15-29.20.1.Linux.x86_64.ssl101/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/u
sr/bin:/root/bin:/opt/httpd/php5/bin:/usr/local/mysql_pxc/bin)
2017-07-31T03:04:03.713864Z WSREP_SST: [ERROR] ******************* FATAL ERROR **********************
2017-07-31T03:04:03.715590Z WSREP_SST: [ERROR] socat not found in path: /usr/sbin:/sbin:/opt/mysql/Percona-XtraDB-Cluster-5.7.18-rel15-29.20.1.Linux.x86_64.ssl101/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/httpd/php5/bin:/usr/local/mysql_pxc/bin
2017-07-31T03:04:03.717220Z WSREP_SST: [ERROR] ******************************************************
2017-07-31T03:04:03.717775Z 0 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'donor' --address '10.157.26.133:4444/xtrabackup_sst//1' --socket '/tmp/mysql.sock' -
-datadir '/data/mysql/mysql_6666/data/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --binlog '/data/mysql/mysql_6666/logs/binlog/mysql-bin' --gtid 'ed816d86-759a-11e7-a5c4-469a5
c88e506:0': 2 (No such file or directory)
2017-07-31T03:04:03.717918Z 0 [ERROR] WSREP: Command did not run: wsrep_sst_xtrabackup-v2 --role 'donor' --address '10.157.26.133:4444/xtrabackup_sst//1' --socket '/tmp/mysql.sock' --datadir
'/data/mysql/mysql_6666/data/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --binlog '/data/mysql/mysql_6666/logs/binlog/mysql-bin' --gtid 'ed816d86-759a-11e7-a5c4-469a5c88e506:0
'
2017-07-31T03:04:03.719442Z 0 [Warning] WSREP: 1.0 (node132): State transfer to 0.0 (node133) failed: -2 (No such file or directory)
安装socat:
tar zxvf socat-1.7.3.2.tar.gz
cd socat-1.7.3.2
./configure
make && make install
三个节点安装好socat之后,再次添加第二节点,报错:
2017-07-31T03:18:57.289292Z WSREP_SST: [ERROR] ******************* FATAL ERROR **********************
2017-07-31T03:18:57.291514Z WSREP_SST: [ERROR] xtrabackup_checkpoints missing. xtrabackup/SST failed on DONOR. Check DONOR log
2017-07-31T03:18:57.293551Z WSREP_SST: [ERROR] ******************************************************
2017-07-31T03:18:57.296400Z WSREP_SST: [ERROR] Cleanup after exit with status:2
2017-07-31T03:18:57.300659Z 0 [Warning] WSREP: 0.0 (node132): State transfer to 1.0 (node133) failed: -22 (Invalid argument)
2017-07-31T03:18:57.300706Z 0 [ERROR] WSREP: gcs/src/gcs_group.cpp:gcs_group_handle_join_msg():765: Will never receive state. Need to abort.
这时再查看第一节点的错误日志:
2017-07-31T03:18:57.274531Z 12 [Note] Access denied for user 'sst'@'localhost' (using password: YES)
2017-07-31T03:18:57.278394Z WSREP_SST: [ERROR] ******************* FATAL ERROR **********************
2017-07-31T03:18:57.281082Z WSREP_SST: [ERROR] xtrabackup finished with error: 1. Check /data/mysql/mysql_6666/data//innobackup.backup.log
--------------- innobackup.backup.log (START) --------------------
170731 11:18:57 version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;port=6666;mysql_socket=/tmp/mysql.sock' as 'sst' (using password: YES).
Character set 'utf8mb4' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
Failed to connect to MySQL server: DBI connect(';mysql_read_default_group=xtrabackup;port=6666;mysql_socket=/tmp/mysql.sock','sst',...) failed: Can't initialize character set utf8mb4 (path: /usr/share/mysql/charsets/) at - line 1314
170731 11:18:57 Connecting to MySQL server host: localhost, user: sst, password: set, port: 6666, socket: /tmp/mysql.sock
即查看/data/mysql/mysql_6666/data/innobackup.backup.log,可以看到是用户权限问题:
[root@dpstcmsweb00 src]# cat /data/mysql/mysql_6666/data/innobackup.backup.log
170731 11:18:57 version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;port=6666;mysql_socket=/tmp/mysql.sock' as 'sst' (using password: YES).
Character set 'utf8mb4' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
Failed to connect to MySQL server: DBI connect(';mysql_read_default_group=xtrabackup;port=6666;mysql_socket=/tmp/mysql.sock','sst',...) failed: Can't initialize character set utf8mb4 (path: /usr/share/mysql/charsets/) at - line 1314
170731 11:18:57 Connecting to MySQL server host: localhost, user: sst, password: set, port: 6666, socket: /tmp/mysql.sock
Failed to connect to MySQL server: Access denied for user 'sst'@'localhost' (using password: YES).
在第一个节点上授权:grant all privileges on *.* to 'sst'@'localhost' identified by 'sst123';
再次启动第二节点,添加成功!
- Winform下CefSharp的引用、配置、实例与报错排除(源码)
Winform下CefSharp的引用.配置.实例与报错排除 本文详细介绍了CefSharp在vs2013..net4.0环境下,创建Winfrom项目.引用CefSharp的方法,演示了winfro ...
- 两个由于php.ini配置错误导致的报错:ajax图片上传报错和exec报错
遇到了两个由于php.ini配置错误导致的报错:ajax图片上传报错和exec报错 首先第一个: 在做一个用ajax图片上传的功能中,php报了这样一个错误:File upload error - u ...
- Eclipse配置tomcat8.5.7报错:The Apache Tomcat installation at this directory is version 8.5.27. A Tomcat 8.0 installation is...
Eclipse配置tomcat8.5.7报错:The Apache Tomcat installation at this directory is version 8.5.27. A Tomcat ...
- 为什么基于Windows Server 2008 R2的网络负载均衡(NLB)配置的时候总会报错“主机不可访问”?
配置基于Windows的网络负载均衡是很容易的,操作也很简单,点点鼠标基本上就能完成,但是在进行节点(真实服务器)操作的过程中有时候会遇到一些主机不可访问的报错信息.这个又是为什么呢? Figure ...
- 在iis7上如何配置来看到asp报错
今天网站改版时碰到一个问题,客户要求老网站的地图等功能要保持,但是老网站是用asp开发的.我们可以直接利用老的数据库以及老的代码,但是部署到新的服务器上一直报错. 刚开始是404,后来是500...今 ...
- struts2 ,web.xml中配置为/*.action,运行报错Invalid <url-pattern> /*.action in filter mapp
首先,修改成: <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/ ...
- 配置webpack loader vue 报错:Module build failed: TypeError: this._init is not a function
单文件组件 引入时报错 配置webpage.config.js中的vue 需要如下写法 { test: /\.vue/, loader: "vue-loader", } 之前写的l ...
- 配置web pack loader 报错:Module build failed: Error: The node API for `babel` has been moved to `babel-core`.
报错如下 Module build failed: Error: The node API for `babel` has been moved to `babel-core`. 在我配置loader ...
- 【laravel5.4】git上clone项目到本地,配置和运行 项目报错:../vendor/aotuload.php不存在
1.一般我们直接使用git clone 将git的项目克隆下来,在本地git库和云上git库建立关联关系 2.vendor[扩展]文件夹是不会上传的,那么下载下来直接运行项目,会报错: D:phpSt ...
随机推荐
- Android中Invalidate与postInvalidate的区别<转>
http://www.cnblogs.com/it-tomorrow/archive/2012/11/08/2760146.html 示例:http://rayleung.iteye.com/blog ...
- 解决Bootstrap布局注册表单input标签前增加必填项*提示与input框不在同一行问题
注册表单部分代码如下: <form id="registForm" class="form-horizontal" action="${page ...
- Unity中SendMessage和Delegate效率比较
网上直接搜的代码.需要的使用也简单,所以就不过多说明. 但是网上都说,他们之间的差距,delegate比较快,效果高.怎么个高法呢?还是自己来测试下时间. 故此, 个人之用来比较下时间差别. 一.直接 ...
- 关于KEIL仿真的虚拟串口讲解
这个是最后的效果图,右下方是串口打印的设置 第一步:在程序上写入关于串口一的配置,以及初始化和串口输出的内容 第二步:需要的时候在进行配置,在OPTIONS OF TARGET一栏的c/c++中(其原 ...
- MQTT的学习研究(四)moquette-mqtt 的使用之mqtt Blocking API客户端订阅并接收主题信息
在上面两篇关于mqtt的broker的启动和mqtt的服务端发布主题信息之后,我们客户端需要订阅相关的信息并接收相关的主题信息. package com.etrip.mqtt; import java ...
- Docker源码分析(五):Docker Server的创建
1.Docker Server简介 Docker架构中,Docker Server是Docker Daemon的重要组成部分.Docker Server最主要的功能是:接受用户通过Docker Cli ...
- LeetCode——Count Complete Tree Nodes
Description: Given a complete binary tree, count the number of nodes. In a complete binary tree ever ...
- Android 内存使用hprof文件打开方法
http://blog.csdn.net/moruihong/article/details/7677128 与C++的内存不同,C++的内存泄露是由于分配了内存给某程序但是又没有回收造成的.Java ...
- OneThink后台模型怎么玩?
OneThink 后台模型有个模型类型: 模型下——>设计——>表单显示分组(怎么玩?) 这个将会显示在:内——>发布文章内容的时候: 单选按钮: 内容模块显示: 枚举类型可以这样玩 ...
- 【gulp】前端自动化工具---gulp的使用(一)------【巷子】
什么是gulp? 基于node的自动化构建工具 扩展:开发的时候分为2个节点一个是开发阶段 另一个是部署阶段 开发阶段:源文件不会被压缩 部署阶段:所有文 ...