ComfyUI-Docker
ComfyUI-Docker copied to clipboard
Segmentation Fault after running any workflow
The server starts beautifully, I can install nodes, download models without problems. When I run ANY workflow (tried a simple remove backgroud workflow as stated in the picture below)
The container just exit during the workflow run and the logs are attached below
[INFO] Running set-proxy script...
[INFO] Continue without proxy.
[INFO] Running pre-start script...
[INFO] Continue without pre-start script.
########################################
[INFO] Starting ComfyUI...
########################################
Using Python 3.12.11 environment at: /usr
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-08-25 21:15:46.630
** Platform: Linux
** Python version: 3.12.11 (main, Jun 09 2025, 21:22:34) [GCC]
** Python executable: /usr/bin/python3
** ComfyUI Path: /root/ComfyUI
** ComfyUI Base Folder Path: /root/ComfyUI
** User directory: /root/ComfyUI/user
** ComfyUI-Manager config path: /root/ComfyUI/user/default/ComfyUI-Manager/config.ini
** Log path: /root/ComfyUI/user/comfyui.log
Using Python 3.12.11 environment at: /usr
Using Python 3.12.11 environment at: /usr
Prestartup times for custom nodes:
0.0 seconds: /root/ComfyUI/custom_nodes/rgthree-comfy
1.0 seconds: /root/ComfyUI/custom_nodes/ComfyUI-Manager
Checkpoint files will always be loaded safely.
Total VRAM 7840 MB, total RAM 11961 MB
pytorch version: 2.8.0+cu128
xformers version: 0.0.32.post2
Set vram state to: LOW_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3070 : cudaMallocAsync
Using xformers attention
Python version: 3.12.11 (main, Jun 09 2025, 21:22:34) [GCC]
ComfyUI version: 0.3.52
ComfyUI frontend version: 1.25.10
[Prompt Server] web root: /root/.local/lib/python3.12/site-packages/comfyui_frontend_package/static
[rgthree-comfy] Loaded 48 exciting nodes. 🎉
NumExpr defaulting to 2 threads.
Error loading AILab_SegmentV2.py: No module named 'groundingdino'
Warning: GroundingDINO not available. Text prompts will use fallback method.
[ComfyUI-RMBG] v2.9.0 | 31 nodes Loaded
### Loading: ComfyUI-Manager (V3.36)
[ComfyUI-Manager] network_mode: public
### ComfyUI Version: v0.3.52 | Released on '2025-08-23'
[Crystools INFO] Crystools version: 1.27.3
[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/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.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/extension-node-map.json
[Crystools INFO] Platform release: 6.1.0-37-amd64
[Crystools INFO] JETSON: Not detected.
[Crystools INFO] CPU: AMD Ryzen 5 2400G with Radeon Vega Graphics - Arch: x86_64 - OS: Linux 6.1.0-37-amd64
[Crystools INFO] pynvml (NVIDIA) initialized.
[Crystools INFO] GPU/s:
[Crystools INFO] 0) NVIDIA GeForce RTX 3070
[Crystools INFO] NVIDIA Driver: 575.57.08
Import times for custom nodes:
0.0 seconds: /root/ComfyUI/custom_nodes/websocket_image_save.py
0.1 seconds: /root/ComfyUI/custom_nodes/ComfyUI-Manager
0.3 seconds: /root/ComfyUI/custom_nodes/ComfyUI-Crystools
0.8 seconds: /root/ComfyUI/custom_nodes/rgthree-comfy
2.2 seconds: /root/ComfyUI/custom_nodes/ComfyUI-RMBG
Context impl SQLiteImpl.
Will assume non-transactional DDL.
No target revision found.
Starting server
To see the GUI go to: http://0.0.0.0:8188
To see the GUI go to: http://[::]:8188
FETCH ComfyRegistry Data: 5/95
FETCH ComfyRegistry Data: 10/95
FETCH ComfyRegistry Data: 15/95
FETCH ComfyRegistry Data: 20/95
FETCH ComfyRegistry Data: 25/95
FETCH ComfyRegistry Data: 30/95
FETCH ComfyRegistry Data: 35/95
FETCH ComfyRegistry Data: 40/95
FETCH ComfyRegistry Data: 45/95
FETCH ComfyRegistry Data: 50/95
FETCH ComfyRegistry Data: 55/95
FETCH ComfyRegistry Data: 60/95
FETCH ComfyRegistry Data: 65/95
FETCH ComfyRegistry Data: 70/95
FETCH ComfyRegistry Data: 75/95
FETCH ComfyRegistry Data: 80/95
FETCH ComfyRegistry Data: 85/95
FETCH ComfyRegistry Data: 90/95
FETCH ComfyRegistry Data: 95/95
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.
got prompt
/runner-scripts/entrypoint.sh: line 52: 9 Segmentation fault (core dumped) python3 ./ComfyUI/main.py --listen --port 8188 ${CLI_ARGS}
here is also my docker-compose:
services:
comfyui:
image: yanwk/comfyui-boot:cu128-slim
container_name: comfyui
privileged: true
ports:
- 3008:8188
environment:
- NVIDIA_VISIBLE_DEVICES=all
- CLI_ARGS=--lowvram
volumes:
- /home/portainer/custom_apps/comfyui/comfyui:/root
deploy:
resources:
limits:
cpus: 1
memory: 4G
Is worth mentioning that this volume is a NFS share, mounted by /etc/fstab entry and working as expected.
Any ideas how to fix it?