From 6a92eff8148c49c281f1910fa6e407257b9c1028 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 27 Dec 2025 23:44:31 +1300 Subject: [PATCH] Add model path debug output on startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- handler.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/handler.py b/handler.py index e215b93..753f1df 100644 --- a/handler.py +++ b/handler.py @@ -53,6 +53,19 @@ def start_comfyui(): if comfyui_process is not None and comfyui_process.poll() is None: return True + # Debug: show model paths + print("=== Model Path Debug ===") + import subprocess + for path in ["/runpod-volume", "/runpod-volume/models", "/workspace/ComfyUI/models"]: + result = subprocess.run(["ls", "-la", path], capture_output=True, text=True) + print(f"{path}:") + print(result.stdout[:500] if result.stdout else f" Error: {result.stderr}") + + # Find any .safetensors files + result = subprocess.run(["find", "/runpod-volume", "-name", "*.safetensors", "-type", "f"], + capture_output=True, text=True, timeout=30) + print(f"Safetensors on volume:\n{result.stdout[:1000] if result.stdout else 'None found'}") + print("Starting ComfyUI server...") comfyui_process = subprocess.Popen(