Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: 403 forbidden for scripts/*.js in all browsers #2106

Closed
2 tasks done
ke1ne opened this issue Aug 30, 2023 · 14 comments
Closed
2 tasks done

[Issue]: 403 forbidden for scripts/*.js in all browsers #2106

ke1ne opened this issue Aug 30, 2023 · 14 comments
Labels
upstream Fix is required in upstream library

Comments

@ke1ne
Copy link

ke1ne commented Aug 30, 2023

Issue Description

Hi, after some of latest commits, UI became unusable, with broken layout and blocked JS loading.
image

The browser dev console shows this:
image

Full reinstalling didn't help too. In other words, this kind of link http://127.0.0.1:7860/file=extensions-builtin/sd-extension-system-info/javascript/system-info.js?1693380892.4142544 doesn't work for JS for me.
Using of --safe gave the same result.

Version Platform Description

10:42:29-801306 INFO     Python 3.10.11 on Windows
10:42:29-833157 INFO     Version: 5e14178b Wed Aug 30 02:38:25 2023 -0400
10:42:30-523455 INFO     nVidia CUDA toolkit detected
10:42:30-600705 INFO     Verifying requirements
10:42:30-618686 INFO     Verifying packages
10:42:30-620686 INFO     Verifying repositories
10:42:34-600148 INFO     Verifying submodules
10:43:04-625228 INFO     Extensions enabled: ['a1111-sd-webui-lycoris', 'clip-interrogator-ext', 'LDSR', 'Lora',
'multidiffusion-upscaler-for-automatic1111', 'ScuNET', 'sd-extension-system-info', 'sd-webui-agent-scheduler',
'sd-webui-controlnet', 'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg', 'SwinIR']
...
10:43:05-385164 INFO     Extension preload: 0.0s E:\.ai\automatic\extensions-builtin
10:43:05-387164 INFO     Extension preload: 0.0s extensions
10:43:05-399472 INFO     Server arguments: ['--upgrade']
No module 'xformers'. Proceeding without it.
10:43:13-731289 INFO     Engine: backend=Backend.ORIGINAL

Relevant log output

No response

Backend

Original

Model

SD 1.5

Acknowledgements

  • I have read the above and searched for existing issues
  • I confirm that this is classified correctly and its not an extension issue
@vladmandic
Copy link
Owner

i cannot reproduce this. and its not a common issue, i've asked several people to test.
i suggest to delete config.json and ui-config.json to reset configuration and we can start troubleshooting from there.

@vladmandic vladmandic added question Further information is requested cannot reproduce Reported issue cannot be easily reproducible labels Aug 30, 2023
@ke1ne
Copy link
Author

ke1ne commented Aug 30, 2023

i cannot reproduce this. and its not a common issue, i've asked several people to test. i suggest to delete config.json and ui-config.json to reset configuration and we can start troubleshooting from there.

I deleted whole repo and literally started from scratch. No effect, reproduced in all browsers I have, with no plugins, etc.
Also, CSS files are "blocked" too. Missed it first.

Here is a list, taken after full reinstall and start with default setup:

http://127.0.0.1:7860/file=javascript/script.js
http://127.0.0.1:7860/file=javascript/trainMonitor.js
http://127.0.0.1:7860/file=javascript/settings.js
http://127.0.0.1:7860/file=extensions-builtin/sd-extension-system-info/javascript/sparkline.js
http://127.0.0.1:7860/file=extensions-builtin/sd-extension-system-info/javascript/jquery.js
http://127.0.0.1:7860/file=extensions-builtin/multidiffusion-upscaler-for-automatic1111/javascript/bboxHint.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-agent-scheduler/javascript/agent-scheduler.iife.js
http://127.0.0.1:7860/file=extensions-builtin/sd-extension-system-info/javascript/system-info.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/hints.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/canvas.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/active_units.js
http://127.0.0.1:7860/file=extensions-builtin/stable-diffusion-webui-images-browser/javascript/image_browser.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/openpose_editor.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/modal.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-agent-scheduler/style.css
http://127.0.0.1:7860/file=javascript/style.css
http://127.0.0.1:7860/file=javascript/black-orange.css
http://127.0.0.1:7860/file=extensions-builtin/stable-diffusion-webui-images-browser/style.css
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/style.css
http://127.0.0.1:7860/file=javascript/contextMenus.js
http://127.0.0.1:7860/file=javascript/dragDrop.js
http://127.0.0.1:7860/file=javascript/editAttention.js
http://127.0.0.1:7860/file=javascript/extensions.js
http://127.0.0.1:7860/file=javascript/extraNetworks.js
http://127.0.0.1:7860/file=javascript/generationParams.js
http://127.0.0.1:7860/file=javascript/hires.js
http://127.0.0.1:7860/file=javascript/imageMaskFix.js
http://127.0.0.1:7860/file=javascript/imageParams.js
http://127.0.0.1:7860/file=javascript/imageViewer.js
http://127.0.0.1:7860/file=javascript/loader.js
http://127.0.0.1:7860/file=javascript/logMonitor.js
http://127.0.0.1:7860/file=javascript/notification.js
http://127.0.0.1:7860/file=javascript/panZoom.js
http://127.0.0.1:7860/file=javascript/progressBar.js
http://127.0.0.1:7860/file=javascript/promptBracketChecker.js
http://127.0.0.1:7860/file=javascript/setHints.js
http://127.0.0.1:7860/file=javascript/settings.js
http://127.0.0.1:7860/file=javascript/trainMonitor.js
http://127.0.0.1:7860/file=javascript/ui.js
http://127.0.0.1:7860/file=extensions-builtin/multidiffusion-upscaler-for-automatic1111/javascript/bboxHint.js
http://127.0.0.1:7860/file=extensions-builtin/sd-extension-system-info/javascript/jquery.js
http://127.0.0.1:7860/file=extensions-builtin/sd-extension-system-info/javascript/sparkline.js
http://127.0.0.1:7860/file=extensions-builtin/sd-extension-system-info/javascript/system-info.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-agent-scheduler/javascript/agent-scheduler.iife.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/active_units.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/canvas.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/hints.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/modal.js
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/javascript/openpose_editor.js
http://127.0.0.1:7860/file=extensions-builtin/stable-diffusion-webui-images-browser/javascript/image_browser.js
http://127.0.0.1:7860/file=javascript/style.css
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-controlnet/style.css
http://127.0.0.1:7860/file=extensions-builtin/sd-webui-agent-scheduler/style.css
http://127.0.0.1:7860/file=extensions-builtin/stable-diffusion-webui-images-browser/style.css
http://127.0.0.1:7860/file=javascript/black-orange.css

@vladmandic
Copy link
Owner

where is sdnext installed? (drive, path)?
can you start server with --debug and post startup log?

@ke1ne
Copy link
Author

ke1ne commented Aug 30, 2023

It installed in e:\.ai\automatic.
Also, I see default Gradio stuff is loaded from venv\Lib\site-packages\gradio\templates\cdn\assets with no errors.
Here is the log:
sdnext.log

@vladmandic
Copy link
Owner

log doesn't really show much.
it shouldn't matter, but any chance you can install sdnext on a) different drive, b) in a folder without a . in a name?
i'm really only trying to rule out few things because i cannot reproduce issue at all, so it has to be system specific.

@ke1ne
Copy link
Author

ke1ne commented Aug 30, 2023

It seems to be OK without dot in .ai. But it fully worked previously, since I'm using your fork.

@vladmandic
Copy link
Owner

i believe you. most likely something broke in the new gradio, i'll follow-up on that, but glad you have a working system now.

@vladmandic vladmandic added upstream Fix is required in upstream library and removed cannot reproduce Reported issue cannot be easily reproducible labels Aug 30, 2023
@ke1ne
Copy link
Author

ke1ne commented Aug 30, 2023

Thank you for help!

@virionexe
Copy link

virionexe commented Sep 3, 2023

I solved this issue locally. The problem was that a dir in my path had a begining dot: "D://.data/SD/etc...".

After reinstalling to a path with no dots in it, it works fine.

@ke1ne
Copy link
Author

ke1ne commented Sep 3, 2023

I solved this issue locally. The problem was that a dir in my path had a begining dot: "D://.data/SD/etc...".
After reinstalling to a path with no dots in it, it works fine.

Yes, this helped me too. Strange anyway.

@vladmandic vladmandic removed the question Further information is requested label Sep 7, 2023
@Meowdoleon
Copy link

Oh wow. Yup, I am using a period in one of my folder, which caused me this issue.
This is irritating as I have a lot of workflow with that period as this is a root folder.

@akvyalkov
Copy link

Maybe this is culprit

Gradio DOES NOT ALLOW access to:

Dotfiles (any files whose name begins with '.') or any files that are contained in any directory whose name begins with '.'

https://www.gradio.app/guides/sharing-your-app#security-and-file-access

@vladmandic
Copy link
Owner

@akvyalkov thanks - and yes, that exactly is the culprit.
as it is, this is by design (although its gradio's choice), so closing the issue.

@elnoelsi
Copy link

sorry to bump this but please can you add a warning on the install guide to avoid .rootfolders, hours down the drain lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Fix is required in upstream library
Projects
None yet
Development

No branches or pull requests

6 participants