[error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln222] Failed to get master_ip_failover_script

[root@mysqlcentos01 bin]# masterha_check_repl --conf=/data/mhamanager/3306/log/mha.cnf  
Fri Aug 25 16:37:25 2017 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Fri Aug 25 16:37:25 2017 - [info] Reading application default configurations from /data/mhamanager/3306/log/mha.cnf..
Fri Aug 25 16:37:25 2017 - [info] Reading server configurations from /data/mhamanager/3306/log/mha.cnf..
Fri Aug 25 16:37:25 2017 - [info] MHA::MasterMonitor version 0.56.
Fri Aug 25 16:37:26 2017 - [info] Dead Servers:
Fri Aug 25 16:37:26 2017 - [info] Alive Servers:
Fri Aug 25 16:37:26 2017 - [info]   10.194.41.231(10.194.41.231:3306)
Fri Aug 25 16:37:26 2017 - [info]   10.194.41.228(10.194.41.228:3306)
Fri Aug 25 16:37:26 2017 - [info]   10.194.41.227(10.194.41.227:3306)
Fri Aug 25 16:37:26 2017 - [info] Alive Slaves:
Fri Aug 25 16:37:26 2017 - [info]   10.194.41.228(10.194.41.228:3306)  Version=5.7.18-log (oldest major version between slaves) log-bin:enabled
Fri Aug 25 16:37:26 2017 - [info]     GTID ON
Fri Aug 25 16:37:26 2017 - [info]     Replicating from 10.194.41.231(10.194.41.231:3306)
Fri Aug 25 16:37:26 2017 - [info]   10.194.41.227(10.194.41.227:3306)  Version=5.7.18-log (oldest major version between slaves) log-bin:enabled
Fri Aug 25 16:37:26 2017 - [info]     GTID ON
Fri Aug 25 16:37:26 2017 - [info]     Replicating from 10.194.41.231(10.194.41.231:3306)
Fri Aug 25 16:37:26 2017 - [info]     Primary candidate for the new Master (candidate_master is set)
Fri Aug 25 16:37:26 2017 - [info] Current Alive Master: 10.194.41.231(10.194.41.231:3306)
Fri Aug 25 16:37:26 2017 - [info] Checking slave configurations..
Fri Aug 25 16:37:26 2017 - [warning]  relay_log_purge=0 is not set on slave 10.194.41.228(10.194.41.228:3306).
Fri Aug 25 16:37:26 2017 - [warning]  relay_log_purge=0 is not set on slave 10.194.41.227(10.194.41.227:3306).
Fri Aug 25 16:37:26 2017 - [info] Checking replication filtering settings..
Fri Aug 25 16:37:26 2017 - [info]  binlog_do_db= , binlog_ignore_db= 
Fri Aug 25 16:37:26 2017 - [info]  Replication filtering check ok.
Fri Aug 25 16:37:26 2017 - [info] GTID is supported. Skipping all SSH and Node package checking.
Fri Aug 25 16:37:26 2017 - [info] Checking SSH publickey authentication settings on the current master..
Fri Aug 25 16:37:31 2017 - [warning] HealthCheck: Got timeout on checking SSH connection to 10.194.41.231! at /usr/local/share/perl5/MHA/HealthCheck.pm line 298.
Fri Aug 25 16:37:31 2017 - [info] 
10.194.41.231 (current master)
 +--10.194.41.228
 +--10.194.41.227

Fri Aug 25 16:37:31 2017 - [info] Checking replication health on 10.194.41.228..
Fri Aug 25 16:37:31 2017 - [info]  ok.
Fri Aug 25 16:37:31 2017 - [info] Checking replication health on 10.194.41.227..
Fri Aug 25 16:37:31 2017 - [info]  ok.
Fri Aug 25 16:37:31 2017 - [info] Checking master_ip_failover_script status:
Fri Aug 25 16:37:31 2017 - [info]   /usr/local/bin/master_ip_failover --command=status --ssh_user=root --orig_master_host=10.194.41.231 --orig_master_ip=10.194.41.231 --orig_master_port=3306 
Bareword "FIXME_xxx" not allowed while "strict subs" in use at /usr/local/bin/master_ip_failover line 100.
Execution of /usr/local/bin/master_ip_failover aborted due to compilation errors.
Fri Aug 25 16:37:31 2017 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln222]  Failed to get master_ip_failover_script status with return code 255:0.
Fri Aug 25 16:37:31 2017 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln401] Error happend on checking configurations.  at /usr/local/bin/masterha_check_repl line 48.
Fri Aug 25 16:37:31 2017 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln500] Error happened on monitoring servers.
Fri Aug 25 16:37:31 2017 - [info] Got exit code 1 (Not master dead).


MySQL Replication Health is NOT OK!

[root@mysqlcentos01 bin]# 

http://blog.csdn.net/kokuma/article/details/72900645

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个错误是由于在perl模块中找不到Log/Dispatch.pm文件导致的。根据引用\[1\]中的错误信息,可以看到@INC中包含了一些perl模块的路径,但是在这些路径中找不到Log/Dispatch.pm文件。同样的问题也出现在引用\[2\]中,只是这次是找不到Params/Validate.pm文件。 解决这个问题的方法是安装缺失的perl模块。在这种情况下,你需要安装Log::Dispatch和Params::Validate模块。你可以使用CPAN或者系统包管理器来安装这些模块。 如果你使用的是CPAN,你可以在终端中运行以下命令来安装这些模块: ``` cpan Log::Dispatch cpan Params::Validate ``` 如果你使用的是系统包管理器,你可以根据你使用的操作系统和包管理器的不同,运行适当的命令来安装这些模块。例如,在Ubuntu上,你可以使用以下命令: ``` sudo apt-get install liblog-dispatch-perl sudo apt-get install libparams-validate-perl ``` 安装完这些模块后,你应该能够解决这个错误并成功运行你的程序。 #### 引用[.reference_title] - *1* [Can't locate Log/Dispatch.pm in @INC](https://blog.csdn.net/weixin_30685047/article/details/99237075)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [Can't locate Params/Validate.pm in @INC (@INC contains: /usr/local/lib64/perl5 /](https://blog.csdn.net/weixin_30838873/article/details/96170433)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值