RunpodR
Runpod12mo ago
xeith_

Linking runpod-volume subfolder doesn't work

Hey,
I've been trying to create a serverless runpod that has some network volume attached to it.
I want to link specific folders from the network volume to the runpod. To do so, im running the following bash file.

echo "Symlinking files from Network Volume"

rm -rf /comfyui/custom_nodes
rm -rf /comfyui/models
rm -rf /venv
rm -rf /logs

ln -s /runpod-volume/ComfyUI/custom_nodes /comfyui/custom_nodes
ln -s /runpod-volume/ComfyUI/models /comfyui/models

cd /comfyui
python main.py --port 3000 > /runpod-volume/logs/comfyui.log 2>&1

So far so good, the runpod starts and seems to load the custom nodes. 🎊
But when trying to load a checkpoint, it fails with the following error :
WARNING path /comfyui/models/checkpoints/sd_xl_base_1-0.safetensors exists but doesn't link anywhere, skipping.
!!! Exception during processing !!! Model in folder 'checkpoints' with filename 'sd_xl_base_1-0.safetensors' not found.

Traceback (most recent call last):
  File "/comfyui/execution.py", line 327, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/comfyui/execution.py", line 202, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/comfyui/execution.py", line 174, in _map_node_over_list
[...]
FileNotFoundError: Model in folder 'checkpoints' with filename 'sd_xl_base_1-0.safetensors' not found.

When I open the network storage via some other pod I can correctly see the sd_xl_base_1-0.safetensors in it..

If anyone has already faced this issue, I would be very thankful for some help 😊
Was this page helpful?