Modify ↓
#7204 closed defect (duplicate)
Config loader should die on error
Reported by: | Noah Kantrowitz | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.12dev |
Severity: | normal | Keywords: | |
Cc: | Noah Kantrowitz | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Configuration.parse_if_needed should die if self.parser.read(self.filename)
returns []
as this indicates it wasn't able to read the file. This generally happens either if a permission error prevents trac.ini from being read, or if the path to a parent config is invalid. A more helpful error message is desirable in either case.
Attachments (0)
Change History (2)
comment:2 by , 16 years ago
Milestone: | 0.13 |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Closing this as a duplicate of the issue (and discussion) in #5535.
Note:
See TracTickets
for help on using tickets.
We discovered this as a result of me attempting to configure Trac under FastCGI. Instead of an error related to being unable to read the
trac.ini
I got this:The confusing part about it was that it was attempting to use an sqlite database, whereas my DB is PostgreSQL. Trac should have died earlier in the process when it could not read the config file, instead of continuing and attempting to load the defaults.