0

I'm encountering a problem where Automatic1111(Stable Diffusion web UI) prevents me from installing extensions because of a conflicting command line flag.

The issue is that I can't identify which file contains this flag.

I have already opened and inspected nearly all relevant files, including webui-user.sh, webui.sh, and webui.bat in a text editor, but my efforts have been unsuccessful.

Here is a screenshot of the error message that appears when I try to check for updates in Automatic1111:

The only solution that worked for me was to manually start the Automatic1111 WebUI from the terminal using the command line flag:

--enable-insecure-extension-access

You can see this in the screenshot below:

I would like to resolve this issue permanently.

1 Answer 1

1
Command line flags

... In practice, this means that if you use command line flags such as --share or --listen to make the WebUI accessible from another computer, the installation of extensions will be blocked. returning the following error message:

extension access disabled because of command line flags However, in some cases, you may need to install extensions remotely. If so, you can bypass this restriction by using the command-line flag --enable-insecure-extension-access, which overrides the default behavior.

--enable-insecure-extension-access

Important: It is highly recommended NOT to use the --enable-insecure-extension-access during regular use. Only enable it when necessary, and disable it immediately once it is no longer required. ...


webui-user

The recommended way to specify environment variables is by editing webui-user.bat (Windows) and webui-user.sh (Linux):

set VARNAME=VALUE for Windows

export VARNAME="VALUE" for Linux


Set the flag permanently, this is not recommended!**

Try setting the flag permanently in your webui-user.sh and restart your web UI:

export COMMANDLINE_ARGS="--enable-insecure-extension-access"


More sources:

Your Answer

Draft saved
Draft discarded

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.