This message was deleted.
# prefect-community
s
This message was deleted.
q
Copy code
Result check: OK
Traceback (most recent call last):
  File "/home/tanmay/.local/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/tanmay/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
  File "/home/tanmay/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/tanmay/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "/home/tanmay/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 392, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.6/http/client.py", line 1264, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1310, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1259, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1038, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 976, in send
    self.connect()
  File "/home/tanmay/.local/lib/python3.6/site-packages/urllib3/connection.py", line 187, in connect
    conn = self._new_conn()
  File "/home/tanmay/.local/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f040ed2e160>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/tanmay/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/tanmay/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 725, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/tanmay/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 439, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.42.92', port=4200): Max retries exceeded with url: /graphql/graphql/alpha (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f040ed2e160>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "main.py", line 308, in <module>
    flow.register()
  File "/home/tanmay/.local/lib/python3.6/site-packages/prefect/core/flow.py", line 1429, in register
    no_url=no_url,
  File "/home/tanmay/.local/lib/python3.6/site-packages/prefect/client/client.py", line 640, in register
    version_group_id=version_group_id,
  File "/home/tanmay/.local/lib/python3.6/site-packages/prefect/client/client.py", line 218, in graphql
    token=token,
  File "/home/tanmay/.local/lib/python3.6/site-packages/prefect/client/client.py", line 178, in post
    token=token,
  File "/home/tanmay/.local/lib/python3.6/site-packages/prefect/client/client.py", line 304, in _request
    response = <http://session.post|session.post>(url, headers=headers, json=params, timeout=30)
  File "/home/tanmay/.local/lib/python3.6/site-packages/requests/sessions.py", line 578, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/tanmay/.local/lib/python3.6/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/tanmay/.local/lib/python3.6/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/home/tanmay/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.42.92', port=4200): Max retries exceeded with url: /graphql/graphql/alpha (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f040ed2e160>: Failed to establish a new connection: [Errno 111] Connection refused',))
c
Registering a flow and running an agent are two separate steps; based on the traceback you’ve provided this error is occurring when you register your flow and is unrelated to agents. Assuming you are running on Prefect server, it appears that your backend is not accepting traffic
Unfortunately this traceback in isolation is not enough information to properly debug
q
c
There’s still not enough information provided for me to help; the error tells me that you don’t have the server properly running
I think you would benefit a lot from registering and running a few flows with Prefect Cloud first so you get a feel for how the components interact, and then if you still think you want to deploy your own backend / API revisiting it at that time
q
Okay, sure... I will do this only 🙂 Thanks
c
👍 👍