Hi,
I’ve written an OnJobDeleted event handler to clean up temporary files that were used by the job. It’s working well, but sometimes, I get this error message in my monitor’s console log:
2015-05-10 15:15:20: Error occurred while writing report log:
2015-05-10 15:15:20:
2015-05-10 15:15:20: Exception Details
2015-05-10 15:15:20: UnauthorizedAccessException – Access to the path “/tmp/554f59e8adf7dc3a831fbfd6.bz2” or “/NAS/renderfarm/Thinkbox/DeadlineRepository7/reports/jobs/ba/c/55366b2f43c7d4413753cbac/554f59e8adf7dc3a831fbfd6.bz2” is denied.
2015-05-10 15:15:20: Exception.HResult: -2146233088
2015-05-10 15:15:20: Exception.Source: mscorlib
2015-05-10 15:15:20: Exception.TargetSite: Void Copy(System.String, System.String, Boolean)
2015-05-10 15:15:20: Exception.Data: ( )
2015-05-10 15:15:20: Exception.StackTrace:
2015-05-10 15:15:20: at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) [0x00000] in :0
2015-05-10 15:15:20: at Deadline.StorageDB.JobStorage.WriteJobReportFile (Deadline.Reports.Report report, System.String reportFileName) [0x00000] in :0
I’m using ClientUtils.LogText() but everything I write ends up in the console log.
The error happens after the event handler has run so it doesn’t really bother me but I was wondering if that’s something I can work around or not.
The directory in question (…/reports/jobs/ba/c/55…/) exists. All parent directories are owned by root and are read/writeable by everybody, but the one with the long number just has “rwxr-xr-x” rights. Maybe that’s why my monitor (not running as root) can’t access it? There are bz2 files in there but that particular one from the error message doesn’t exist.