Tinh
03/12/2025, 2:24 PMprocess-worker
process-worker-1 | 11:44:43.890 | WARNING | prefect.events.clients - Unable to connect to '<ws://server:4200/api/events/in>'. Please check your network settings to ensure websocket connections to the API are allowed. Otherwise event data (including task run data) may be lost. Reason: [Errno -3] Temporary failure in name resolution.
process-worker-1 | httpcore.ConnectError: All connection attempts failed
and for docker-worker
docker-worker-1 | 11:44:43.880 | ERROR | GlobalEventLoopThread | prefect._internal.concurrency - Service 'EventsWorker' failed with 1 pending items.
docker-worker-1 | Worker 'DockerWorker c2c5aac2-9852-43d1-8462-b9e1192d0bd1' stopped!
docker-worker-1 | httpcore.ConnectError: All connection attempts failed
How can I overcome this?Marvin
03/12/2025, 2:25 PMHTTPS_PROXY
and SSL_CERT_FILE
) are set correctly in your execution environment. More details on using Prefect with proxies can be found here.
2. Environment Variables: Double-check that the PREFECT_API_URL
is correctly set in the environment where your workers are running. This is crucial for the workers to connect to the Prefect API. Documentation on setting these variables can be found here.
3. Docker Network: If you're using Docker, ensure that the network configuration in your docker-compose
file allows communication between the containers. You might need to specify a custom network or ensure that the default bridge network is set up correctly.
4. Version Issues: There have been some issues reported in recent versions of Prefect (like the one noted in this GitHub issue). Consider checking if your issue aligns with any known bugs and possibly downgrading to a stable version if necessary.
5. Logs and Debugging: Review logs for any additional errors or warnings that might provide more context. Sometimes, additional log levels can be enabled to get more detailed output for debugging.
If these steps don't resolve your issue, consider posting a detailed question on the Prefect Discourse or GitHub discussions for more tailored support.