av.error.ValueError: [Errno 22] Invalid argument
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
Save Video node should save mp4 videos to S3 output folder
### Actual Behavior
Hey,
Trying to see if someone else also having this issue, when using the S3 CSI driver.
I'm able to save images to the output folder, and I'm able to write content from within the POD to the directory, but when executing a native Save Video node it fails. If I change the output folder from S3 to EBS -> it works :/
### Steps to Reproduce
save a native video type to Amazon S3
### Debug Logs
```powershell
!!! Exception during processing !!! [Errno 22] Invalid argument: '/app/ComfyUI/output/video/ComfyUI_00001_.mp4'
Traceback (most recent call last):
File "/app/ComfyUI/execution.py", line 496, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/ComfyUI/execution.py", line 315, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/ComfyUI/execution.py", line 289, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "/app/ComfyUI/execution.py", line 277, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "/app/ComfyUI/comfy_api/internal/init.py", line 149, in wrapped_func
return method(locked_class, **inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/ComfyUI/comfy_api/latest/_io.py", line 1248, in EXECUTE_NORMALIZED
to_return = cls.execute(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/ComfyUI/comfy_extras/nodes_video.py", line 109, in execute
video.save_to(
File "/app/ComfyUI/comfy_api/latest/input_impl/video_types.py", line 214, in save_to
with av.open(path, **open_kwargs) as output_container:
File "av/container/core.pyx", line 296, in av.container.core.Container.exit
File "av/container/output.py", line 369, in av.container.output.OutputContainer.close
File "av/container/output.py", line 26, in av.container.output.close_output
File "av/container/core.pyx", line 302, in av.container.core.Container.err_check
File "av/error.pyx", line 424, in av.error.err_check
av.error.ValueError: [Errno 22] Invalid argument: '/app/ComfyUI/output/video/ComfyUI_00001.mp4'
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.