Bug #1298
openthread log permission denied
0%
Description
From Scott Stagg:
I got these exceptions that it recovered from (i.e. it continued):
Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/local/myami_dev/appion/appionlib/apThread.py", line 43, in run self.log('run start1') File "/usr/local/myami_dev/appion/appionlib/apThread.py", line 37, in log logfile = open(self.logfilename, 'a') IOError: [Errno 13] Permission denied: 'thread000.log'
Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap self.run() File "/usr/local/myami_dev/appion/appionlib/apThread.py", line 43, in run self.log('run start1') File "/usr/local/myami_dev/appion/appionlib/apThread.py", line 37, in log logfile = open(self.logfilename, 'a') IOError: [Errno 13] Permission denied: 'thread001.log'
Updated by Anchi Cheng over 13 years ago
It looks like apThread.py writes the log files to where appionScript is launched, not the rundir. Any reason for that?
Updated by Neil Voss over 13 years ago
Anchi, I think you wrote this part, but your class seems to write it to the current working directory (cwd). In AppionScript (at least AppionLoop), the cwd is set to be the rundir at some point.
Updated by Anchi Cheng over 13 years ago
- Status changed from New to Assigned
- Assignee set to Jim Pulokas
Jim, I think you wrote this while working in my sandbox. I am not that clever. Is the log for debugging? Maybe we can leave it off? I don't know how to set the directory there to rundir.
Updated by Jim Pulokas over 13 years ago
- Status changed from Assigned to In Code Review
- Assignee changed from Jim Pulokas to Anchi Cheng
r15648: writes log file to rundir
Updated by Anchi Cheng over 13 years ago
- Status changed from In Code Review to In Test
- Assignee changed from Anchi Cheng to Scott Stagg
code reviewed and tested locally.
Scott, please see if the problem goes away for you.