AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.88k stars 26.94k forks source link

[Bug]: Cannot log in since the gradio "upgrade" from commit a9eab236 to commit 9e1afa9e #9003

Closed enn-nafnlaus closed 1 year ago

enn-nafnlaus commented 1 year ago

Is there an existing issue for this?

What happened?

Commit 9e1afa9e "upgraded" Gradio to fix an image dragging problem. This irrevocably broke login (./webui.sh --listen --port 4663 --gradio-auth "username:password" --xformers). I've also struggled mightily to stop AUTOMATIC1111 from automatically "upgrading" me to the latest (nonfunctional) version, going so far as to replace /usr/bin/git with a wrapper script that bans certain commands. :Þ I've also gone so far as to set up a new version of AUTOMATIC1111 from scratch, just to make sure that there was no problem with my local setup (extensions, configurations, etc).

Beyond the inability to log in, a few other things characterize this "upgrade", which make it really obvious whether I'm on a broken version or not.

My guess would be that there's some version incompatibility issue. Let me know how to query whatever version info you need in venv (I can say off the bat it's Python 3.10). This BTW happened at the same time as all sorts of other people started posting all sorts of related problems, such as gradio looking weird, the frontend not talking with the backend, etc.

Steps to reproduce the problem

See above.

What should have happened?

Login should work.

Commit where the problem happens

9e1afa9e

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

See above.

List of extensions

None.

Console logs

Ignore the nvinfer/tensorflow errors; I've had them for ages and they don't matter.

A bare minimum log set looks like:

./webui.sh --listen --port 4663 --gradio-auth "stable:diffusion1" --xformers 

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on stablediffusion user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.10 (main, Feb  8 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)]
Commit hash: 9e1afa9eb421ec3c7fa4d972b8f4728f3fb9b210
Installing requirements for Web UI
Launching Web UI with arguments: --listen --port 4663 --gradio-auth stable:diffusion1 --xformers
2023-03-26 18:02:45.390484: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-26 18:02:46.080918: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib:/usr/local/cuda/lib64:
2023-03-26 18:02:46.081032: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib:/usr/local/cuda/lib64:
2023-03-26 18:02:46.081042: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Loading weights [6ce0161689] from /path/to/stable-diffusion-webui.raw/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /path/to/stable-diffusion-webui.raw/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0): 
Model loaded in 3.6s (create model: 0.4s, apply weights to model: 0.6s, apply half(): 0.4s, load VAE: 1.7s, move model to device: 0.5s).
Running on local URL:  http://0.0.0.0:4663

To create a public link, set `share=True` in `launch()`.
Startup time: 10.6s (import gradio: 1.2s, import ldm: 1.8s, other imports: 1.5s, load scripts: 0.6s, load SD checkpoint: 3.8s, create ui: 1.6s).

Additional information

No response

VitalyShein commented 1 year ago

same for me but login works if I open the page from localhost. if I use remote ip it doesn't work

enn-nafnlaus commented 1 year ago

Yep. Which ruins any sort of server+workstation setup unless you jump through hoops like VNC.

VitalyShein commented 1 year ago

I fixed it by cleaning cookies in the chrome dev tools and adding these args in web-user.bat: --no-gradio-queue --cors-allow-origins=http://<YOUR_SERVER_HOST:PORT>/ gradio queue doesn't work correctly, and cors is also needed to be configured properly

to fix cors properly it's enough to check browser console - there will be message with exact cors-allow-origins contend to be added to startup args

crumhirnd commented 1 year ago

Encountered this issue when I updated the files today, tried the suggested fix but still not working..

VitalyShein commented 1 year ago

Encountered this issue when I updated the files today, tried the suggested fix but still not working..

show errors from your browser console log

VitalyShein commented 1 year ago

Another possible fix - try to rename these files in your root dir to regenerate them cache.json params.txt ui-config.json

VitalyShein commented 1 year ago

if you can login from localhost - open Settings and click Apply settings - it will add missing settings in config.json. Restart everything and try again. This is the last thing that can possibly help.

enn-nafnlaus commented 1 year ago

That can't be the issue. As mentioned, I've done a complete fresh install (apart from copying over the venv directory to avoid days of work setting up dependencies again). Problem persists from a fresh install.

VitalyShein commented 1 year ago

Just open chrome incognito tab and try again. And send chrome console logs here. I had 100% same issue and i fixed it, so I want to see the difference between mine and yours setup.

enn-nafnlaus commented 1 year ago

