lllyasviel / lllyasviel/stable-diffusion-webui-forge
Setting `--data-dir` leads to 403 trying to load files from `<sd-folder>/javascript`
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:
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:
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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