https://prefect.io logo
#prefect-server
Title
# prefect-server
e

Elliot Oram

01/04/2022, 4:30 PM
Hi all, When I try an do
prefect agent local start --api <http://prefect-server-url-goes-here:4200>
(replacing the
perfect-server-url-goes-here
with the actual server address) I get a connection refused. There is a prefect server running on that machine and I have whitelisted my local IP for port 4200 on that machine. Not too sure how to go about debugging this one so any pointers would be greatly appreciated.
Copy code
[2022-01-04 16:27:48,100] INFO - agent | Registering agent...
Traceback (most recent call last):
  File "/Users/elliotoram/dev/pipeline/venv/lib/python3.9/site-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/Users/elliotoram/dev/pipeline/venv/lib/python3.9/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/Users/elliotoram/dev/pipeline/venv/lib/python3.9/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused
k

Kevin Kho

01/04/2022, 4:31 PM
Did you start your server with the
--expose
flag?
e

Elliot Oram

01/04/2022, 4:35 PM
Genius! Thanks @Kevin Kho that worked like a charm
k

Kevin Kho

01/04/2022, 4:35 PM
Nice!