Just open chrome incognito tab and try again. And send chrome console logs here. I had 100% same issue and i fixed it, so I want to see the difference between mine and yours setup.

So , first, setup from scratch:

[username@myserver tmp]$ git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Cloning into 'stable-diffusion-webui'...
remote: Enumerating objects: 17850, done.
remote: Counting objects: 100% (162/162), done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 17850 (delta 95), reused 82 (delta 42), pack-reused 17688
Receiving objects: 100% (17850/17850), 28.28 MiB | 20.99 MiB/s, done.
Resolving deltas: 100% (12479/12479), done.
[username@myserver tmp]$ cd stable-diffusion-webui/
[username@myserver stable-diffusion-webui]$ ls
CODEOWNERS  embeddings             extensions          html        launch.py    localizations  modules    requirements.txt           screenshot.png  scripts    test                         webui.bat           webui.py  webui-user.bat
configs     environment-wsl2.yaml  extensions-builtin  javascript  LICENSE.txt  models         README.md  requirements_versions.txt  script.js       style.css  textual_inversion_templates  webui-macos-env.sh  webui.sh  webui-user.sh
[username@myserver stable-diffusion-webui]$ CUDA_VISIBLE_DEVICES=$1 ./webui.sh --listen --port 4664 --gradio-auth "stable:diffusion1" --xformers

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on username user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.11.2 (main, Feb  7 2023, 13:52:42) [GCC 11.3.0]
Commit hash: 3856ada5cc9ac4124e20ff311ce7aa77330845d9
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1+cu117
  Using cached https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp311-cp311-linux_x86_64.whl (1801.8 MB)
