A Complete Field Log of Upgrades, Mirror Resolution, and Node
Troubleshooting Based on Local ComfyUI Desktop Logs
From October to
November, I clicked the update button in ComfyUI more times than I can count.
It wasn't until late November that workflows finally ran smoothly and reliably.
On the final
successful attempt, the updater installed 6 dependency packages in 56 seconds.
Prior to that, similar update attempts failed 26 times with exit code 2, the source code was automatically rolled back 21
times, and requests to pypi.org failed 76
times.
The most puzzling
part: I had already configured a domestic PyPI mirror beforehand, yet the
updater stubbornly kept hitting pypi.org. And once the core upgrade finally went through, node errors, red
startup warnings, and model-loader mismatches followed right behind.
Instead of generic
advice, this post walks through the exact troubleshooting trail recorded on
this machine over more than a month (all metrics and error logs below come
directly from local logs under AppData\Roaming\Comfy
Desktop\logs and E:\Comfy-Desktop\...\logs).
1. Checking the
Baseline: What Was Initially Installed?
This machine
started with ComfyUI Desktop,
bundled with an environment manifest tagged v0.42.1-env1 (packaged on
October 22, 2026). The core component versions were as follows:
|
Component |
Version |
|
ComfyUI Core |
0.42.1 |
|
Python |
3.13.12 |
|
torch |
2.12.1+cu130 |
|
torchvision / torchaudio |
0.27.1 / 2.11.0 |
|
ComfyUI-Manager |
4.2.2 |
|
Frontend Package / Workflow
Templates |
1.55.18 / 0.11.89 |
Two architectural
traits of this setup directly shaped the troubleshooting process:
1. torch
is pinned in vendor dependencies: Installing other
Python packages via pip does not automatically upgrade PyTorch or overwrite the underlying
GPU compute stack.
2. An
isolated Python environment: It avoids interfering
with system Python or other projects, but it also means multiple environments
can coexist on the same machine—always verify which runtime actually launched.
|
Pro Tip: When the UI version number doesn't match your actual
runtime environment, don't trust the interface—check the startup log. These
three lines reflect what the active process truly loaded: |
|
[INFO] ComfyUI version: 0.46.1 |
2. Why Did Clicking
Update Leave the Version Number Unchanged?
Between October 19
and November 21, key error events appeared in the logs with the following
frequencies:
|
Log Event |
Occurrences |
|
requirements install exited with code 2 |
26 times |
|
ComfyUI source was rolled back to ... |
21 times |
|
Failed to fetch
https://pypi.org/simple/... |
76 times |
Many users assume
a failed update means new code was never fetched. In reality, the exact
opposite happens. Each click on Update executes a three-step pipeline under the
hood:

