Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 12 years ago

#255 closed defect (wontfix)

IOError when no log file

Reported by: e Owned by: Jonas Borgström
Priority: normal Milestone:
Component: web frontend/tracd Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This may be due to use of new (416) code with older db/conf. Attempt to open the db leads to immediate error trying to open non-existant log file.

C:\Python23\Scripts>python tracd -a test.db,c:\Dev\TracDb\htdigest,Trac c:\Dev\TracDb\test.db
Traceback (most recent call last):
  File "tracd", line 330, in ?
    main()
  File "tracd", line 319, in main
    projects[project] = Environment(env)
  File "C:\Python23\Lib\site-packages\trac\Environment.py", line 58, in __init__
    self.setup_log()
  File "C:\Python23\Lib\site-packages\trac\Environment.py", line 163, in setup_log
    self.log = Logging.logger_factory(logtype, logfile, loglevel, logid)
  File "C:\Python23\Lib\site-packages\trac\Logging.py", line 32, in logger_factory
    hdlr = logging.FileHandler(logfile)
  File "C:\Python23\lib\logging\__init__.py", line 694, in __init__
    StreamHandler.__init__(self, open(filename, mode))
IOError: [Errno 2] No such file or directory: 'c:\\Dev\\TracDb\\test.db\\log\\trac.log'

Attachments (0)

Change History (3)

comment:1 by daniel, 20 years ago

This is because the default log directory (<myprojenv>/log) is only created when running initdb.

comment:2 by Jonas Borgström, 20 years ago

Resolution: wontfix
Status: newclosed

This is only an issue for the selected few who created their env during the limited interval in time when the directory wasn't created. This is the sort of thing users have to live with when running trac from trunk.

comment:3 by Christian Boos, 12 years ago

Milestone: 0.7

(clearing report:35)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.