ComfyUI_frontend icon indicating copy to clipboard operation
ComfyUI_frontend copied to clipboard

[Bug]: Colab + Cloudflared - it works, but slow and console is red

Open SamTyurenkov opened this issue 6 months ago • 14 comments

Frontend Version

1.18.9

Expected Behavior

Loads faster and doesn't have console errors.

Actual Behavior

After cloudflared tunnel started, it still takes 2+ minutes before UI appears in the browser tab and console is full of errors: Image

Steps to Reproduce

I used the cloudflared example from ComfyUI notebook examples.

Debug Logs

/content/venv/bin/python
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-05-10 13:49:14.438
** Platform: Linux
** Python version: 3.12.10 (main, Apr  9 2025, 08:55:05) [GCC 11.4.0]
** Python executable: /content/venv/bin/python
** ComfyUI Path: /content/ComfyUI
** ComfyUI Base Folder Path: /content/ComfyUI
** User directory: /content/ComfyUI/user
** ComfyUI-Manager config path: /content/ComfyUI/user/default/ComfyUI-Manager/config.ini
** Log path: /content/ComfyUI/user/comfyui.log

Prestartup times for custom nodes:
   2.0 seconds: /content/ComfyUI/custom_nodes/comfyui-manager

Checkpoint files will always be loaded safely.
Total VRAM 22693 MB, total RAM 54232 MB
pytorch version: 2.7.0+cu128
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA L4 : cudaMallocAsync
Using pytorch attention
Python version: 3.12.10 (main, Apr  9 2025, 08:55:05) [GCC 11.4.0]
ComfyUI version: 0.3.33
ComfyUI frontend version: 1.18.9
[Prompt Server] web root: /content/venv/lib/python3.12/site-packages/comfyui_frontend_package/static

[ReActor] - STATUS - Running v0.6.0-a1 in ComfyUI
Torch version: 2.7.0+cu128
### Loading: ComfyUI-Impact-Subpack (V1.3.2)
[Impact Pack/Subpack] Using folder_paths to determine whitelist path: /content/ComfyUI/user/default/ComfyUI-Impact-Subpack/model-whitelist.txt
[Impact Pack/Subpack] Ensured whitelist directory exists: /content/ComfyUI/user/default/ComfyUI-Impact-Subpack
[Impact Pack/Subpack] Loaded 0 model(s) from whitelist: /content/ComfyUI/user/default/ComfyUI-Impact-Subpack/model-whitelist.txt
[Impact Subpack] ultralytics_bbox: /content/ComfyUI/models/ultralytics/bbox
[Impact Subpack] ultralytics_segm: /content/ComfyUI/models/ultralytics/segm
[/content/ComfyUI/custom_nodes/comfyui_controlnet_aux] | INFO -> Using ckpts path: /content/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts
[/content/ComfyUI/custom_nodes/comfyui_controlnet_aux] | INFO -> Using symlinks: False
[/content/ComfyUI/custom_nodes/comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
### Loading: ComfyUI-Impact-Pack (V8.14.2)
[Impact Pack] Wildcards loading done.
------------------------------------------
Comfyroll Studio v1.76 :  175 Nodes Loaded
------------------------------------------
** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md
** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki
------------------------------------------
### Loading: ComfyUI-Manager (V3.31.13)
[ComfyUI-Manager] network_mode: public
### ComfyUI Version: v0.3.33-7-gd4261368 | Released on '2025-05-10'

Import times for custom nodes:
   0.0 seconds: /content/ComfyUI/custom_nodes/websocket_image_save.py
   0.0 seconds: /content/ComfyUI/custom_nodes/ComfyUI-ultimate-openpose-editor
   0.0 seconds: /content/ComfyUI/custom_nodes/cg-use-everywhere
   0.0 seconds: /content/ComfyUI/custom_nodes/comfyui-inpaint-cropandstitch
   0.0 seconds: /content/ComfyUI/custom_nodes/comfyui-advancedliveportrait
   0.0 seconds: /content/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes
   0.0 seconds: /content/ComfyUI/custom_nodes/comfyui_ipadapter_plus
   0.0 seconds: /content/ComfyUI/custom_nodes/comfyui-impact-pack
   0.1 seconds: /content/ComfyUI/custom_nodes/comfyui-impact-subpack
   0.1 seconds: /content/ComfyUI/custom_nodes/comfyui-manager
   0.3 seconds: /content/ComfyUI/custom_nodes/x-flux-comfyui
   0.6 seconds: /content/ComfyUI/custom_nodes/comfyui_controlnet_aux
   1.3 seconds: /content/ComfyUI/custom_nodes/comfyui-inspyrenet-rembg
   1.6 seconds: /content/ComfyUI/custom_nodes/comfyui-reactor-node

********** ERROR ***********

comfyui-workflow-templates is not installed.

Please install the updated requirements.txt file by running:
/content/venv/bin/python -m pip install -r /content/ComfyUI/requirements.txt

This error is happening because the ComfyUI frontend is no longer shipped as part of the main repo but as a pip package instead.

If you are on the portable package you can run: update\update_comfyui.bat to solve this problem

********** ERROR ***********
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json

ComfyUI finished loading, trying to launch cloudflared (if it gets stuck here cloudflared is having issues)

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
FETCH ComfyRegistry Data: 5/84
This is the URL to access ComfyUI: https://cool-bet-reform-trauma.trycloudflare.com                                      |
FETCH ComfyRegistry Data: 10/84
FETCH ComfyRegistry Data: 15/84
FETCH ComfyRegistry Data: 20/84
FETCH ComfyRegistry Data: 25/84
FETCH ComfyRegistry Data: 30/84
FETCH ComfyRegistry Data: 35/84
FETCH ComfyRegistry Data: 40/84
FETCH ComfyRegistry Data: 45/84
FETCH ComfyRegistry Data: 50/84
FETCH ComfyRegistry Data: 55/84
FETCH ComfyRegistry Data: 60/84
FETCH ComfyRegistry Data: 65/84
FETCH ComfyRegistry Data: 70/84
FETCH ComfyRegistry Data: 75/84
FETCH ComfyRegistry Data: 80/84
FETCH ComfyRegistry Data [DONE]
[ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
[ComfyUI-Manager] All startup tasks have been completed.
[ReActor] Downloading GFPGANv1.3.pth to /content/ComfyUI/models/facerestore_models/GFPGANv1.3.pth: 332MB [00:01, 211MB/s]               
[ReActor] Downloading GFPGANv1.4.pth to /content/ComfyUI/models/facerestore_models/GFPGANv1.4.pth: 332MB [00:01, 213MB/s]               
[ReActor] Downloading codeformer-v0.1.0.pth to /content/ComfyUI/models/facerestore_models/codeformer-v0.1.0.pth: 359MB [00:01, 215MB/s]               
[ReActor] Downloading GPEN-BFR-512.onnx to /content/ComfyUI/models/facerestore_models/GPEN-BFR-512.onnx: 271MB [00:01, 200MB/s]

Browser Logs

Running on cool-bet-reform-trauma.trycloudflare.com App.vue:45 ComfyUI Front-end version: 1.18.9 /favicon.ico:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/userdata?dir=workflows&recurse=true&split=false&full_info=true:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

antd-e0182f4b.css:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

index-cd1939ba.js:1 Uncaught (in promise) Error: Unable to preload CSS for /ComfyUI-ultimate-openpose-editor/assets/antd-e0182f4b.css at HTMLLinkElement. (index-cd1939ba.js:1:1669) (anonymous) @ index-cd1939ba.js:1Understand this error nodeDefStore.ts:86 Use of defaultInput on required input custom_nodes.comfyui-impact-pack:ImpactSchedulerAdapter:scheduler is deprecated. Please drop the defaultInput option. #migrateDefaultInput @ nodeDefStore.ts:86 ComfyNodeDefImpl @ nodeDefStore.ts:107 registerNodeDef @ litegraphService.ts:309Understand this warning nodeDefStore.ts:86 Use of defaultInput on required input custom_nodes.comfyui-impact-pack:ImpactSchedulerAdapter:scheduler is deprecated. Please drop the defaultInput option. #migrateDefaultInput @ nodeDefStore.ts:86 ComfyNodeDefImpl @ nodeDefStore.ts:107 updateNodeDefs @ nodeDefStore.ts:279 wrappedAction @ pinia.mjs:1405 updateVueAppNodeDefs @ app.ts:830 registerNodes @ app.ts:866Understand this warning /api/userdata/comfy.templates.json:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

components-manager.js:770 Empty components: policy ignored /templates/index.json:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

workflowTemplatesStore.ts:103 Error fetching workflow templates: AxiosError$1 loadWorkflowTemplates @ workflowTemplatesStore.ts:103Understand this error /api/workflow_templates/x-flux-comfyui/flux-controlnet-hed-v3-workflow.jpg:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/workflow_templates/x-flux-comfyui/flux-controlnet-canny-v3-workflow.jpg:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/workflow_templates/x-flux-comfyui/ip_adapter_multiple_inputs_workflow.jpg:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/workflow_templates/x-flux-comfyui/depth_workflow.jpg:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/workflow_templates/x-flux-comfyui/lora_workflow.jpg:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/workflow_templates/x-flux-comfyui/ip_adapter_workflow.jpg:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/workflow_templates/x-flux-comfyui/hed_workflow.jpg:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/workflow_templates/x-flux-comfyui/flux-controlnet-depth-v3-workflow.jpg:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/workflow_templates/x-flux-comfyui/canny_workflow.jpg:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/userdata/workflows%2F.index.json:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

/api/userdata/workflows%2F.index.json:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

components-manager.js:770 Empty components: policy ignored 2use_everywhere_utilities.js:90 added widget_ue_connectable /api/userdata/workflows%2F.index.json:1

       Failed to load resource: the server responded with a status of 404 ()Understand this error

Setting JSON

I didn't modify it, this is a fresh install with default user

What browsers do you use to access the UI ?

Google Chrome

Other Information

I use Google Colab Pro ComfyUI and Cloudflared Im located in Russia

┆Issue is synchronized with this Notion page by Unito

SamTyurenkov avatar May 10 '25 14:05 SamTyurenkov

Update:

I think it's somehow related to models/ being mounted from a s3 object storage, not the custom nodes. Researching further.

SamTyurenkov avatar Jun 02 '25 14:06 SamTyurenkov