ComfyUI-Manager icon indicating copy to clipboard operation
ComfyUI-Manager copied to clipboard

'allow_git_url_install = true' Doesn't work

Open jobobby04 opened this issue 5 months ago • 13 comments

## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2026-06-27 16:58:06.732
** Platform: Linux
** Python version: 3.11.14 (main, Oct 21 2025, 18:31:21) [GCC 11.2.0]
** Python executable: /config/workspace/miniconda3/envs/comfyui/bin/python
** ComfyUI Path: /config/workspace/comfyUI
** ComfyUI Base Folder Path: /config/workspace/comfyUI
** User directory: /config/workspace/comfyUI/user
** ComfyUI-Manager config path: /config/workspace/comfyUI/user/__manager/config.ini
** Log path: /config/workspace/comfyUI/user/comfyui.log

[ERROR] ERROR: This action requires 'allow_git_url_install = true' in config.ini ([default] section). This setting is independent of security_level. Reference: https://github.com/ltdrdata/ComfyUI-Manager#security-policy

My /comfyUI/user/__manager/config.ini

[default]
preview_method = latent2rgb
git_exe = 
use_uv = False
channel_url = https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main
share_option = all
bypass_ssl = False
file_logging = True
component_policy = workflow
update_policy = nightly-comfyui
windows_selector_event_loop_policy = False
model_download_by_agent = False
downgrade_blacklist = 
security_level = weak
always_lazy_install = False
network_mode = public
db_mode = cache
allow_git_url_install = True

jobobby04 avatar Jun 27 '26 21:06 jobobby04

Yes same problem, update my comfyui today, and I get this problem as well.

gcaley avatar Jun 29 '26 19:06 gcaley

I also have this problem.

Photosounder avatar Jul 01 '26 19:07 Photosounder

Same here. @ltdrdata you could think about unit tests.

PozzettiAndrea avatar Jul 02 '26 11:07 PozzettiAndrea

Me too, has it been resolved?

gxbsyxh avatar Jul 02 '26 15:07 gxbsyxh

Same problem here, editing config.ini leads to nothing ..

Internal POST to /api/customnode/install/git_url returns 403

joed74 avatar Jul 04 '26 09:07 joed74

same issue.....

stormblizzard avatar Jul 05 '26 05:07 stormblizzard

Yeah, they recently made it impossible to install via github URL if you're listening on anything other than 127.0.0.1, which is irritating for me as a LAN user. This patch ads two config options:

allow_lan_install -> Set to 'true' to be able to install from IPs on the LAN allow_goatse_install__never_use__ -> Set to true along with allow_lan_install to allow installation from over the WAN. You almost certainly don't want to do this unless you've got some firewall configuration only allowing specific IP addresses, but I'm not your mom.

Here's the patch.

comfyui-manager-install-ip-filter-flags-16a212a.patch

envy-ai avatar Jul 05 '26 22:07 envy-ai

Just ran into the same problem. Is it me or is this a bit of a ball drop?

madwax avatar Jul 12 '26 18:07 madwax

I too am also having this same issue. It does not respect the config.ini settings.

outbox-app avatar Jul 15 '26 00:07 outbox-app

I'm using ComfyUI in a docker image. Blocking Git installation, when listening on any other ip than 127.xx makes ComfyUI-Manager completely pointless.

Please, don't treat us like a child which doesn't know what it's doing! Give us at least an option to use this node in a way we want / need to!

StS82 avatar Jul 17 '26 17:07 StS82

Root cause for the "I set it to true and it still doesn't work" reports in this thread, from reading 3.41 (d404e623):

The flag is not the whole gate. glob/manager_server.py:90:

def is_dedicated_install_allowed(flag_value: bool, listen_address: str) -> bool:
    return bool(flag_value) and is_loopback(listen_address)

Flag AND loopback. If ComfyUI is started with --listen 0.0.0.0 (or any non-loopback address), allow_git_url_install = true can never take effect — and security_level is irrelevant here, since this arm never reads it. So the LAN/remote users in this thread are all denied regardless of what they put in config.ini.

That bound is deliberate — see #2991, which describes the loopback term as load-bearing. What is not deliberate, I think, is that SECURITY_MESSAGE_FLAG_GIT_URL tells you to set the flag to true without ever mentioning the loopback requirement, so the message reads as "the setting is broken" when the flag is already enabled. Filed separately as #3128, along with the batch-install path mapping every 404 to the unrelated "only custom nodes from the default channel can be installed" dialog.

Workarounds until the LAN case is addressed, for anyone landing here:

  • git clone into custom_nodes/ and install requirements with ComfyUI's venv python — no Manager gate involved.
  • Or temporarily run on 127.0.0.1 and reach the UI through an SSH tunnel (ssh -L 8188:127.0.0.1:8188 host), install through Manager, then switch back.

Note allow_pip_install carries the same loopback term, so a pack with real dependencies needs the manual pip step even on loopback if that flag is off.

plz12345 avatar Aug 04 '26 10:08 plz12345

We should have a --ignore-is-loopback command line to disable this rule.

My GPUs are on my home server, not my computer, and I run comfyui on the server, but use it from my computer. Just because I don't run it locally I can't install custom nodes from a "non-default" list?

I should be able to just launch comfyui with something like a --ignore-is-loopback so the "must be loopback served" rules are disabled completely.

hradec avatar Aug 08 '26 04:08 hradec

Yeah, same for me, I run on one machine but access web UI from another.

plz12345 avatar Aug 08 '26 04:08 plz12345