Comfy-Org / Comfy-Org/ComfyUI

Server Service Incident Report

Open
#7,862 1 comment 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Expected Behavior

We are currently facing two distinct issues:

1 - SSL and Proxy Configuration:
When enabling SSL in conjunction with a proxy, we encounter 404 errors related to file requests at the API level—specifically during workflow execution. These errors do not occur when SSL is disabled. We have verified that the proxy configuration on our end is correct.

Sample of files :
http://ai-portal.domain.net:8189/api/userdata/workflows%2Fxx%20SD15%20-%20Fond%20produit.json ok
http://10.0.10.45:8189/api/userdata/workflows%2Fxx%20SD15%20-%20Fond%20produit.json ok
https://comfyui.ai-portal.domain.net/api/userdata/workflows%2Fxx%20SD15%20-%20Fond%20produit.json KO

We use Xamp to share the proxies

2 - ComfyUI Stability with Flux1 Models:
The server experiences crashes either overnight or during the day following usage of the Flux1 models within ComfyUI. Notably, if the ComfyUI application remains active but is not being used, the server remains stable and does not crash.

We would appreciate your assistance in identifying and resolving these issues.

### Actual Behavior

![Image](https://github.com/user-attachments/assets/f5cfb45d-1562-4bee-9e91-6cf4a11e56a9)

![Image](https://github.com/user-attachments/assets/43b687e0-072f-42ac-8b70-aa7e5748500f)

![Image](https://github.com/user-attachments/assets/8b5f07ab-8fbf-4b99-aa02-d36bba04534e)

### Steps to Reproduce

To reproduce the issue, we configured ComfyUI using the --server-remote option, specifying the server's IP address and a designated port.
Attempts to enable SSL directly within ComfyUI cause the application to crash. As a workaround, we are handling SSL termination at the proxy level instead.

### Debug Logs

```powershell
## ComfyUI-Manager: installing dependencies done.
[2025-04-25 17:18:50.729] ** ComfyUI startup time: 2025-04-25 17:18:50.729
[2025-04-25 17:18:50.729] ** Platform: Windows
[2025-04-25 17:18:50.729] ** Python version: 3.12.8 (main, Jan 14 2025, 22:49:36) [MSC v.1942 64 bit (AMD64)]
[2025-04-25 17:18:50.729] ** Python executable: D:\Echange102\.venv\Scripts\python.exe
[2025-04-25 17:18:50.729] ** ComfyUI Path: C:\Users\comfyui\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI
[2025-04-25 17:18:50.729] ** ComfyUI Base Folder Path: C:\Users\comfyui\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI
[2025-04-25 17:18:50.729] ** User directory: D:\Echange102\user
[2025-04-25 17:18:50.729] ** ComfyUI-Manager config path: D:\Echange102\user\default\ComfyUI-Manager\config.ini
[2025-04-25 17:18:50.745] ** Log path: D:\Echange102\user\comfyui.log
[ComfyUI-Manager] Skipped fixing the 'comfyui-frontend-package' dependency because the ComfyUI is outdated.
[2025-04-25 17:18:51.831] [START] Security scan
[2025-04-25 17:18:52.826] [DONE] Security scan
[2025-04-25 17:18:52.826] [ComfyUI-Manager] Logging failed: [WinError 32] Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus: 'D:\\Echange102\\user\\comfyui_81.log' -> 'D:\\Echange102\\user\\comfyui_81.prev.log'
[2025-04-25 17:18:52.826] ## ComfyUI-Manager: installing dependencies done.
[2025-04-25 17:18:52.826] ** ComfyUI startup time: 2025-04-25 17:18:52.826
[2025-04-25 17:18:52.826] ** Platform: Windows
[2025-04-25 17:18:52.826] ** Python version: 3.12.8 (main, Jan 14 2025, 22:49:36) [MSC v.1942 64 bit (AMD64)]
[2025-04-25 17:18:52.826] ** Python executable: D:\Echange102\.venv\Scripts\python.exe
[2025-04-25 17:18:52.826] ** ComfyUI Path: C:\Users\comfyui\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI
[2025-04-25 17:18:52.826] ** ComfyUI Base Folder Path: C:\Users\comfyui\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI
[2025-04-25 17:18:52.826] ** User directory: D:\Echange102\user
[2025-04-25 17:18:52.826] ** ComfyUI-Manager config path: D:\Echange102\user\default\ComfyUI-Manager\config.ini
[2025-04-25 17:18:52.826] ** Log path: D:\Echange102\user\comfyui.log
[2025-04-25 17:18:53.913] [ComfyUI-Manager] Skipped fixing the 'comfyui-frontend-package' dependency because the ComfyUI is outdated.
[2025-04-25 17:18:53.917]
Prestartup times for custom nodes:
[2025-04-25 17:18:53.917] 2.1 seconds: C:\Users\comfyui\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager
[2025-04-25 17:18:53.917]
[2025-04-25 17:18:54.942] Checkpoint files will always be loaded safely.
[2025-04-25 17:18:55.073] Total VRAM 49140 MB, total RAM 130572 MB
[2025-04-25 17:18:55.073] pytorch version: 2.6.0+cu126
[2025-04-25 17:18:55.073] Set vram state to: NORMAL_VRAM
[2025-04-25 17:18:55.073] Disabling smart memory management
[2025-04-25 17:18:55.073] Device: cuda:0 NVIDIA RTX 6000 Ada Generation : cudaMallocAsync
[2025-04-25 17:18:55.831] Using pytorch attention
[2025-04-25 17:18:56.571] Python version: 3.12.8 (main, Jan 14 2025, 22:49:36) [MSC v.1942 64 bit (AMD64)]
[2025-04-25 17:18:56.571] ComfyUI version: 0.3.29
[2025-04-25 17:18:56.591] [Prompt Server] web root: C:\Users\comfyui\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\web_custom_versions\desktop_app
[2025-04-25 17:18:57.129] Note: NumExpr detected 48 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 16.
[2025-04-25 17:18:57.129] NumExpr defaulting to 16 threads.
[2025-04-25 17:18:57.228] [Crystools INFO] Crystools version: 1.22.1
[2025-04-25 17:18:57.255] [Crystools INFO] CPU: AMD Ryzen Threadripper PRO 7965WX 24-Cores - Arch: AMD64 - OS: Windows 11
[2025-04-25 17:18:57.264] [Crystools INFO] Pynvml (Nvidia) initialized.
[2025-04-25 17:18:57.264] [Crystools INFO] GPU/s:
[2025-04-25 17:18:57.279] [Crystools INFO] 0) NVIDIA RTX 6000 Ada Generation
[2025-04-25 17:18:57.279] [Crystools INFO] NVIDIA Driver: 572.61
[2025-04-25 17:18:57.296] ### Loading: ComfyUI-Manager (V3.31.8)
[2025-04-25 17:18:57.296] [ComfyUI-Manager] network_mode: public
[2025-04-25 17:18:57.296] ### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)
[2025-04-25 17:18:57.327] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[2025-04-25 17:18:57.354] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[2025-04-25 17:18:57.374] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[2025-04-25 17:18:57.388] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[2025-04-25 17:18:57.404] [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[2025-04-25 17:18:57.981] ------------------------------------------
[2025-04-25 17:18:57.981] Comfyroll Studio v1.76 :  175 Nodes Loaded
[2025-04-25 17:18:57.981] ------------------------------------------
[2025-04-25 17:18:57.981] ** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md
[2025-04-25 17:18:57.981] ** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki
[2025-04-25 17:18:57.981] ------------------------------------------
[2025-04-25 17:18:57.992]
Import times for custom nodes:
[2025-04-25 17:18:57.992] 0.0 seconds: C:\Users\comfyui\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\websocket_image_save.py
[2025-04-25 17:18:57.992] 0.0 seconds: C:\Users\comfyui\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager
[2025-04-25 17:18:57.992] 0.0 seconds: D:\Echange102\custom_nodes\comfyui-custom-scripts
[2025-04-25 17:18:57.992] 0.0 seconds: D:\Echange102\custom_nodes\ComfyUI-Manager
[2025-04-25 17:18:57.992] 0.0 seconds: D:\Echange102\custom_nodes\comfyui_essentials
[2025-04-25 17:18:57.992] 0.2 seconds: D:\Echange102\custom_nodes\ComfyUI-Crystools
[2025-04-25 17:18:57.992] 0.3 seconds: D:\Echange102\custom_nodes\ComfyUI_Comfyroll_CustomNodes
[2025-04-25 17:18:57.992] 0.4 seconds: D:\Echange102\custom_nodes\comfyui-ollama
[2025-04-25 17:18:57.992]
[2025-04-25 17:18:58.010] Starting server

[2025-04-25 17:18:58.012] To see the GUI go to: https://comfyui.ai-portal.domain.net:81
[2025-04-25 17:19:00.354] FETCH ComfyRegistry Data: 5/82
[2025-04-25 17:19:03.647] FETCH ComfyRegistry Data: 10/82
[2025-04-25 17:19:06.958] FETCH ComfyRegistry Data: 15/82
[2025-04-25 17:19:10.167] FETCH ComfyRegistry Data: 20/82
[2025-04-25 17:19:13.386] FETCH ComfyRegistry Data: 25/82
```

### Other

VHOST
```

ServerName comfyui.ai-portal.domain.net

SSLEngine on

SSLProtocol all -SSLv3

SSLCertificateFile "C:/Users/comfyui/certif/_.ai-portal.domain.net.crt"

SSLCertificateKeyFile "C:/Users/comfyui/certif/wilcard.ai-portal.domain.net.key"

SSLCertificateChainFile "C:/Users/comfyui/certif/GandiCert.pem"


ProxyPreserveHost On

ProxyPass "/" "http://10.0.10.45:8189/"

ProxyPassReverse "/" "http://10.0.10.45:8189/"

# Proxy WebSockets (corrigé)

RewriteEngine On

RewriteCond %{HTTP:Upgrade} =websocket [NC]

RewriteRule /(.*) ws://10.0.10.45:8189/$1 [P,L]

ProxyPass "/ws/" "ws://comfyui.ai-portal.domain.net:8189/"

ProxyPassReverse "/ws/" "ws://comfyui.ai-portal.domain.net:8189/"

Require all granted

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.