Hi all, When I try an do `prefect agent local star...
# prefect-server
e
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
Did you start your server with the
--expose
flag?
e
Genius! Thanks @Kevin Kho that worked like a charm
k
Nice!