Modify

Opened 18 years ago

Closed 18 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

Description

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/main.py", line 356, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 189, in dispatch
    req.authname = self.authenticate(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 145, in authenticate
    authname = authenticator.authenticate(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/auth.py", 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/auth.py", line 38, in _get_name_for_cookie
  File "build/bdist.solaris-2.8-sun4u/egg/tracforge/linker/auth.py", line 20, in <lambda>
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 57, in _open_environment
    env_cache[env_path] = open_environment(env_path)
  File "/usr/local/lib/python2.4/site-packages/trac/env.py", 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 18 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
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.