Modify ↓
#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 , 22 years ago
comment:2 by , 22 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
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.
Note:
See TracTickets
for help on using tickets.



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