Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

#6006 closed defect (worksforme)

trac.ini [inherit] doesn't seem to work properly.

Reported by: rfulcher@… Owned by: Jonas Borgström
Priority: low Milestone:
Component: general Version: 0.10.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I'm running a pair of load ballanced apache servers, both use a common file system, dozens of other sites are working fine, including svn projects… However the trac inherit directive is "quarkie"… All of the global directives for a few hundred projects will Need to be managed from a common global file. For initial testing purposes with just a few of the projects I'm using, for the moment, the default trac.ini settings except for a custom header_logo image. The projects trac.ini file looks like this:

 [inherit]
 file = /var/www/trac/site.ini
 [header_logo]
 link = http://our.site.edu/projects/project_name_here
 [project]
 name = project_name_here
 [trac]
 repository_dir = /var/www/svn/projects/project_name_here

Now I expect it to inherit the custom logo "src = common/trac_banner-dp.png" from the site.ini, set the link for that banner to the top of the current project, set the projects name, and set the projects svn path. These are the only three settings that I expect to be unique for each project, authentication is done via PAM, LDAP, and authz. Placing the custom logo url in the projects conf/trac.ini works perfectly, but once it's only in the site.ini to be inherited it only shows up randomly. As if it only occassionally inherits the site.ini settings.

So, am I in fact using the inherit directive properly for site.ini, is it safe to have only these three unique trac.ini items per project? Perhaps I'm simply experiencing some other issue with the servers, their shared filesystems, my python installation or some combination of other non-trac issues. It's odd as many other php and mysql sites appear to be working fine. Any ideas?

Attachments (0)

Change History (3)

comment:1 by Noah Kantrowitz, 17 years ago

Resolution: invalid
Status: newclosed

The [inherit] stuff is new in 0.11.

comment:2 by rudd-o@…, 16 years ago

Resolution: invalid
Status: closedreopened

Trac also inherits in /etc/trac/trac.ini and the inheritance is failing for option trac.repository_dir . Failing HORRIBLY, the option doesn't want to be overridden by the per-project trac.ini. Why?

comment:3 by osimons, 16 years ago

Resolution: worksforme
Status: reopenedclosed

As Noah said, if you use version 0.10.4 as indicated by ticket report, you won't have any [inherit] mechanism as that is a new feature of 0.11. Version 0.10.x and earlier use a single shared global trac.ini config in addition to the project configs.

See wiki:0.10/TracIni for details regarding your version.

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.