ERROR: Could not find a version that satisfies the requirement torchvision==0.14.1+cu117 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.15.0, 0.15.0+cu117, 0.15.1, 0.15.1+cu117)
ERROR: No matching distribution found for torchvision==0.14.1+cu117

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
Traceback (most recent call last):
  File "/path/to/stable-diffusion-webui/launch.py", line 355, in <module>
    prepare_environment()
  File "/path/to/stable-diffusion-webui/launch.py", line 257, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/path/to/stable-diffusion-webui/launch.py", line 81, in run
    raise RuntimeError(f"""{errdesc or 'Error running command'}.
RuntimeError: Couldn't install torch.
Command: "/path/to/stable-diffusion-webui/venv/bin/python3" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
Error code: 1
[username@myserver stable-diffusion-webui]$ rm -rf venv
[username@myserver stable-diffusion-webui]$ cp -R ../../stable-diffusion-webui/venv/ .

Now let's run it. First with the --api flag, so you can see the API errors:

[username@myserver stable-diffusion-webui]$ ./webui.sh --listen --port 4664 --gradio-auth "stable:diffusion1" --xformers --api

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on username user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.10 (main, Feb  8 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)]
Commit hash: 3856ada5cc9ac4124e20ff311ce7aa77330845d9
Cloning Stable Diffusion into /path/to/stable-diffusion-webui/repositories/stable-diffusion-stability-ai...
Cloning Taming Transformers into /path/to/stable-diffusion-webui/repositories/taming-transformers...
Cloning K-diffusion into /path/to/stable-diffusion-webui/repositories/k-diffusion...
Cloning CodeFormer into /path/to/stable-diffusion-webui/repositories/CodeFormer...
Cloning BLIP into /path/to/stable-diffusion-webui/repositories/BLIP...
Installing requirements for Web UI
Launching Web UI with arguments: --listen --port 4664 --gradio-auth stable:diffusion1 --xformers --api
2023-03-28 19:54:44.121391: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-28 19:54:44.898225: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib:/usr/local/cuda/lib64:
2023-03-28 19:54:44.898345: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib:/usr/local/cuda/lib64:
2023-03-28 19:54:44.898354: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to /path/to/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors

100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.97G/3.97G [01:14<00:00, 57.0MB/s]
Calculating sha256 for /path/to/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors: 6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa
Loading weights [6ce0161689] from /path/to/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /path/to/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0): 
Model loaded in 13.7s (calculate hash: 9.0s, load weights from disk: 0.2s, create model: 0.9s, apply weights to model: 0.9s, apply half(): 0.6s, load VAE: 1.6s, move model to device: 0.5s).
Running on local URL:  http://0.0.0.0:4664

To create a public link, set `share=True` in `launch()`.
Startup time: 106.8s (import torch: 3.2s, import gradio: 1.2s, import ldm: 0.3s, other imports: 0.9s, list SD models: 75.7s, setup codeformer: 0.3s, load scripts: 0.9s, load SD checkpoint: 13.9s, create ui: 7.5s, gradio launch: 2.3s, scripts app_started_callback: 0.6s).
API error: GET: http://myserver:4664/file=script.js?1680032403.9950283 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/aspectRatioOverlay.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=style.css?1680032403.9960284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/contextMenus.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/dragdrop.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/edit-attention.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extraNetworks.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extensions.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/generationParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hires_fix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hints.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageMaskFix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageviewer.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/localization.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/progressbar.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/notification.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/textualInversion.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/ui.js?1680032403.9800284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680032403.9770286 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}

If I actually try to log in, those errors appear twice:

To create a public link, set `share=True` in `launch()`.
Startup time: 106.8s (import torch: 3.2s, import gradio: 1.2s, import ldm: 0.3s, other imports: 0.9s, list SD models: 75.7s, setup codeformer: 0.3s, load scripts: 0.9s, load SD checkpoint: 13.9s, create ui: 7.5s, gradio launch: 2.3s, scripts app_started_callback: 0.6s).
API error: GET: http://myserver:4664/file=script.js?1680032403.9950283 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/aspectRatioOverlay.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=style.css?1680032403.9960284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/contextMenus.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/dragdrop.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/edit-attention.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extraNetworks.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extensions.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/generationParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hires_fix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hints.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageMaskFix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageviewer.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/localization.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/progressbar.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/notification.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/textualInversion.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/ui.js?1680032403.9800284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680032403.9770286 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}

API error: GET: http://myserver:4664/file=script.js?1680032403.9950283 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=style.css?1680032403.9960284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/aspectRatioOverlay.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/generationParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/edit-attention.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extraNetworks.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/contextMenus.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extensions.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/dragdrop.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hints.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageMaskFix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hires_fix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/localization.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageviewer.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/textualInversion.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/progressbar.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/notification.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/ui.js?1680032403.9800284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680032403.9770286 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}

If I copy over my extensions directory (but remove the api flag, to get rid of that error spam), I get these errors as well:

Loading weights [6ce0161689] from /path/to/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /path/to/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0): 
Model loaded in 22.2s (load weights from disk: 0.2s, create model: 1.2s, apply weights to model: 9.5s, apply half(): 9.5s, move model to device: 1.7s).
Save animation setting preview type to Full (current Approx NN)
add tab
*Deforum ControlNet support: enabled*
Error executing callback ui_tabs_callback for /path/to/stable-diffusion-webui/extensions/sd-webui-model-converter/scripts/convert.py
Traceback (most recent call last):
  File "/path/to/stable-diffusion-webui/modules/script_callbacks.py", line 125, in ui_tabs_callback
    res += c.callback() or []
  File "/path/to/stable-diffusion-webui/extensions/sd-webui-model-converter/scripts/convert.py", line 94, in add_tab
    model_converter_convert.click(
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/events.py", line 129, in __call__
    dep, dep_index = self.trigger.set_event_trigger(
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/blocks.py", line 195, in set_event_trigger
    check_function_inputs_match(fn, inputs, inputs_as_dict)
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/utils.py", line 940, in check_function_inputs_match
    if not is_special_typed_parameter(name):
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/utils.py", line 929, in is_special_typed_parameter
    is_event_data = issubclass(parameter_types.get(name, int), EventData)
TypeError: issubclass() arg 1 must be a class

Error executing callback ui_tabs_callback for /path/to/stable-diffusion-webui/extensions/stable-diffusion-webui-dataset-tag-editor/scripts/main.py
Traceback (most recent call last):
  File "/path/to/stable-diffusion-webui/modules/script_callbacks.py", line 125, in ui_tabs_callback
    res += c.callback() or []
  File "/path/to/stable-diffusion-webui/extensions/stable-diffusion-webui-dataset-tag-editor/scripts/main.py", line 326, in on_ui_tabs
    ui.load_dataset.set_callbacks(o_update_filter_and_gallery,ui.toprow, ui.dataset_gallery, ui.filter_by_tags, ui.filter_by_selection, ui.batch_edit_captions, update_filter_and_gallery)
  File "/path/to/stable-diffusion-webui/extensions/stable-diffusion-webui-dataset-tag-editor/scripts/ui/block_load_dataset.py", line 90, in set_callbacks
    self.btn_load_datasets.click(
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/events.py", line 129, in __call__
    dep, dep_index = self.trigger.set_event_trigger(
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/blocks.py", line 195, in set_event_trigger
    check_function_inputs_match(fn, inputs, inputs_as_dict)
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/utils.py", line 940, in check_function_inputs_match
    if not is_special_typed_parameter(name):
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/utils.py", line 929, in is_special_typed_parameter
    is_event_data = issubclass(parameter_types.get(name, int), EventData)
TypeError: issubclass() arg 1 must be a class

Running on local URL:  http://0.0.0.0:4664

To create a public link, set `share=True` in `launch()`.
auto-sd-paint-ext:WARNING: COMMANDLINE_ARGS does not contain --api, API won't be mounted.
WARNING:auto-sd-paint-ext:COMMANDLINE_ARGS does not contain --api, API won't be mounted.
Startup time: 129.6s (import torch: 13.2s, import gradio: 0.8s, import ldm: 1.2s, other imports: 4.5s, load scripts: 54.6s, load SD checkpoint: 22.3s, create ui: 32.7s, gradio launch: 0.2s).

BTW, here's what the login screen looks like - it's high on the page instead of in the middle.

image

Trying to log in (with or without the api flag set) fails without an incognito window. I tried it with an incognito window. I could log in (--api flag set), but then it looks like this:

image

rchennau commented 1 year ago

Remove the files cache.json, params.txt, ui-config.json worked for me. Thank you @VitalyShein

VitalyShein commented 1 year ago

Just open chrome incognito tab and try again. And send chrome console logs here. I had 100% same issue and i fixed it, so I want to see the difference between mine and yours setup.

So , first, setup from scratch:

[username@myserver tmp]$ git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Cloning into 'stable-diffusion-webui'...
remote: Enumerating objects: 17850, done.
remote: Counting objects: 100% (162/162), done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 17850 (delta 95), reused 82 (delta 42), pack-reused 17688
Receiving objects: 100% (17850/17850), 28.28 MiB | 20.99 MiB/s, done.
Resolving deltas: 100% (12479/12479), done.
[username@myserver tmp]$ cd stable-diffusion-webui/
[username@myserver stable-diffusion-webui]$ ls
CODEOWNERS  embeddings             extensions          html        launch.py    localizations  modules    requirements.txt           screenshot.png  scripts    test                         webui.bat           webui.py  webui-user.bat
configs     environment-wsl2.yaml  extensions-builtin  javascript  LICENSE.txt  models         README.md  requirements_versions.txt  script.js       style.css  textual_inversion_templates  webui-macos-env.sh  webui.sh  webui-user.sh
[username@myserver stable-diffusion-webui]$ CUDA_VISIBLE_DEVICES=$1 ./webui.sh --listen --port 4664 --gradio-auth "stable:diffusion1" --xformers

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on username user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.11.2 (main, Feb  7 2023, 13:52:42) [GCC 11.3.0]
Commit hash: 3856ada5cc9ac4124e20ff311ce7aa77330845d9
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1+cu117
  Using cached https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp311-cp311-linux_x86_64.whl (1801.8 MB)
ERROR: Could not find a version that satisfies the requirement torchvision==0.14.1+cu117 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.15.0, 0.15.0+cu117, 0.15.1, 0.15.1+cu117)
ERROR: No matching distribution found for torchvision==0.14.1+cu117

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
Traceback (most recent call last):
  File "/path/to/stable-diffusion-webui/launch.py", line 355, in <module>
    prepare_environment()
  File "/path/to/stable-diffusion-webui/launch.py", line 257, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/path/to/stable-diffusion-webui/launch.py", line 81, in run
    raise RuntimeError(f"""{errdesc or 'Error running command'}.
RuntimeError: Couldn't install torch.
Command: "/path/to/stable-diffusion-webui/venv/bin/python3" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
Error code: 1
[username@myserver stable-diffusion-webui]$ rm -rf venv
[username@myserver stable-diffusion-webui]$ cp -R ../../stable-diffusion-webui/venv/ .

Now let's run it. First with the --api flag, so you can see the API errors:

[username@myserver stable-diffusion-webui]$ ./webui.sh --listen --port 4664 --gradio-auth "stable:diffusion1" --xformers --api

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on username user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.10 (main, Feb  8 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)]
Commit hash: 3856ada5cc9ac4124e20ff311ce7aa77330845d9
Cloning Stable Diffusion into /path/to/stable-diffusion-webui/repositories/stable-diffusion-stability-ai...
Cloning Taming Transformers into /path/to/stable-diffusion-webui/repositories/taming-transformers...
Cloning K-diffusion into /path/to/stable-diffusion-webui/repositories/k-diffusion...
Cloning CodeFormer into /path/to/stable-diffusion-webui/repositories/CodeFormer...
Cloning BLIP into /path/to/stable-diffusion-webui/repositories/BLIP...
Installing requirements for Web UI
Launching Web UI with arguments: --listen --port 4664 --gradio-auth stable:diffusion1 --xformers --api
2023-03-28 19:54:44.121391: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-28 19:54:44.898225: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib:/usr/local/cuda/lib64:
2023-03-28 19:54:44.898345: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda/lib:/usr/local/cuda/lib64:
2023-03-28 19:54:44.898354: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to /path/to/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors

100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3.97G/3.97G [01:14<00:00, 57.0MB/s]
Calculating sha256 for /path/to/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors: 6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa
Loading weights [6ce0161689] from /path/to/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /path/to/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0): 
Model loaded in 13.7s (calculate hash: 9.0s, load weights from disk: 0.2s, create model: 0.9s, apply weights to model: 0.9s, apply half(): 0.6s, load VAE: 1.6s, move model to device: 0.5s).
Running on local URL:  http://0.0.0.0:4664

To create a public link, set `share=True` in `launch()`.
Startup time: 106.8s (import torch: 3.2s, import gradio: 1.2s, import ldm: 0.3s, other imports: 0.9s, list SD models: 75.7s, setup codeformer: 0.3s, load scripts: 0.9s, load SD checkpoint: 13.9s, create ui: 7.5s, gradio launch: 2.3s, scripts app_started_callback: 0.6s).
API error: GET: http://myserver:4664/file=script.js?1680032403.9950283 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/aspectRatioOverlay.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=style.css?1680032403.9960284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/contextMenus.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/dragdrop.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/edit-attention.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extraNetworks.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extensions.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/generationParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hires_fix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hints.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageMaskFix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageviewer.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/localization.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/progressbar.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/notification.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/textualInversion.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/ui.js?1680032403.9800284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680032403.9770286 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}

If I actually try to log in, those errors appear twice:

To create a public link, set `share=True` in `launch()`.
Startup time: 106.8s (import torch: 3.2s, import gradio: 1.2s, import ldm: 0.3s, other imports: 0.9s, list SD models: 75.7s, setup codeformer: 0.3s, load scripts: 0.9s, load SD checkpoint: 13.9s, create ui: 7.5s, gradio launch: 2.3s, scripts app_started_callback: 0.6s).
API error: GET: http://myserver:4664/file=script.js?1680032403.9950283 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/aspectRatioOverlay.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=style.css?1680032403.9960284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/contextMenus.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/dragdrop.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/edit-attention.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extraNetworks.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extensions.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/generationParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hires_fix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hints.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageMaskFix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageviewer.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/localization.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/progressbar.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/notification.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/textualInversion.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/ui.js?1680032403.9800284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680032403.9770286 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}

API error: GET: http://myserver:4664/file=script.js?1680032403.9950283 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=style.css?1680032403.9960284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/aspectRatioOverlay.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/generationParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/edit-attention.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extraNetworks.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/contextMenus.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/extensions.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/dragdrop.js?1680032403.9780285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hints.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageMaskFix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/hires_fix.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/localization.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageviewer.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/imageParams.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/textualInversion.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/progressbar.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/notification.js?1680032403.9790285 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=javascript/ui.js?1680032403.9800284 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}
API error: GET: http://myserver:4664/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680032403.9770286 {'error': 'HTTPException', 'detail': 'Not authenticated', 'body': '', 'errors': ''}

If I copy over my extensions directory (but remove the api flag, to get rid of that error spam), I get these errors as well:

Loading weights [6ce0161689] from /path/to/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /path/to/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0): 
Model loaded in 22.2s (load weights from disk: 0.2s, create model: 1.2s, apply weights to model: 9.5s, apply half(): 9.5s, move model to device: 1.7s).
Save animation setting preview type to Full (current Approx NN)
add tab
*Deforum ControlNet support: enabled*
Error executing callback ui_tabs_callback for /path/to/stable-diffusion-webui/extensions/sd-webui-model-converter/scripts/convert.py
Traceback (most recent call last):
  File "/path/to/stable-diffusion-webui/modules/script_callbacks.py", line 125, in ui_tabs_callback
    res += c.callback() or []
  File "/path/to/stable-diffusion-webui/extensions/sd-webui-model-converter/scripts/convert.py", line 94, in add_tab
    model_converter_convert.click(
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/events.py", line 129, in __call__
    dep, dep_index = self.trigger.set_event_trigger(
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/blocks.py", line 195, in set_event_trigger
    check_function_inputs_match(fn, inputs, inputs_as_dict)
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/utils.py", line 940, in check_function_inputs_match
    if not is_special_typed_parameter(name):
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/utils.py", line 929, in is_special_typed_parameter
    is_event_data = issubclass(parameter_types.get(name, int), EventDat
TypeError: issubclass() arg 1 must be a class

Error executing callback ui_tabs_callback for /path/to/stable-diffusion-webui/extensions/stable-diffusion-webui-dataset-tag-editor/scripts/main.py
Traceback (most recent call last):
  File "/path/to/stable-diffusion-webui/modules/script_callbacks.py", line 125, in ui_tabs_callback
    res += c.callback() or []
  File "/path/to/stable-diffusion-webui/extensions/stable-diffusion-webui-dataset-tag-editor/scripts/main.py", line 326, in on_ui_tabs
    ui.load_dataset.set_callbacks(o_update_filter_and_gallery,ui.toprow, ui.dataset_gallery, ui.filter_by_tags, ui.filter_by_selection, ui.batch_edit_captions, update_filter_and_gallery)
  File "/path/to/stable-diffusion-webui/extensions/stable-diffusion-webui-dataset-tag-editor/scripts/ui/block_load_dataset.py", line 90, in set_callbacks
    self.btn_load_datasets.click(
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/events.py", line 129, in __call__
    dep, dep_index = self.trigger.set_event_trigger(
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/blocks.py", line 195, in set_event_trigger
    check_function_inputs_match(fn, inputs, inputs_as_dict)
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/utils.py", line 940, in check_function_inputs_match
    if not is_special_typed_parameter(name):
  File "/path/to/venv/lib64/python3.10/site-packages/gradio/utils.py", line 929, in is_special_typed_parameter
    is_event_data = issubclass(parameter_types.get(name, int), EventData)
TypeError: issubclass() arg 1 must be a class

Running on local URL:  http://0.0.0.0:4664

To create a public link, set `share=True` in `launch()`.
auto-sd-paint-ext:WARNING: COMMANDLINE_ARGS does not contain --api, API won't be mounted.
WARNING:auto-sd-paint-ext:COMMANDLINE_ARGS does not contain --api, API won't be mounted.
Startup time: 129.6s (import torch: 13.2s, import gradio: 0.8s, import ldm: 1.2s, other imports: 4.5s, load scripts: 54.6s, load SD checkpoint: 22.3s, create ui: 32.7s, gradio launch: 0.2s).

BTW, here's what the login screen looks like - it's high on the page instead of in the middle.

image

Trying to log in (with or without the api flag set) fails without an incognito window. I tried it with an incognito window. I could log in (--api flag set), but then it looks like this:

image

enn-nafnlaus I had the same situation as in your last screenshot. However, you never sent the logs from the browser console. It opens with the F12 button and looks like this image This error occurs if you cannot connect to the gradio queue, so add this option to the startup arguments

--no-gradio-queue

To understand for sure what error you have - you need to send the browser logs (not the application).

VitalyShein commented 1 year ago

@enn-nafnlaus also you haven't installed torch correctly: RuntimeError: Couldn't install torch. check the installation notes about it

enn-nafnlaus commented 1 year ago

. As mentioned, I've done a complete fresh install (apart from copying over the venv directory to avoid days of work setting up dependencies again

####### "As mentioned, I've done a complete fresh install (apart from copying over the venv directory to avoid days of work setting up dependencies again)" #######

####### RuntimeError: Couldn't install torch. Command: "/path/to/stable-diffusion-webui/venv/bin/python3" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117 Error code: 1 [username@myserver stable-diffusion-webui]$ rm -rf venv [username@myserver stable-diffusion-webui]$ cp -R ../../stable-diffusion-webui/venv/ . #######

VitalyShein commented 1 year ago

Maybe it happend because you have Python 3.11, but doc says that recommended version is 3.10.6

enn-nafnlaus commented 1 year ago

Maybe it happend because you have Python 3.11, but doc says that recommended version is 3.10.6

################################################################ Launching launch.py... ################################################################ Python 3.10.10 (main, Feb 8 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] Commit hash: 9e1afa9eb421ec3c7fa4d972b8f4728f3fb9b210 Installing requirements for Web UI

strikingwolf876 commented 1 year ago

It happens to me as well, tried every method listed above. If I log in through localhost everything works, if I instead log in over the network it logs in, but then I face an error when performing any action on the UI

VitalyShein commented 1 year ago

It happens to me as well, tried every method listed above. If I log in through localhost everything works, if I instead log in over the network it logs in, but then I face an error when performing any action on the UI

Open chrome browser console and send logs from it here.

strikingwolf876 commented 1 year ago

It happens to me as well, tried every method listed above. If I log in through localhost everything works, if I instead log in over the network it logs in, but then I face an error when performing any action on the UI

Open chrome browser console and send logs from it here.

This is when loading the login page: DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND 192.168.1.15/:58 GET http://192.168.1.15:9090/file=script.js?1680333174.604918 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:108 GET http://192.168.1.15:9090/file=style.css?1680333174.6059093 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:59 GET http://192.168.1.15:9090/file=javascript/aspectRatioOverlay.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:60 GET http://192.168.1.15:9090/file=javascript/contextMenus.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:61 GET http://192.168.1.15:9090/file=javascript/dragdrop.js?1679315227.4236042 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:62 GET http://192.168.1.15:9090/file=javascript/edit-attention.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:63 GET http://192.168.1.15:9090/file=javascript/extensions.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:64 GET http://192.168.1.15:9090/file=javascript/extraNetworks.js?1680333174.5913062 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:65 GET http://192.168.1.15:9090/file=javascript/generationParams.js?1679315227.4311113 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:66 GET http://192.168.1.15:9090/file=javascript/hints.js?1680333174.592343 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:67 GET http://192.168.1.15:9090/file=javascript/hires_fix.js?1679315227.4356203 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:68 GET http://192.168.1.15:9090/file=javascript/imageMaskFix.js?1679315227.437621 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:69 GET http://192.168.1.15:9090/file=javascript/imageParams.js?1679315227.4396226 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:71 GET http://192.168.1.15:9090/file=javascript/localization.js?1679315227.4436214 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:70 GET http://192.168.1.15:9090/file=javascript/imageviewer.js?1680333174.592343 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:72 GET http://192.168.1.15:9090/file=javascript/notification.js?1680333174.592343 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:73 GET http://192.168.1.15:9090/file=javascript/progressbar.js?1680333174.5938742 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:74 GET http://192.168.1.15:9090/file=javascript/textualInversion.js?1679315227.4486225 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:75 GET http://192.168.1.15:9090/file=javascript/ui.js?1680333174.5938742 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:76 GET http://192.168.1.15:9090/file=extensions/stable-diffusion-webui-images-browser/javascript/image_browser.js?1679818193.1557882 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:77 GET http://192.168.1.15:9090/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680333174.5883071 net::ERR_ABORTED 401 (Unauthorized)

VitalyShein commented 1 year ago

It happens to me as well, tried every method listed above. If I log in through localhost everything works, if I instead log in over the network it logs in, but then I face an error when performing any action on the UI

Open chrome browser console and send logs from it here.

This is when loading the login page: DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND 192.168.1.15/:58 GET http://192.168.1.15:9090/file=script.js?1680333174.604918 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:108 GET http://192.168.1.15:9090/file=style.css?1680333174.6059093 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:59 GET http://192.168.1.15:9090/file=javascript/aspectRatioOverlay.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:60 GET http://192.168.1.15:9090/file=javascript/contextMenus.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:61 GET http://192.168.1.15:9090/file=javascript/dragdrop.js?1679315227.4236042 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:62 GET http://192.168.1.15:9090/file=javascript/edit-attention.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:63 GET http://192.168.1.15:9090/file=javascript/extensions.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:64 GET http://192.168.1.15:9090/file=javascript/extraNetworks.js?1680333174.5913062 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:65 GET http://192.168.1.15:9090/file=javascript/generationParams.js?1679315227.4311113 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:66 GET http://192.168.1.15:9090/file=javascript/hints.js?1680333174.592343 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:67 GET http://192.168.1.15:9090/file=javascript/hires_fix.js?1679315227.4356203 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:68 GET http://192.168.1.15:9090/file=javascript/imageMaskFix.js?1679315227.437621 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:69 GET http://192.168.1.15:9090/file=javascript/imageParams.js?1679315227.4396226 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:71 GET http://192.168.1.15:9090/file=javascript/localization.js?1679315227.4436214 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:70 GET http://192.168.1.15:9090/file=javascript/imageviewer.js?1680333174.592343 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:72 GET http://192.168.1.15:9090/file=javascript/notification.js?1680333174.592343 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:73 GET http://192.168.1.15:9090/file=javascript/progressbar.js?1680333174.5938742 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:74 GET http://192.168.1.15:9090/file=javascript/textualInversion.js?1679315227.4486225 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:75 GET http://192.168.1.15:9090/file=javascript/ui.js?1680333174.5938742 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:76 GET http://192.168.1.15:9090/file=extensions/stable-diffusion-webui-images-browser/javascript/image_browser.js?1679818193.1557882 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:77 GET http://192.168.1.15:9090/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680333174.5883071 net::ERR_ABORTED 401 (Unauthorized)

Open Console additional settings in Chrome Dev Tools, enable Preserve log, click on the login button and send the log again image

VitalyShein commented 1 year ago

It happens to me as well, tried every method listed above. If I log in through localhost everything works, if I instead log in over the network it logs in, but then I face an error when performing any action on the UI

Open chrome browser console and send logs from it here.

This is when loading the login page: DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND 192.168.1.15/:58 GET http://192.168.1.15:9090/file=script.js?1680333174.604918 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:108 GET http://192.168.1.15:9090/file=style.css?1680333174.6059093 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:59 GET http://192.168.1.15:9090/file=javascript/aspectRatioOverlay.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:60 GET http://192.168.1.15:9090/file=javascript/contextMenus.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:61 GET http://192.168.1.15:9090/file=javascript/dragdrop.js?1679315227.4236042 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:62 GET http://192.168.1.15:9090/file=javascript/edit-attention.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:63 GET http://192.168.1.15:9090/file=javascript/extensions.js?1680333174.5903068 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:64 GET http://192.168.1.15:9090/file=javascript/extraNetworks.js?1680333174.5913062 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:65 GET http://192.168.1.15:9090/file=javascript/generationParams.js?1679315227.4311113 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:66 GET http://192.168.1.15:9090/file=javascript/hints.js?1680333174.592343 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:67 GET http://192.168.1.15:9090/file=javascript/hires_fix.js?1679315227.4356203 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:68 GET http://192.168.1.15:9090/file=javascript/imageMaskFix.js?1679315227.437621 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:69 GET http://192.168.1.15:9090/file=javascript/imageParams.js?1679315227.4396226 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:71 GET http://192.168.1.15:9090/file=javascript/localization.js?1679315227.4436214 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:70 GET http://192.168.1.15:9090/file=javascript/imageviewer.js?1680333174.592343 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:72 GET http://192.168.1.15:9090/file=javascript/notification.js?1680333174.592343 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:73 GET http://192.168.1.15:9090/file=javascript/progressbar.js?1680333174.5938742 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:74 GET http://192.168.1.15:9090/file=javascript/textualInversion.js?1679315227.4486225 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:75 GET http://192.168.1.15:9090/file=javascript/ui.js?1680333174.5938742 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:76 GET http://192.168.1.15:9090/file=extensions/stable-diffusion-webui-images-browser/javascript/image_browser.js?1679818193.1557882 net::ERR_ABORTED 401 (Unauthorized) 192.168.1.15/:77 GET http://192.168.1.15:9090/file=extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js?1680333174.5883071 net::ERR_ABORTED 401 (Unauthorized)

also clean all cookies that you will find here image

enn-nafnlaus commented 1 year ago

What I don't understand is, why is having all this happen and breaking so many people's setups considered an acceptable situation? What's the incentive for me to upgrade past a9eab236 when, given all of the problems so far - breaking extensions, requiring disabling the gradio queue, flushing browsers, deleting cache files, API errors, screen errors, etc - it looks likely to just keep giving more problems? It's hard to get the motivation to break my current setup even to get logs when one looks at upgrading past a9eab236 and sees only "headaches".

How can this be worth it just to fix an image drag-and-drop issue?

crumhirnd commented 1 year ago

I tried --no-gradio-queue and got this: image

This is without: image

This is after clearing the cookie and deleting the three files. Before a recent update, connecting from public IP address worked flawlessly.

crumhirnd commented 1 year ago

With further experimentation it seems --no-gradio-queue did the trick. Would anyone be able to explain why it works to a non-coder like me?

catboxanon commented 1 year ago

Closing as stale.