Project

General

Profile

Actions

Bug #1298

open

thread log permission denied

Added by Anchi Cheng over 13 years ago. Updated over 13 years ago.

Status:
In Test
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
05/12/2011
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.1.0
Show in known bugs:
No
Workaround:

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'

Actions #1

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?

Actions #2

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.

Actions #3

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.

Actions #4

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

Actions #5

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.

Actions

Also available in: Atom PDF