ComfyUI Reconnecting Error: Fix the Stuck UI
Fix ComfyUI stuck on Reconnecting by checking backend crashes, 127.0.0.1, custom nodes, VPN/proxy/firewall blocks, websocket drops, and GPU crashes.
Start with Wonderful Launcher if this issue touches your real ComfyUI environment. Use the docs to understand the fix, and use the app to inspect the machine you already have.
Download Wonderful LauncherIf ComfyUI is stuck on "Reconnecting...", the browser has lost its live connection to the ComfyUI server. Start with the backend terminal, not a reinstall.
In plain English, one of two things usually happened:
- the ComfyUI backend crashed, froze, or restarted
- the browser can no longer keep the websocket connection open
The fastest fix is not reinstalling. It is checking whether the server is still alive, then isolating whether the break is coming from custom nodes, a bad update, or a browser or network block.
30-second fix
Open the ComfyUI terminal first. If it has a traceback or closed, fix that backend error before touching the browser. If the terminal is still running, test http://127.0.0.1:8188 locally and then check VPN, proxy, firewall, or browser websocket blocks.
Fast Answer
If you searched for "ComfyUI reconnecting error", do these three checks first:
- Look at the ComfyUI terminal. If it already closed or shows a traceback, treat this as a backend crash.
- Open
http://127.0.0.1:8188locally before testing a LAN IP, reverse proxy, or remote URL. - If reconnecting started after installing or updating nodes, restart once with custom nodes disabled.
If the terminal is gone or you cannot read the log clearly, start with ComfyUI Failed to Fetch Server Logs. If the problem started right after plugin work, also check ComfyUI Dependency Conflicts and ComfyUI Failed to Get Custom Node List.
Quick Diagnosis
| What You See | Most Likely Cause | First Check |
|---|---|---|
| Browser says "Reconnecting..." and terminal closed | Server crashed | Reopen the terminal log |
| Browser reconnects after a refresh | Frontend websocket dropped | Check browser console and extensions |
| Reconnecting starts after installing nodes | Custom node or frontend extension conflict | Start with custom nodes disabled |
| Reconnecting starts during generation | GPU memory, crash, or long blocking task | Check terminal for the first error |
| Reconnecting happens only on LAN or remote access | Firewall, proxy, VPN, or bind address | Test from localhost first |
failed to fetch server logs appears too | Log endpoint failed after the UI lost contact | Use ComfyUI Failed to Fetch Server Logs after checking the terminal |
Step 1: Check Whether the Server Is Still Alive
Open the ComfyUI terminal window. If the terminal is gone, frozen, or shows a traceback, treat the reconnecting message as a server-side failure.
If the terminal is still running, try opening:
http://127.0.0.1:8188Use 127.0.0.1 before testing a LAN IP, reverse proxy, or remote address. This separates local ComfyUI problems from network access problems.
If you changed the port, use that port instead of 8188.
Step 2: Read the First Real Error in the Terminal
Do not start with the last line. Scroll up and look for the first serious error:
Traceback (most recent call last):
ModuleNotFoundError
ImportError
CUDA out of memory
RuntimeError
ConnectionResetErrorEverything after the first error may be a secondary symptom. For example, a plugin import failure can break the server, and the browser only reports the visible reconnecting state.
The official ComfyUI troubleshooting guide also recommends collecting terminal logs, browser console errors, installed custom nodes, and reproduction steps before reporting a bug.
Step 3: Test Without Custom Nodes
Custom nodes are a common reason ComfyUI starts reconnecting after an update or plugin install.
For a manual install, run:
python main.py --disable-all-custom-nodesFor the Windows portable package, create a copy of your launch batch file and add:
--disable-all-custom-nodesIf ComfyUI works with custom nodes disabled, the core install is probably fine. The problem is likely one custom node, one frontend extension, or a dependency installed by a custom node.
Then narrow it down:
- Re-enable half of the custom nodes.
- Restart ComfyUI.
- If reconnecting returns, the bad node is in that half.
- Repeat until you find the plugin.
For deeper plugin failures, use How to Fix ComfyUI Plugin Import Failed Errors.
If ComfyUI Manager stopped loading node metadata or plugin lists before the reconnecting loop started, check ComfyUI Failed to Get Custom Node List.
Step 4: Update Frontend and Requirements Together
Some reconnecting problems happen after updating only part of the stack.
If you update ComfyUI with git pull, also update dependencies in the same environment.
Do not run pip install -r requirements.txt blindly.
- Confirm which Python environment is active (
where pythonorwhich python) - Inspect
requirements.txt— check if it pins torch, numpy, or opencv versions - Install only the missing package when possible:
pip install <package-name> - Run
pip checkafter installation to verify no conflicts were introduced
If you use the portable package, use the bundled Python, not a random system Python. A common mistake is installing packages into the wrong environment and then wondering why ComfyUI still fails.
For update-related dependency problems, see ComfyUI Dependency Conflicts.
Step 5: Check Browser and Websocket Issues
If the server is alive but the browser keeps reconnecting, check the browser side.
Try:
- reload the page with
Ctrl+F5 - use Chrome or Edge with extensions disabled
- open DevTools, then check the Console and Network tabs
- test
http://127.0.0.1:8188instead of a LAN or proxy address - temporarily disable VPN, proxy, or aggressive antivirus web filtering
ComfyUI relies on a live browser-to-server connection. Browser extensions, proxy tools, remote tunnels, and corporate security software can interrupt that connection even when the Python server is healthy.
If reconnecting happens only in one browser profile, that is a strong sign the backend is probably okay and the break is in the frontend path, not the workflow.
Step 6: Check Port and Firewall Problems
If another app is using port 8188, ComfyUI may fail to bind correctly or you may connect to the wrong process.
On Windows, check the port:
netstat -ano | findstr :8188If the port is busy, start ComfyUI on another port:
python main.py --port 8189Then open:
http://127.0.0.1:8189If you access ComfyUI from another device, make sure the firewall allows the port and that ComfyUI is actually listening on the right network interface.
Step 7: Check GPU or Memory Crashes During Generation
If reconnecting appears only after pressing Queue or while a workflow is running, check for runtime crashes:
- CUDA out of memory
- driver reset
- model architecture mismatch
- custom node execution error
- Python process killed by the OS
Try a smaller workflow:
- lower resolution
- reduce batch size
- close other GPU-heavy apps
- test with the default workflow
- run with
--lowvramif your GPU is tight
If the terminal shows CUDA out of memory, see Python Out of Memory in ComfyUI and GPU Compatibility.
Best Next Step by Trigger
| Trigger | Best Next Guide |
|---|---|
| Reconnecting started after a plugin or Manager update | ComfyUI Failed to Get Custom Node List |
| Terminal closes before the page fully loads | ComfyUI Startup Failed? How to Diagnose and Recover Faster |
| Reconnecting starts only after Queue | Python Out of Memory in ComfyUI |
| The UI opens but workflows show red nodes | How to Fix ComfyUI Plugin Import Failed Errors |
| You updated packages and things broke in bulk | ComfyUI Dependency Conflicts |
When Reinstalling Is the Wrong First Move
Reinstalling can hide the real cause and cost you time if you already have:
- downloaded models
- custom nodes
- working workflows
- project-specific settings
- client or production assets
Use reinstall only after you know whether the problem is core ComfyUI, a custom node, a dependency conflict, or a network or browser issue.
Recovery rule
If the environment worked before a plugin install or update, preserve the environment first and isolate the change before rebuilding from zero.
How Wonderful Launcher Helps
Wonderful Launcher is designed for the phase where a ComfyUI environment is no longer a clean install:
- plugins changed dependencies
- startup logs contain multiple failures
- a custom node update broke the frontend
- you need to preserve models and workflows
- you want a clearer recovery path than random shell commands
If reconnecting keeps returning after custom node or dependency work, start with Wonderful Launcher before wiping the environment.
What to Send When Asking for Help
Send these details:
| Detail | Why It Matters |
|---|---|
| Install type: Desktop, Portable, Manual, or comfy-cli | Fix steps differ by environment |
| Full terminal log from startup to reconnecting | Shows the first real failure |
| Browser Console errors | Confirms websocket or frontend issues |
| Recent changes | Updates and new custom nodes are often the trigger |
| Workflow that reproduces it | Separates workflow errors from startup errors |
| GPU, Python, PyTorch, and ComfyUI versions | Catches runtime mismatches |
FAQ
Why does ComfyUI keep saying Reconnecting...?
The browser lost the live websocket connection to the ComfyUI backend. The backend may have crashed, a custom node may have broken startup, or the browser/network path may be blocking the connection.
Is failed to fetch server logs the same as reconnecting?
Not exactly. Failed to fetch server logs is often a second symptom after the browser cannot reach the backend log endpoint. If that is the exact message you see, use the Failed to Fetch Server Logs guide after checking the terminal.
Should I use localhost or 127.0.0.1 for ComfyUI?
Use http://127.0.0.1:8188 first when diagnosing. If that works but a LAN IP, reverse proxy, or remote URL fails, the problem is probably network binding, firewall, VPN, proxy, or browser access rather than ComfyUI itself.
Related Guides
- ComfyUI Failed to Fetch Server Logs
- ComfyUI Startup Failed? How to Diagnose and Recover Faster
- How to Fix ComfyUI Plugin Import Failed Errors
- ComfyUI Dependency Conflicts
- ComfyUI Common Issues and Fast Fixes
Source References
Start with Wonderful Launcher if this issue touches your real ComfyUI environment. Use the docs to understand the fix, and use the app to inspect the machine you already have.
Download Wonderful LauncherStart with Wonderful Launcher if this issue touches your real ComfyUI environment. Use the docs to understand the fix, and use the app to inspect the machine you already have.
Download Wonderful LauncherDid this fix your issue?
Your answer helps prioritize verified ComfyUI repairs.
ComfyUI Common Issues and Fast Fixes
Fast fixes for common ComfyUI problems — CUDA errors, red nodes, missing models, prompt has no outputs, slow generation, and reconnecting.
Failed to Fetch Logs
Fix the ComfyUI "failed to fetch server logs" error by checking the backend terminal, 127.0.0.1, browser requests, proxy or firewall blocks, and custom nodes.