Figure 1 | Under the hood: the updater switches source commits
first, then installs dependencies—rolling back on failure.
1. Record
the current commit: Logs the active Git commit hash
as PRE_UPDATE_HEAD.
2. Switch
to the target code first: Fetches and checks out
the new release, logging POST_UPDATE_HEAD.
3. Install
dependencies: Invokes uv to install requirements.txt.
Only when this succeeds does the new release stay; if it fails, the source is
immediately reverted to PRE_UPDATE_HEAD.
The logs captured
this "upgrade-then-revert" cycle clearly:
|
[PRE_UPDATE_HEAD] 71096d1a... <- Before update: v0.45.3 |
After three
consecutive retries, uv gave up:
|
Using Python 3.13.12 environment at:
ComfyUI\.venv |
os error 11001 is a Windows DNS hostname
resolution failure—meaning the machine could not resolve pypi.org via DNS at
the time, causing dependency installation to fail and triggering an automatic
source rollback.
3. The Biggest Trap:
Why Did the Updater Ignore My Configured Mirror?
This was the most
overlooked blind spot in the entire investigation: a configured domestic mirror allowed pip to install packages normally,
but the ComfyUI Desktop updater uses uv, not pip. Their configuration files
are not identical, and uv does not read pip.ini.
Inspecting the
Desktop application bundle revealed that https://pypi.org/simple appears
22 times in the codebase, and PYPI_INDEX_URL defaults to that URL. What actually determines the updater's
package index is this function:
|
getPipIndexArgs(pypiMirror,
useChineseMirrors) |
• pypiMirror takes top
priority: When set, the updater passes it as --index-url; when
omitted, the index falls back to pypi.org.
• useChineseMirrors does not
cover uv: It primarily governs binary/app downloads
rather than Python dependency resolution inside uv.
Opening settings.json
confirmed the root cause: useChineseMirrors was set to true, but pypiMirror was missing altogether. The fix came down to three steps:
|
Target |
Configuration |
Effect |
|
settings.json |
"pypiMirror":
"https://mirrors.aliyun.com/pypi/simple/" |
Highest
priority; directly overrides default pypi.org |
|
Environment Variables |
Set
UV_DEFAULT_INDEX
/ UV_INDEX_URL
to mirror URL |
Inherited
by Desktop at launch as a fallback for uv |
|
Process Restart |
Fully quit Desktop from the
system tray and relaunch |
Settings
do not hot-reload; closing the window alone isn't enough |
After updating the
config, I ran a --dry-run check to verify uv was actually routing through the mirror:
|
uv pip install --dry-run pydantic |
Resolution
completed in 297 ms via the mirror without touching pypi.org. After relaunching
Desktop and clicking Update again on the afternoon of November 21, the log
finally printed the long-awaited result:
|
Installed 6 packages in 56.56s |
No code 2, no source
rollback—v0.46.1 finally stuck.
4. Core Upgraded—Now
Five Custom Nodes Bring Three Different Risks
Once core updates
worked, managing custom nodes became a separate battle. The five nodes
installed on this machine spanned all three common installation sources:
|
Custom Node |
Source |
Git Managed? |
|
comfyui-sol-attn |
Manual
folder copy |
No |
|
ComfyUI-GGUF |
GitCode
mirror |
Yes,
but lagging upstream |
|
ComfyUI-KJNodes |
Official
GitHub |
Yes |
|
comfyui_controlnet_aux |
Official
GitHub |
Yes |
|
ComfyUI-piFlow |
Manual
folder copy |
No |

Figure 2 | Three ways custom nodes arrive—and how each one
behaves when updates or rollbacks are needed.
Each installation
path comes with distinct trade-offs:
1. Direct
GitHub Clone (Recommended): Use official
repositories whenever network access allows. KJNodes and controlnet_aux were
cloned directly around November 24, staying current and easy to roll back via
Git.
2. Mirror
Repositories (Watch for Stale Commits): ComfyUI-GGUF was
pulled from gitcode.com/gh_mirrors/co/ComfyUI-GGUF. While accessible, the mirror was frozen at an older commit from
January 12, 2026 (9ecc3c4 Add Gemma3
12B Support), effectively pinning the node to an
outdated release.
3. Manual
Folder Copies (No Rollback Path): sol-attn and piFlow won't be
altered unexpectedly by automated updaters, but without Git history, recovery
requires backing up, deleting the folder, and reinstalling from scratch.
5. Fifteen Days of
Startup Warnings Caused by an Empty Folder
After upgrading to
0.45.3, every startup log began emitting the same recurring warning:
|
[WARNING] Cannot import
...\custom_nodes\ComfyUI-GGUF_stale module for custom nodes: |
The culprit was
surprisingly trivial: during an earlier reinstall, a leftover directory named ComfyUI-GGUF_stale
remained inside custom_nodes without an __init__.py file.

