Skip to content

[Bug]: Having "--listen" in the startup ARGS breaks extensions tab functionality - "extension access disabled because of command line flags". #7153

@GalaxyTimeMachine

Description

@GalaxyTimeMachine

Is there an existing issue for this?

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

What happened?

I've noticed for quite some time that the update and install options in "Extensions" tab didn't work. If you tried to check for updates, or create a list of available extensions, it just reported an error about it being a startup option blocking it. I tracked it to the "--listen" option that causes it.

Steps to reproduce the problem

  1. Go to extensions tab.
  2. Press "Check for updates"
  3. An "error" appears

If I remove the "--listen" option from the startup ARGS, and restart, there is no error and functionality is restored.

What should have happened?

A list of update status should be refreshed without needing to remove the "--listen" arg each time I want to use the extensions tab.

Commit where the problem happens

602a186

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--medvram --xformers --no-half-vae --listen --api --cors-allow-origins=https://www.painthua.com --autolaunch

Additional information, context and logs

Traceback (most recent call last):
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
    result = await self.call_function(
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "F:\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 "F:\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "F:\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "F:\stable-diffusion-webui\modules\ui_extensions.py", line 26, in apply_and_restart
    check_access()
  File "F:\stable-diffusion-webui\modules\ui_extensions.py", line 22, in check_access
    assert not shared.cmd_opts.disable_extension_access, "extension access disabled because of command line flags"
AssertionError: extension access disabled because of command line flags
Traceback (most recent call last):
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
    result = await self.call_function(
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "F:\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 "F:\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "F:\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "F:\stable-diffusion-webui\modules\ui_extensions.py", line 54, in check_updates
    check_access()
  File "F:\stable-diffusion-webui\modules\ui_extensions.py", line 22, in check_access
    assert not shared.cmd_opts.disable_extension_access, "extension access disabled because of command line flags"
AssertionError: extension access disabled because of command line flags

Metadata

Metadata

Assignees

No one assigned

    Labels

    not-an-issueThis issue is not with the repo itself.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions