Skip to content

Commit ab1648e

Browse files
committed
Add diagnostic logging for network volume debugging
- Check if extra_model_paths.yaml exists at /comfyui/ - Print yaml content to logs - Check if /runpod-volume is mounted - List contents of /runpod-volume and /runpod-volume/models This helps debug why models on network volumes might not be detected.
1 parent d29f0bc commit ab1648e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/start.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,30 @@ export LD_PRELOAD="${TCMALLOC}"
77
# Ensure ComfyUI-Manager runs in offline network mode inside the container
88
comfy-manager-set-mode offline || echo "worker-comfyui - Could not set ComfyUI-Manager network_mode" >&2
99

10+
# Diagnostic: Check extra_model_paths.yaml
11+
if [ -f /comfyui/extra_model_paths.yaml ]; then
12+
echo "worker-comfyui: extra_model_paths.yaml found at /comfyui/"
13+
echo "worker-comfyui: extra_model_paths.yaml content:"
14+
cat /comfyui/extra_model_paths.yaml
15+
else
16+
echo "worker-comfyui: WARNING - extra_model_paths.yaml NOT found at /comfyui/"
17+
fi
18+
19+
# Diagnostic: Check network volume
20+
if [ -d /runpod-volume ]; then
21+
echo "worker-comfyui: Network volume mounted at /runpod-volume"
22+
echo "worker-comfyui: /runpod-volume contents:"
23+
ls -la /runpod-volume/
24+
if [ -d /runpod-volume/models ]; then
25+
echo "worker-comfyui: /runpod-volume/models contents:"
26+
ls -la /runpod-volume/models/
27+
else
28+
echo "worker-comfyui: WARNING - /runpod-volume/models does NOT exist"
29+
fi
30+
else
31+
echo "worker-comfyui: INFO - /runpod-volume does not exist (no network volume attached)"
32+
fi
33+
1034
echo "worker-comfyui: Starting ComfyUI"
1135

1236
# Allow operators to tweak verbosity; default is DEBUG.

0 commit comments

Comments
 (0)