I've been running into some very unusual permission errors when simulating with SNANA on Perlmutter, specifically arising during the merge process. We've been speaking with NERSC about what the cause might be, we haven't been able to diagnose what is going on thus far. We've added the output of os.stat to the logs so far, they've requested that we amend the code with the following suggestions to get some more information:
Can you check that the file is indeed closed before running the operation that triggers the warning? I expect this would look like:
if file.closed == True:
print("file is closed")
else:
print("file is open")
Instead of os.stat(merge_file) could you do os.access(merge_file)?
Use a shell command to print out the file. For example something like:
import subprocess
subprocess.run(["cat",merge_file])
Could you add these to the relevant file (I think it's read_merge_file in submit_util.py, but not 100%)?
I've been running into some very unusual permission errors when simulating with SNANA on Perlmutter, specifically arising during the merge process. We've been speaking with NERSC about what the cause might be, we haven't been able to diagnose what is going on thus far. We've added the output of os.stat to the logs so far, they've requested that we amend the code with the following suggestions to get some more information:
Could you add these to the relevant file (I think it's read_merge_file in submit_util.py, but not 100%)?