Hey everyone,
We have this strange random error occurring. I cannot find a pattern, but when rendering through Nuke there are random frames that don’t get written. I’d say 80% have no issues but then I get these random errors of…
RuntimeError: Write2: Unable to create directory
The first frame of the batch will get skipped and then all the other frames in the batch are fine. I don’t see a pattern on why this is an issue. Anyone have any suggestions? Again this isn’t consistent and maybe every 5th render sees these symptoms. Thank you in advance for your help.
Right now I can’t tell if this is a Deadline issue or a Synology issue. It’s so random and I cannot repeat it.
Hello @chris_m_wood
I think we can run a command line job in a loop to test the storage.
If loading the scene/file/asset breaks randomly and you suspect it’s due to the performance issue of the storage device run below tests to prove/disprove yourself:
Test1:
- Submit a command line job: Deadline Monitor> Submit> Misc.> Command Line
- Executable is:
/bin/dd
and the Arguments:if=/path/to/scene of=/dev/null bs=1024000
- frame list 0 - 100 (make enough Tasks to so that every machine can render once )
- This job will be pulling files from the disks (if) of size (bs) 1024000 bytes and prints the I/O rate, it will copy the files to a null location (of)
Test2:
I’m finally getting back to this. This is the error, it looks as though many batches are trying to create the same directory at once is my guess. Any ideas on how to solve it?
WARNING: Skipping error detection as ‘Continue On Error’ is enabled.
2024-08-19 16:45:36: 0: STDOUT: >>> [16:45.36] ERROR: Write2: Unable to create directory ‘Z:/SHOWS/TRA/TRA_201/TRA_201_001/TRA_201_001_010/renders/comp/TRA_201_001_010_comp_v001/’, File exists
2024-08-19 16:45:36: 0: STDOUT: Total render time: 0.01 seconds
2024-08-19 16:45:36: 0: STDOUT: Traceback (most recent call last):
2024-08-19 16:45:36: 0: STDOUT: File “stdin”, line 1, in
2024-08-19 16:45:36: 0: WARNING: Skipping error detection as ‘Continue On Error’ is enabled.
2024-08-19 16:45:36: 0: STDOUT: RuntimeError: Write2: Unable to create directory ‘Z:/SHOWS/TRA/TRA_201/TRA_201_001/TRA_201_001_010/renders/comp/TRA_201_001_010_comp_v001/’, File exists
I believe I solved this with a custom pre-render python process that triggers a file creation before the render. It’s a simple code if anyone cares…
import os
def create_directories():
directories = [
"path/to/output/directory1",
"path/to/output/directory2",
# Add more directories as needed
]
for directory in directories:
if not os.path.exists(directory):
os.makedirs(directory)
create_directories()