Repository navigation
v4: An aria2 on the same machine can be the downloader - #3644
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
ltdrdata
marked this pull request as ready for review
December 2, 2026 10:17
With aria2 as the downloader, the Manager asks aria2 to save a file into `/models/...` or `/custom_nodes`, which is where the container of `docs/en/use_aria2.md` sees the folders of ComfyUI. An aria2 that runs on the same machine without a container cannot write there, and its downloads failed. - With `COMFYUI_MANAGER_ARIA2_SAME_PATHS=true` the Manager gives aria2 each folder as ComfyUI sees it. Without it nothing changes - The error for a file that is not where ComfyUI reads it points to `docs/en/use_aria2.md` without naming one of the two setups - `docs/en/use_aria2.md` describes an aria2 on the same machine - Add tests and a CHANGELOG entry The same change for main is #2999. Co-authored-by: ViolinKaine <125495038+ViolinKaine@users.noreply.github.com>
ltdrdata
force-pushed
the
fix/v4-aria2-same-paths
branch
from
December 2, 2026 10:28
310b175 to
b349b2f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent and scope
With aria2 as the downloader, the Manager asks aria2 to save a file into
/models/...or/custom_nodes. That is where the container ofdocs/en/use_aria2.mdsees the folders of ComfyUI. An aria2 that runs on the same machine as ComfyUI, without a container, cannot write there, and every download through it fails. WithCOMFYUI_MANAGER_ARIA2_SAME_PATHS=truethe Manager now gives aria2 each folder as ComfyUI sees it. Without the variable nothing changes.This is the counterpart of #2999 on
main, with the branches of its code. #2999 picks the form by whether ComfyUI itself runs in Docker, which breaks the documented setup of ComfyUI on the host and aria2 in a container; here, and in the maintainer commit on #2999, the form is picked by the variable.cm-cli.config.inikey, as for the other two aria2 variables.Changes
aria2_download_urlpicks the folder for aria2 byCOMFYUI_MANAGER_ARIA2_SAME_PATHS. Withtrue, aria2 getsmodel_diras it is. Otherwise a folder under ComfyUI is given with the ComfyUI folder as/, as before. Module:comfyui_manager/common/manager_downloader.py./. It points todocs/en/use_aria2.md, which now has both setups.docs/en/use_aria2.md: a section for an aria2 on the same machine.tests/test_aria2_download.py: the folder that aria2 gets, with and without the variable, for a models folder,custom_nodesand a folder outside ComfyUI.CHANGELOG.md: one entry underUnreleased.Verification
A real aria2 1.37.0 daemon and a real ComfyUI (
eada43db0) with the Manager of each commit, glob server, on Linux, with aria2p 0.12.3,COMFYUI_MANAGER_ARIA2_SERVERandCOMFYUI_MANAGER_ARIA2_SECRETset. The model goes through theinstall_modelroute, the nodepack through the install task and throughcm-cli install.aria2 runs in one of two placements.
mapped: it sees themodelsandcustom_nodesfolders of this ComfyUI as/modelsand/custom_nodes, as the container of the doc does (here abwrapmount namespace, not Docker).plain: it runs on this machine as it is.fdc9c1177310b175b4mapped, no variable: the modeltaesd_decoder.pth, the nodepack by the install task,cm-cli installplain, no variable: the modeltaesd_encoder.ptharia2 failed to download '<url>' into '/models/vae_approx': Download aborted.plain,COMFYUI_MANAGER_ARIA2_SAME_PATHS=true: the model, the nodepack by the install task,cm-cli install<ComfyUI>/models/vae_approxand<ComfyUI>/custom_nodes(file of 4,912,826 bytes)mapped, with the variable: the modeltaesdxl_decoder.ptharia2 saved 'taesdxl_decoder.pth' into its '<ComfyUI>/models/vae_approx', but the file is not at '<ComfyUI>/models/vae_approx/taesdxl_decoder.pth'. See docs/en/use_aria2.md for where aria2 must see the folders of ComfyUI.310b175b4is the head before a change to the test file alone: the cases that name the POSIX folder aria2 gets are skipped on Windows. The headb349b2f14has the same product code.The models (
madebyollin/taesdon GitHub) and the nodepack (ComfyUI_SigmoidOffsetScheduler1.1.1 of the registry) are real. The check of the verify skill passes on each run with 6 of 6.Steps and outcomes: before · after · after, with the variable · scripts
Results
b349b2f14onmanager-v4fdc9c1177, Linux, Python 3.12.3.tests/test_aria2_download.py: 1 failed, 7 passed on the base (output), 8 passed on the head (output).python -m pytest tests --ignore=tests/e2e --ignore=tests/playwright): 4718 passed, 17 skipped on the head (output), 4715 passed, 17 skipped on the base (output).ruff check .passes.tests/e2e,tests/playwright. The nodepack has no requirements, so pip and uv do not differ here.