#ComfyUI: "Failed to connect to server at http://127.0.0.1:8188 after 500 attempts" on serverless

7 messages · Page 1 of 1 (latest)

hidden raft
#

Hi everyone, help would be greatly appreciated! 🙂 We're trying to move from permanent Pods to serverless and ran into this brickwall.
We're having a sales call with Runpod on Monday so it's time sensitive.
I followed the official instructions at https://github.com/runpod-workers/worker-comfyui . I've opened the port on the serverless endpoint but it does not solve the issue.
We're using the Dockerfile from the official repo with slight modifications. Any ideas?

GitHub

ComfyUI as a serverless API on RunPod. Contribute to runpod-workers/worker-comfyui development by creating an account on GitHub.

late spearBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

harsh pier
#

Just add more time, you're loading needs more time

#

Set an env in the endpoint
COMFY_POLLING_MAX_RETRIES

#

The value should be more than 700 I guess for your case

#

Try more than 500 attempts

hidden raft
#

Thank you @harsh pier for the help! I had to tweak COMFY_API_AVAILABLE_MAX_RETRIES in rp_handler instead, but it did resolve the issue