Opened 12 years ago

Closed 12 years ago

#731 closed defect (worksforme)

TRAC_ENV necessary ...

Reported by: rupert thurner Owned by: Noah Kantrowitz
Priority: high Component: TracForgePlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.10


we have multiple trac instances and set the environment with mod python in apache like:

PythonOption TracEnvParentDir /var/trac-parentdir

this leads to the error:

Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/trac/web/", line 356, in dispatch_request
  File "/usr/local/lib/python2.4/site-packages/trac/web/", line 189, in dispatch
    req.authname = self.authenticate(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/", line 145, in authenticate
    authname = authenticator.authenticate(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/", line 64, in authenticate
    authname = self._get_name_for_cookie(req, req.incookie['trac_auth'])
  File "build/bdist.solaris-2.8-sun4u/egg/tracforge/linker/", line 38, in _get_name_for_cookie
  File "build/bdist.solaris-2.8-sun4u/egg/tracforge/linker/", line 20, in <lambda>
  File "/usr/local/lib/python2.4/site-packages/trac/web/", line 57, in _open_environment
    env_cache[env_path] = open_environment(env_path)
  File "/usr/local/lib/python2.4/site-packages/trac/", line 429, in open_environment
    raise TracError, 'Missing environment variable "TRAC_ENV". Trac ' \
TracError: Missing environment variable "TRAC_ENV". Trac requires this variable to point to a valid Trac environment.

Attachments (0)

Change History (1)

comment:1 Changed 12 years ago by Noah Kantrowitz

Resolution: worksforme
Status: newclosed

This error is caused by not setting your master_path. It should give a better error since the last changeset.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.