Edgewall Software
Modify

Opened 16 years ago

Closed 15 years ago

Last modified 14 years ago

#7653 closed defect (worksforme)

Global trac.ini won't load on Windows Platform

Reported by: lamsoft@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The default path of python 2.5 is under c:\python25, after I installed all the components required, and try to set the global trac.ini, I have no idea where I should put this file under which directory, after I google somewhere and some said should be under c:\python25\share\trac\trac.ini, then I create a "share" folder first, and "trac" folder under "share" folder, and create the trac.ini.

After I restarted the apache server, and try to create a new project using trac-admin my-directory initenv, answer several questions and another trac.ini was created under the "conf" directory in the project directory, but when I add some tickets to the project, no notification sent out, and it seems it didn't load the global settings.

Is it global trac.ini is not working on windows platform?

Python Ver: 2.5 Trac Ver : 0.11.1 Apache Ver: 2.2.9 mod_python Ver: 3.3.1 svn-python Ver: 1.5.2 Genshi Ver: 0.5.1

Thanks

Attachments (0)

Change History (7)

comment:1 by osimons, 16 years ago

Resolution: invalid
Status: newclosed

Please read the documentation: wiki:TracIni#GlobalConfiguration

comment:2 by lamsoft@…, 16 years ago

Resolution: invalid
Severity: normalmajor
Status: closedreopened
Version: 0.11.1

Sorry, the documentation is only showing the LINUX platform. After the installation of TRAC on Windows platform, there is not new generated trac.ini found on the drive other than in the project folder, where is it located?

Thanks

comment:3 by Noah Kantrowitz, 16 years ago

Resolution: worksforme
Status: reopenedclosed

Nothing is ever generated or put anywhere. *You* need to make it and put it somewhere.

comment:4 by anonymous, 15 years ago

Resolution: worksforme
Status: closedreopened

I have the same or at least a very similar problem. An installation of 0.11.1 on Windows with the above installation. A few days ago we created multiple environments and tried to configure the global trac.ini.

Inserting the appropriate section into the trac.ini files:

[inherit] file = common/trac.ini

and then trying to place a trac.ini somewhere else did not work. In the end we tried everything we could think of to put the global trac.ini at many places, in

  • …\python\share\trac
  • …\python\share\trac\common
  • …\python\lib\site-packages\trac
  • …\python\lib\site-packages\trac\htdocs
  • …\python\lib\site-packages\trac\htdocs\common

Then we tried to inherit not by using a relative path, but instead using an absolute one. Wow, then it worked.

What I'm wondering about is, that using the relative path common/banner-graphic-name.png for interchanging the graphic in the banner works fine. The different banner for all our environments are located in one single folder. But placing the trac.ini into this folder does not work.

I would appreciate if anyone knows where to place the global.ini file under windows while using a relative path. I don't like absolute paths.

As I'm not quite sure, if I missed something or if it's an error, I leave the milestone unchanged.

comment:5 by ebray, 15 years ago

Resolution: worksforme
Status: reopenedclosed

It has to be an absolute path. Given that this is a globally used file that shouldn't be moving anyways I don't see why it's a problem to make an absolute path.

in reply to:  3 comment:6 by anonymous, 14 years ago

Severity: majornormal

Replying to nkantrowitz:

Nothing is ever generated or put anywhere. *You* need to make it and put it somewhere.

With respect, I am still none the wiser:

"In versions prior to 0.11, the global configuration was by default located in $prefix/share/trac/conf/trac.ini or /etc/trac/trac.ini, depending on the distribution. If you're upgrading, you may want to specify that file to inherit from. Literally, when you're upgrading to 0.11, you have to add an [inherit] section to your project's trac.ini file. Additionally, you have to move your customized templates and common images from $prefix/share/trac/… to the new location."

So where exactly do you create the global trac.ini on a Windows installation? If someone knows, could they please update the Trac Wiki page to reflect this. I'm clearly not the only one lost on this one. Thanks.

comment:7 by Cain, 14 years ago

Yes if anyone can figure this out it would be quite useful, doesn't appear to be there can't find the siteconfig.py file either…

If someone knows could they email me at puckoff7337 at G mail?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.