Logging exception in LockFile handling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ZODB |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
We encountered the following traceback (ZODB 3.8) while re(starting) a ZEO Server in foreground:
hrs2test@
/local/
Traceback (most recent call last):
File "/HRS2/
msg = self.format(record)
File "/HRS2/
return fmt.format(record)
File "/HRS2/
record.message = record.getMessage()
File "/HRS2/
msg = msg % self.args
TypeError: not all arguments converted during string formatting
With the debugger:
Error locking file ('/HRS2/
> /HRS2/local/
-> return msg
(Pdb) msg
'Error locking file'
(Pdb) print self.args
('/HRS2/
(Pdb)
('/HRS2/
This is related to the call:
ZODB/lock_file.py: logger.
On Fri, Oct 2, 2009 at 2:04 AM, Andreas Jung <email address hidden> wrote: hdevzeo: /HRS2/ZEOServer -Zope-2. 11$ bin/zeo fg HRS2/ZEOServer- Zope-2. 11/parts/ zeo/bin/ runzeo local/lib/ python2. 4/logging/ __init_ _.py", line 731, in emit local/lib/ python2. 4/logging/ __init_ _.py", line 617, in format local/lib/ python2. 4/logging/ __init_ _.py", line 405, in format local/lib/ python2. 4/logging/ __init_ _.py", line 276, in getMessage ZEOServer- Zope-2. 11/var/ main/main. fs.lock' , '') lib/python2. 4/logging/ __init_ _.py(281) getMessage( ) ZEOServer- Zope-2. 11/var/ main/main. fs.lock' , '') ZEOServer- Zope-2. 11/var/ main/main. fs.lock' , '') exception( "Error locking file",
> Public bug reported:
>
> We encountered the following traceback (ZODB 3.8) while re(starting) a
> ZEO Server in foreground:
>
> hrs2test@
> /local/
> Traceback (most recent call last):
> File "/HRS2/
> msg = self.format(record)
> File "/HRS2/
> return fmt.format(record)
> File "/HRS2/
> record.message = record.getMessage()
> File "/HRS2/
> msg = msg % self.args
> TypeError: not all arguments converted during string formatting
>
> With the debugger:
> Error locking file ('/HRS2/
>> /HRS2/local/
> -> return msg
> (Pdb) msg
> 'Error locking file'
> (Pdb) print self.args
> ('/HRS2/
> (Pdb)
> ('/HRS2/
>
> This is related to the call:
>
> ZODB/lock_file.py: logger.
> path, pid)
This is fixed on the head of the 3.8 branch. I expect it was fixed in
3.8.1 or 3.8.2.
Jim
--
Jim Fulton