Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Centos 7 #47

Open
tranhuyvu19 opened this issue Feb 12, 2017 · 0 comments
Open

Error with Centos 7 #47

tranhuyvu19 opened this issue Feb 12, 2017 · 0 comments

Comments

@tranhuyvu19
Copy link

tranhuyvu19 commented Feb 12, 2017

Hi , this is my first time to use mha-helper. i built on Centos 7 within virtualenv.
I got error when running the test "masterha_check_repl --conf=/etc/app1.cnf"

Sun Feb 12 08:28:14 2017 - [info] Checking replication health on hcm07mdmpr02..
Sun Feb 12 08:28:14 2017 - [info] ok.
Sun Feb 12 08:28:14 2017 - [info] Checking master_ip_failover_script status:
Sun Feb 12 08:28:14 2017 - [info] /usr/bin/master_ip_hard_failover_helper --command=status --ssh_user=mha_helper --orig_master_host=hcm07mdmpr01 --orig_master_ip=172.27.47.49 --orig_master_port=3306
Traceback (most recent call last):
File "/usr/bin/master_ip_hard_failover_helper", line 4, in
import('pkg_resources').run_script('mha-helper==0.4.2', 'master_ip_hard_failover_helper')
File "/data/mha/virtualenv/mha_helper/lib/python2.7/site-packages/pkg_resources/init.py", line 738, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/data/mha/virtualenv/mha_helper/lib/python2.7/site-packages/pkg_resources/init.py", line 1506, in run_script
exec(script_code, namespace, namespace)
File "/data/mha/virtualenv/mha_helper/lib/python2.7/site-packages/mha_helper-0.4.2-py2.7.egg/EGG-INFO/scripts/master_ip_hard_failover_helper", line 77, in

File "/data/mha/virtualenv/mha_helper/lib/python2.7/site-packages/mha_helper-0.4.2-py2.7.egg/EGG-INFO/scripts/master_ip_hard_failover_helper", line 61, in main

File "build/bdist.linux-x86_64/egg/mha_helper/mha_helper.py", line 43, in init
ValueError
Sun Feb 12 08:28:15 2017 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln229] Failed to get master_ip_failover_script status with return code 1:0.
Sun Feb 12 08:28:15 2017 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln427] Error happened on checking configurations. at /bin/masterha_check_repl line 48.
Sun Feb 12 08:28:15 2017 - [error][/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm, ln525] Error happened on monitoring servers.
Sun Feb 12 08:28:15 2017 - [info] Got exit code 1 (Not master dead).

Here are all the packages when i install the requirement.txt:

Requirement already satisfied (use --upgrade to upgrade): wheel==0.23.0 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): nose==1.3.4 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from -r requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): PyMySQL>=0.6.3 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from -r requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10.0 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from -r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): cryptography>=1.1 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.7 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): enum34 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): ipaddress in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): packaging>=16.8 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from setuptools>=11.3->cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): appdirs>=1.4.0 in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from setuptools>=11.3->cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): pycparser in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): pyparsing in /data/mha/virtualenv/mha_helper/lib/python2.7/site-packages (from packaging>=16.8->setuptools>=11.3->cryptography>=1.1->paramiko>=1.10.0->-r requirements.txt (line 4))
Cleaning up...

Can you check it ?

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant