Skip to content

user-directory and base-directory args being ignored in DB setup #14524

Description

@EliteIzzy

Custom Node Testing

Expected Behavior

The comfyui.db file should be created in the user directory specified by the --user-directory and --base-directory arguments.

Actual Behavior

ComfyUI will create the db file in the install location's user folder, and if it doesn't have permission or the user folder does not exist, it will error.

Steps to Reproduce

Install comfyui fresh, then try launch with --user-directory arg set to any custom path (and make sure it exists).

It will create the .db file in the install location, and create only a "default" directory in the custom path user directory.

(exact same thing occurs with the --base-directory argument)

Debug Logs

No logs, as technically not erroring, just ignoring the argument.

Other

This bug has seemingly existed for a while, previous versions from last year also have this issue. I'm running it from latest source code, on Rocky linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential BugUser is reporting a bug. This should be tested.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions