You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, cloudburst is a good project! I want run test in local mode but meet some error when CloudburstConnection. Here, I print some log in cloudburst/client/client.py, the code is as follows:
def _connect(self):
sckt = self.context.socket(zmq.REQ)
sckt.setsockopt(zmq.RCVTIMEO, 1000)
sckt.connect(self.service_addr % CONNECT_PORT)
sckt.send_string('')
print("before-try")
try:
print("try")
result = sckt.recv_string()
print("after-try")
return result
except zmq.ZMQError as e:
print("zmqerro")
print(e)
if e.errno == zmq.EAGAIN:
return None
else:
raise e
the test result:
$ python3
Python 3.7.0 (default, Mar 4 2022, 02:48:37)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cloudburst.client.client import CloudburstConnection
>>> local_cloud = CloudburstConnection('127.0.0.1', '127.0.0.1', local=True)
before-try
try
zmqerro
Resource temporarily unavailable
Connection timed out, retrying
before-try
try
zmqerro
Resource temporarily unavailable
Connection timed out, retrying
before-try
try
zmqerro
Resource temporarily unavailable
Connection timed out, retrying
before-try
try
^CTraceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/chunpu/cloudburst/cloudburst/client/client.py", line 66, in __init__
kvs_addr = self._connect()
File "/home/chunpu/cloudburst/cloudburst/client/client.py", line 341, in _connect
result = sckt.recv_string()
File "/home/chunpu/.pyenv/versions/3.7.0/lib/python3.7/site-packages/zmq/sugar/socket.py", line 584, in recv_string
msg = self.recv(flags=flags)
File "zmq/backend/cython/socket.pyx", line 788, in zmq.backend.cython.socket.Socket.recv
File "zmq/backend/cython/socket.pyx", line 824, in zmq.backend.cython.socket.Socket.recv
File "zmq/backend/cython/socket.pyx", line 186, in zmq.backend.cython.socket._recv_copy
File "zmq/backend/cython/checkrc.pxd", line 12, in zmq.backend.cython.checkrc._check_rc
KeyboardInterrupt
port 5000 is open
$ lsof -i:5000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
python3 54472 chunpu 29u IPv4 74598688 0t0 TCP *:5000 (LISTEN)
hello, cloudburst is a good project! I want run test in local mode but meet some error when CloudburstConnection. Here, I print some log in
cloudburst/client/client.py
, the code is as follows:so what is the reason of ZMQError(Resource temporarily unavailable), I have confused about it for a long time, can you help me?
Thank you!
The text was updated successfully, but these errors were encountered: