stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Can't uncheck dreambooth extension

Open Kallamamran opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

I have activated the extension Dreambooth, but since I only have 10GB VRAM I can't get it running I want to deactivate it so it doesn't load when it doesn't have to. I uncheck the checkbox and "Apply and restart UI", but I get this error in the command prompt and then the page reloads with the activated Dreambooth 🤔

Traceback (most recent call last): File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 284, in run_predict output = await app.blocks.process_api( File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 982, in process_api result = await self.call_function(fn_index, inputs, iterator) File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 824, in call_function prediction = await anyio.to_thread.run_sync( File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "D:\stable-diffusion-webui\modules\ui_extensions.py", line 24, in apply_and_restart check_access() File "D:\stable-diffusion-webui\modules\ui_extensions.py", line 20, in check_access assert not shared.cmd_opts.disable_extension_access, "extension access disabed because of commandline flags" AssertionError: extension access disabed because of commandline flags

image

PS. The ERROR is from me trying the "Check for updates"-button

Steps to reproduce the problem

  1. Go to extensions
  2. Remove the mark in the check box "sd_dreambooth_extension"
  3. Reload the UI

What should have happened?

Normally I guess there would be no errors in the command prompt and the UI should reload with the check box unchecked

Commit where the problem happens

828438b4a190759807f9054932cae3a8b880ddf1

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Brave

Command Line Arguments

--listen --deepdanbooru --xformers --disable-safe-unpickle --vae-path models\VAE\vae-ft-mse-840000-ema-pruned.pt --api --port 7860 --cors-allow-origins=https://www.painthua.com

Additional information, context and logs

No response

Kallamamran avatar Nov 24 '22 11:11 Kallamamran

I got same message few days ago and solved by --enable-insecure-extension-access option. And now I tried to reproduce problem with disabling this flag and I got same error.

It's not secure, so use with caution.

u-haru avatar Nov 24 '22 15:11 u-haru

or just remove the listen flag :) both works, but it's more secure that way

crckdns avatar Nov 24 '22 18:11 crckdns

@Kallamamran did the proposed solutions work for you or is this issue still relevant? If you no longer have the problem please close the issue to allow devs and maintainers to more easily see what needs attention.

HPPinata avatar Dec 28 '22 10:12 HPPinata

or just remove the listen flag :) both works, but it's more secure that way

Without listen I can't run the GUI over the internet, so that's not a solution :)

Kallamamran avatar Dec 28 '22 13:12 Kallamamran

or just remove the listen flag :) both works, but it's more secure that way

Without listen I can't run the GUI over the internet, so that's not a solution :)

--enable-insecure-extension-access should work. You will have to pick your poison. Either explicitly allowing the change of extension configuration on a server with --listen enabled or not using --listen and opting for something like an ssh tunnel instead.

HPPinata avatar Dec 28 '22 13:12 HPPinata