Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#8955 closed defect (wontfix)

ValueError: I/O operation on closed file

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: marco.giusti@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

version: 0.11.1-2.1 from debian lenny

more info: http://bugs.python.org/issue6333#msg90328

maybe this is related to #6580 but i did not investigated.

using trac-post-commit-hook i get

Traceback (most recent call last):
  File "/usr/lib/python2.5/logging/__init__.py", line 750, in emit
    self.stream.write(fs % msg)
ValueError: I/O operation on closed file

here the relevant configuration:

...
[logging]
log_type = file
...

i think that removing handler in trac.env.Environment.shutdown could be a nice start to better understand this error.

notice that in trac.env.open_environment there is already a removeHandler but just in case when environment is cached.

Attachments (0)

Change History (3)

comment:1 by marco.giusti@…, 15 years ago

Cc: marco.giusti@… added

comment:2 by Remy Blank, 15 years ago

Resolution: wontfix
Status: newclosed

The trac-post-commit-hook has been replaced by a plugin and a call to trac-admin in the multirepos branch, which will end up on trunk shortly. As such, we won't be fixing the old script.

Please reopen if you can reproduce the issue with the current multirepos branch.

comment:3 by Christian Boos, 15 years ago

Milestone: 0.11.7

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.