Figure 3 | How ComfyUI scans custom_nodes at startup: missing
__init__.py triggers IMPORT FAILED without halting startup.
Because ComfyUI
still launched normally, I initially ignored it. As a result, that red warning
appeared across 27 startup logs over
15 days (November 14 to November 29), forcing me to verify on every reboot that
it was still just the same harmless residual error. Deleting the empty
directory on the morning of November 29 eliminated the warning immediately.
|
Lesson Learned: Never keep _bak, _old, or _stale backup folders inside custom_nodes—always move
backups outside that directory. |
6. Two "Fake
Environment Failures" After Reaching v0.46.1
Once the core
version stabilized, newly added nodes triggered two separate errors. Both
looked like environment breakage at first glance, yet their root causes were
completely different:
1.
OpenCV Dependency Failure: Trim the Requirements Instead of Fighting the Stack
The official
requirements for comfyui_controlnet_aux include OpenCV packages that failed to install under Python 3.13 +
torch 2.12. Rather than tearing down the environment, I created a trimmed file
named requirements.noopencv.txt that removed OpenCV and used albumentationsx instead. The
node loaded and generated images properly—trading away a few OpenCV-dependent
preprocessors to keep the main workflow running.
2.
piFlow Rejecting a Qwen Checkpoint: Just Switch the Loader
Loading qwen_image_2.1_bf16.safetensors through piFlow's custom loader threw an immediate exception:
|
[ERROR] no match {'image_model':
'qwen_image21', 'in_channels': 64, ...} |
The node wasn't
broken, and the environment wasn't incompatible—piFlow's internal
model-detection list simply hadn't added support for that architecture yet.
Passing the exact same checkpoint to ComfyUI's native UNETLoader worked without a
hitch.
|
Key Principle: A model is a model, and a loader is a loader. When one
loader doesn't recognize a checkpoint, never rush to downgrade your entire
Python/PyTorch environment. |
7. Who Triggered
Those 21 Rollbacks—And How to Debug Failed Generations
Looking across the
full timeline, "rollbacks" happened on two distinct layers:
• 21 Core-Level
Rollbacks: All 21 were automated Git reverts performed by the Desktop updater whenever
dependency installation failed—happening before launch, which is why startup
logs never showed versions stepping backward.
• 3 Node-Level Manual
Interventions: Targeted fixes for incompatible
commits, failing dependencies, and stale directories:
|
Scenario |
Mitigation Strategy |
Action Taken |
|
New
node incompatible with setup |
Pin to older commit |
GGUF stayed at
9ecc3c4,
passively locking a working build |
|
Dependency
fails to install |
Use trimmed manifest |
controlnet_aux switched
to requirements.noopencv.txt |
|
Leftover
folder spams warnings |
Delete entire directory |
Removed
ComfyUI-GGUF_stale;
startup logs cleaned up |
Whenever image
generation fails, follow this diagnostic sequence to eliminate 80% of wasted
effort:

Figure 4 | Troubleshooting sequence when generation fails: test
another loader first before touching the core environment.
One clear
oversight during this entire stretch: the
snapshots directory remained completely empty. ComfyUI-Manager includes a
built-in snapshot feature—taking one minute to save a snapshot before upgrading
core or installing major nodes saves hours of manual log digging later.
8. Six Takeaways From
a Month of Troubleshooting
1. Identify
which tool is installing packages: Working pip
configs don't guarantee updater success—ComfyUI Desktop updates via uv, which
uses separate settings.
2. Set
mirrors where the updater actually reads them: In
Desktop builds, pypiMirror in settings.json overrides pypi.org; environment
variables serve as a fallback.
3. Quit
Desktop completely from the system tray: Closing
the window leaves background processes running, preventing new settings from
loading.
4. Take
a snapshot before touching your environment: Use
ComfyUI-Manager's snapshot tool to give yourself a one-click rollback safety
net.
5. Keep
backup folders out of custom_nodes: Any subfolder
left inside custom_nodes—even an empty shell—gets scanned on every startup.
6. Swap
loaders before downgrading your environment: If a
native loader runs the checkpoint cleanly, your Python and PyTorch stack is
fine—leave it intact.
From hitting code
2 for the first time on October 19 to finally seeing Installed 6 packages on November 21, the process dragged on for over a month. Looking
back, what blocked the upgrade was never the new release itself—just an
unresolved DNS lookup and a single missing pypiMirror entry.