mha报错
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mha报错相关的知识,希望对你有一定的参考价值。
mha安装之后一直正常运行,中间也有出现过切换的情况,不过都正常进行,后有其他dba在mha自动切换后做过一些操作,后来我再查看状态,发现监控没有在运行,于是手工启动,结果就报以下错误:
Mon Nov 20 17:15:11 2017 - [info] MHA::MasterMonitor version 0.56. Mon Nov 20 17:15:12 2017 - [info] GTID failover mode = 0 Mon Nov 20 17:15:12 2017 - [info] Dead Servers: Mon Nov 20 17:15:12 2017 - [info] Alive Servers: Mon Nov 20 17:15:12 2017 - [info] 192.168.2.211(192.168.2.211:3206) Mon Nov 20 17:15:12 2017 - [info] 192.168.2.212(192.168.2.212:3206) Mon Nov 20 17:15:12 2017 - [info] 192.168.2.213(192.168.2.213:3206) Mon Nov 20 17:15:12 2017 - [info] Alive Slaves: Mon Nov 20 17:15:12 2017 - [info] 192.168.2.212(192.168.2.212:3206) Version=5.6.24-log (oldest major version between slaves) log-bin:enabled Mon Nov 20 17:15:12 2017 - [info] Replicating from 192.168.2.211(192.168.2.211:3206) Mon Nov 20 17:15:12 2017 - [info] Primary candidate for the new Master (candidate_master is set) Mon Nov 20 17:15:12 2017 - [info] 192.168.2.213(192.168.2.213:3206) Version=5.6.24-log (oldest major version between slaves) log-bin:enabled Mon Nov 20 17:15:12 2017 - [info] Replicating from 192.168.2.211(192.168.2.211:3206) Mon Nov 20 17:15:12 2017 - [info] Not candidate for the new Master (no_master is set) Mon Nov 20 17:15:12 2017 - [info] Current Alive Master: 192.168.2.211(192.168.2.211:3206) Mon Nov 20 17:15:12 2017 - [info] Checking slave configurations.. Mon Nov 20 17:15:12 2017 - [warning] relay_log_purge=0 is not set on slave 192.168.2.213(192.168.2.213:3206). Mon Nov 20 17:15:12 2017 - [info] Checking replication filtering settings.. Mon Nov 20 17:15:12 2017 - [info] binlog_do_db= , binlog_ignore_db= Mon Nov 20 17:15:12 2017 - [info] Replication filtering check ok. Mon Nov 20 17:15:12 2017 - [info] GTID (with auto-pos) is not supported Mon Nov 20 17:15:12 2017 - [info] Starting SSH connection tests.. Mon Nov 20 17:15:15 2017 - [info] All SSH connection tests passed successfully. Mon Nov 20 17:15:15 2017 - [info] Checking MHA Node version.. Mon Nov 20 17:15:15 2017 - [error][/usr/local/share/perl5/MHA/ManagerUtil.pm, ln122] Got error when getting node version. Error: Mon Nov 20 17:15:15 2017 - [error][/usr/local/share/perl5/MHA/ManagerUtil.pm, ln123] bash: apply_diff_relay_logs: command not found Mon Nov 20 17:15:15 2017 - [error][/usr/local/share/perl5/MHA/ManagerUtil.pm, ln150] node version on 192.168.2.212 not found! Is MHA Node package installed ? at /usr/local/share/perl5/MHA/MasterMonitor.pm line 374. Mon Nov 20 17:15:15 2017 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln424] Error happened on checking configurations. node version on 192.168.2.212 not found! Is MHA Node package installed ? at /usr/local/share/perl5/MHA/MasterMonitor.pm line 374. ...propagated at /usr/local/share/perl5/MHA/ManagerUtil.pm line 151. Mon Nov 20 17:15:15 2017 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln523] Error happened on monitoring servers. Mon Nov 20 17:15:15 2017 - [info] Got exit code 1 (Not master dead).
提示到不到命令,同时提示我是否节点2是否没有安装node包,我做过以下尝试:
尝试配置环境变量路径,无效。
尝试重新安装node包,无效。
网上也查了,千篇一率地一篇文章转来转去。
问题解决中。。
本文出自 “努力奔向前方” 博客,请务必保留此出处http://liucb.blog.51cto.com/3230681/1983697
以上是关于mha报错的主要内容,如果未能解决你的问题,请参考以下文章
mha故障切换报错了,漂移成功了,slave指向新master没成功,究竟如何处理!我有点小暴躁!
MHA报错合集~~Binlog setting check failed!和unknown variable ‘default-character-set=utf8‘
mha 复制检查报错“There is no alive server. We can't do failover”
心态炸裂,搭建mha时,在测试主从复制时候报错MySQL Replication Health is NOT OK!!!有点慌!慢慢盘吧!
MHA 报错:There is no alive slave. We can't do failover
mha安装报错 [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln361] None of slaves can be mast