Edgewall Software

Ticket #414 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

TRAC_ENV

Reported by: daragh@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.7
Severity: blocker Keywords: windows
Cc:

Description

trac.cgi responds with:

Missing environment variable "TRAC_ENV". Trac requires this variable to point to a valid Trac Environment. Traceback (most recent call last):

File "D:\Python23\Lib\site-packages\trac\core.py", line 445, in cgi_start

real_cgi_start()

File "D:\Python23\Lib\site-packages\trac\core.py", line 396, in real_cgi_start

env = open_environment()

File "D:\Python23\Lib\site-packages\trac\core.py", line 164, in open_environment

raise EnvironmentError?, \

EnvironmentError?: Missing environment variable "TRAC_ENV". Trac requires this variable to point to a valid Trac Environment.

Attachments

Change History

Changed 4 years ago by daragh@…

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

Simply change (if upgrading from 0.61 to 0.7) the httpd.conf file to read:

<Location "/cgi-bin/trac.cgi"> # TRAC v0.61 # SetEnv TRAC_DB "d:/svn/trac.db" # TRAC v0.7

SetEnv TRAC_ENV "d:/svn/trac"

</Location>

Add/Change #414 (TRAC_ENV)

Author



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