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

mongoshake-stat 执行报错 #860

Open
njmaojing opened this issue Feb 23, 2024 · 0 comments
Open

mongoshake-stat 执行报错 #860

njmaojing opened this issue Feb 23, 2024 · 0 comments

Comments

@njmaojing
Copy link

[root@localhost mongo-shake-v2.8.4]# ./mongoshake-stat --port=9100
Traceback (most recent call last):
  File "./mongoshake-stat", line 36, in __get_json
    resp = urllib2.urlopen("http://%s:%s/%s" % (host, port, spec)).read()
  File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 1244, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 111] Connection refused>
failed
[root@localhost mongo-shake-v2.8.4]# ss -ntpl|grep 9100
[root@localhost mongo-shake-v2.8.4]# ss -ntpl|grep 9101
LISTEN     0      32768       :::9101                    :::*                   users:(("collector.linux",pid=13818,fd=55))

9100的端口可以调用成功
curl -s http://127.0.0.1:9101/progress | python -m json.tool

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