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

Got error messages in centos 6.5 #14

Closed
jiajie999 opened this issue Mar 22, 2014 · 2 comments
Closed

Got error messages in centos 6.5 #14

jiajie999 opened this issue Mar 22, 2014 · 2 comments

Comments

@jiajie999
Copy link

Centos 6.5

Python 2.6.6 (r266:84292, Nov 22 2013, 12:16:22)

./ngxtop.py
Traceback (most recent call last):
  File "./ngxtop.py", line 440, in <module>
    main(args)
  File "./ngxtop.py", line 402, in main
    config = get_nginx_conf_path()
  File "./ngxtop.py", line 117, in get_nginx_conf_path
    proc = subprocess.Popen(['nginx', '-V'], stderr=subprocess.PIPE)
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
@kovyrin
Copy link

kovyrin commented Mar 22, 2014

Yes, it looks like the script does not check if nginx config is there before opening it. Adding --config option helps, but a more helpful error message would definitely be more friendly anyways.

@lebinh
Copy link
Owner

lebinh commented Mar 24, 2014

This is because nginx is not available in your PATH, so ngxtop cannot check to find config file location. But yah, the error message is not so helpful in this case, I'll try to fix that.

@lebinh lebinh closed this as completed Mar 24, 2014
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

3 participants