Edgewall Software

Ticket #6006 (closed defect: worksforme)

Opened 13 months ago

Last modified 2 months ago

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

Reported by: rfulcher@… Owned by: jonas
Priority: low Milestone:
Component: general Version: 0.10.4
Severity: normal Keywords:
Cc:

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

Change History

Changed 13 months ago by nkantrowitz

  • status changed from new to closed
  • resolution set to invalid

The [inherit] stuff is new in 0.11.

Changed 2 months ago by rudd-o@…

  • status changed from closed to reopened
  • resolution invalid deleted

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?

Changed 2 months ago by osimons

  • status changed from reopened to closed
  • resolution set to worksforme

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.

Add/Change #6006 (trac.ini [inherit] doesn't seem to work properly.)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.