https://prefect.io logo
#prefect-community
Title
# prefect-community
i

ibrahem

07/13/2022, 2:20 PM
Hi ... I'm having an issue with the local agent it has been working fine for days and suddenly after restarting the prefect server the agent wont run!. when I do prefect local agent start it seems that it runs okay in terminal (agent registration successful) but after a while I get this error: requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=4200): Max retries exceeded with url: / (Caused by ReadTimeoutError("HTTPConnectionPool(host='localhost', port=4200): Read timed out. (read timeout=15)")) Appreciate your help
2
Here is the config file. How I run the server: prefect server start --ui-port 8081 --expose -ep How I run the Agent: prefect agent local start
o

Octopus

07/13/2022, 3:34 PM
I don't know if it can help you but I have to manually configure the ip server and ui earlier. Here's my config.toml content
[server]
host = "<http://localhost>"
port = "4200"
host_port = "4200"
host_ip = "0.0.0.0"
endpoint = "${server.host}:${server.port}"
[server.ui]
host = "<http://localhost>"
host_ip = "0.0.0.0"
port = "8080"
host_port = "8080"
endpoint = "${server.ui.host}:${server.ui.port}"
apollo_url = "/graphql"
🙏 1
i

ibrahem

07/13/2022, 4:18 PM
Thanks @Octopus not sure which line solved it but I've copied some parts of your config file and it works now. Really frustrating but I'll dive deeper later. thanks again
🙌 1