LogoWonderful Launcher
  • Home
  • Pricing
  • Docs
  • Download
Troubleshooting TreeStartup FailedRepair Portable DependenciesComfyUI Common Issues and Fast FixesReconnecting ErrorFailed to Fetch LogsCUDA Out of MemoryResource Package Download FailedTop 10 Errors
Troubleshooting

ComfyUI Reconnecting Error: Fix the Stuck UI

Partially verifiedLow riskTested on Windows 10, Windows 11 | portable | Python 3.11+ | CUDA 12.x | Torch 2.x | ComfyUI reconnecting loop, websocket path, and custom node isolationLast verified 2026-06-04Estimated time 5-20 minutes

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 Launcher

If 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:

  1. Look at the ComfyUI terminal. If it already closed or shows a traceback, treat this as a backend crash.
  2. Open http://127.0.0.1:8188 locally before testing a LAN IP, reverse proxy, or remote URL.
  3. 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 SeeMost Likely CauseFirst Check
Browser says "Reconnecting..." and terminal closedServer crashedReopen the terminal log
Browser reconnects after a refreshFrontend websocket droppedCheck browser console and extensions
Reconnecting starts after installing nodesCustom node or frontend extension conflictStart with custom nodes disabled
Reconnecting starts during generationGPU memory, crash, or long blocking taskCheck terminal for the first error
Reconnecting happens only on LAN or remote accessFirewall, proxy, VPN, or bind addressTest from localhost first
failed to fetch server logs appears tooLog endpoint failed after the UI lost contactUse 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:8188

Use 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
ConnectionResetError

Everything 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-nodes

For the Windows portable package, create a copy of your launch batch file and add:

--disable-all-custom-nodes

If 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:

  1. Re-enable half of the custom nodes.
  2. Restart ComfyUI.
  3. If reconnecting returns, the bad node is in that half.
  4. 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.

  1. Confirm which Python environment is active (where python or which python)
  2. Inspect requirements.txt — check if it pins torch, numpy, or opencv versions
  3. Install only the missing package when possible: pip install <package-name>
  4. Run pip check after 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:8188 instead 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 :8188

If the port is busy, start ComfyUI on another port:

python main.py --port 8189

Then open:

http://127.0.0.1:8189

If 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 --lowvram if 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

TriggerBest Next Guide
Reconnecting started after a plugin or Manager updateComfyUI Failed to Get Custom Node List
Terminal closes before the page fully loadsComfyUI Startup Failed? How to Diagnose and Recover Faster
Reconnecting starts only after QueuePython Out of Memory in ComfyUI
The UI opens but workflows show red nodesHow to Fix ComfyUI Plugin Import Failed Errors
You updated packages and things broke in bulkComfyUI 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:

DetailWhy It Matters
Install type: Desktop, Portable, Manual, or comfy-cliFix steps differ by environment
Full terminal log from startup to reconnectingShows the first real failure
Browser Console errorsConfirms websocket or frontend issues
Recent changesUpdates and new custom nodes are often the trigger
Workflow that reproduces itSeparates workflow errors from startup errors
GPU, Python, PyTorch, and ComfyUI versionsCatches 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

  • Official ComfyUI troubleshooting overview
  • Official custom node troubleshooting guide
  • Official ComfyUI update troubleshooting

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 Launcher
Related guides:Fix failed server log fetchesDiagnose startup failuresRepair dependency conflicts

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 Launcher

Did 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.

Table of Contents

Fast Answer
Quick Diagnosis
Step 1: Check Whether the Server Is Still Alive
Step 2: Read the First Real Error in the Terminal
Step 3: Test Without Custom Nodes
Step 4: Update Frontend and Requirements Together
Step 5: Check Browser and Websocket Issues
Step 6: Check Port and Firewall Problems
Step 7: Check GPU or Memory Crashes During Generation
Best Next Step by Trigger
When Reinstalling Is the Wrong First Move
How Wonderful Launcher Helps
What to Send When Asking for Help
FAQ
Why does ComfyUI keep saying Reconnecting...?
Is failed to fetch server logs the same as reconnecting?
Should I use localhost or 127.0.0.1 for ComfyUI?
Related Guides
Source References