Skip to content

Model Sharing via SymLinks instead of Junctions? #991

@richardm1

Description

@richardm1

What happened?

I've used Select new Models Folder to move my models to a network share.

The "symlink" models sharing option (in the ComfyUI package three-dots menu) actually creates directory junctions rather than symbolic links which can refer to local volumes but not network drives. The junctions are created successfully but they're inoperative:

OSError: [WinError 4392] The data present in the reparse point buffer is invalid: 'D:\\SM\\Data\\Packages\\ComfyUI\\models\\controlnet\\ControlNet'

I believe symlinks would work for referencing network drives and could potentially replace directory junctions altogether for use within SM. Unfortunately the creation of symlinks requires administrator rights unless the system's local security policy has been modified to permit ordinary users.

I'm happy to help test any ideas for working around this issue.

Steps to reproduce

  1. Relocate Models folder to a network share.
  2. Change Models location with SM configuration -- relaunch.
  3. Configure ComfyUI package for "symlink" style model sharing.
  4. Launch ComfyUI -- observe OSError: [WinError 4392] The data present in the reparse point buffer is invalid

Relevant logs

SM logs only show `Failed to connect to Inference backend|Refit.ApiException: Response status code does not indicate success: 500 (Internal Server Error)` due to ComfyUI not starting successfully.

Version

2.13.0-dev.3+f5113af

What Operating System are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleStale issue or inactive for long period of time

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions