Skip to content

ComfyUI Desktop Directory mismatch, worker not loading, & bandaid-fix #77

Description

@Krindus

Was getting the error "[Distributed] Warning: Could not reliably determine ComfyUI root directory" and local Workers were not connecting locally.

ComfyUI desktop installs in two different directories. the appdata directory: "C:\Users{Username}\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI"
And whatever custom directory you picked on install for nodes and models and venv. Because ComfyUI manager installs nodes into the custom directory, the installed node for Distributed never checks the appdata directory for the root install path of comfy.

To fix this I modified 'distributed.py' in {customdirectory}\Comfy2\custom_nodes\ComfyUI-Distributed,
Line 831:
830| # Return the initial guess as fallback
831| return os.path.expandvars(r"C:\Users\{username}\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI")

workers seem to load now.

Hopefully this will help some people.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions