lllyasviel / lllyasviel/stable-diffusion-webui-forge

Setting `--data-dir` leads to 403 trying to load files from `<sd-folder>/javascript`

Open
#1,220 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

If you set export COMMANDLINE_ARGS="--cuda-malloc --xformers --listen --data-dir /some/other/folder", when you open the UI, it gets completely broken:

image

If I remove the --data-dir argument, then it loads fine.

Checking the browser logs, I see a bunch of 403 errors trying to load I assume files from the <sd-folder>/javascript folder:

image

I tried copying the javascript folder into the data-dir folder I have, but it also doesn't fix it.

On Automatic1111 this setting works fine with the same dir. Also, those javascript files seem to get cached, so when you change the --data-dir flag you need to do a hard reload with ctrl shift r for it to happen.

Is this flag unsupported? or its just a bug? Or maybe I'm missing something else?

I'm running this on linux, if thats relevant

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the broken UI with --data-dir /some/other/folder and inspect the browser's 403 requests for files from the /javascript directory. Trace how --data-dir affects serving those JavaScript assets; done means the UI loads without 403 errors when the flag is set, including after a hard reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, linux, python
Domain
cli, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.