Open forsyth2 opened 1 month ago
@forsyth2, while you're at it, could you give the tmp
directories a more useful name (say including ts
or climo
or whatever the task is)? That would also help with debugging if something goes wrong.
It might be easiest to find something else you can call to generate a random hash for the end of the directory name, but then just use a normal mkdir
call so permissions are unaffected.
mktemp --dry-run
might be helpful for just generating the hash:
hash=`mktemp --dry-run -d XXXX`
work_dir=`mkdir tmp.ilamb.${id}.${hash}`
@chengzhuzhang also noted that tmp directories with ...
can't get deleted either. @xylar noted one possible cause for that is a regex parsing issue.
I think you probably need to delete them manually, finding the appropriate escape characters. Sometimes tab completion can tell you what they are.
What happened?
When checking disk usage, errors like
du: cannot read directory 'ac.benedict/E3SMv3_dev/20231012.v3alpha04_bigrid_L80_QBO1.F20TR.chrysalis/post/scripts/tmp.407421.rCki': Permission denied
. This is because of a permissions issues with the temp directorieszppy
creates.What machine were you running on?
Chrysalis
Environment
N/A
What command did you run?
Copy your cfg file
What jobs are failing?
No response
What stack trace are you encountering?
No response