Opened 10 years ago

Closed 10 years ago

#731 closed defect (worksforme)

TRAC_ENV necessary ...

Reported by: ThurnerRupert Owned by: coderanger
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 10 years ago by coderanger

  • Resolution set to worksforme
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.