Modify

Opened 6 years ago

Closed 6 years ago

#3528 closed defect (invalid)

AccountManagerPlugin won't work when used with mod_wsgi

Reported by: anonymous Owned by: mgood
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Hi there,

I am playing with my Trac setup and thought I could enhance the spped a bit more by using mod_wsgi for serving the pages. All is working fine until I enable AccountManagerPlugin.

When accessing the page, I recieve a 500 internal server error. The apache2-logfile is attached.

in /tmp/ I find:
TracAccountManager-0.2.1dev_r3857-py2.4.egg-tmp - should this be removed? Inside this path I find several html-pages, which seem to be cached for server-delivery.

When I disable AccountManagerPlugin all is fine again. I just checked it against tracd, and there even AccountManagerPlugin is doing fine.

I'm running a debian-etch server with mod_wsgi from etch-backports.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by mgood

The reporter emailed me this info from the log

[Sun Aug 10 00:22:16 2008] [error] [client 192.168.2.101] mod_wsgi (pid=27978): Exception occurred processing WSGI script '/var/trac/myproject/apache/cgi-bin/trac.wsgi'., referer: http://myserver.mynetwork/myproject/
[Sun Aug 10 00:22:16 2008] [error] [client 192.168.2.101] Traceback (most recent call last):, referer: http://myserver.mynetwork/myproject/
[Sun Aug 10 00:22:16 2008] [error] [client 192.168.2.101]   File "/var/trac/myproject/apache/cgi-bin/trac.wsgi", line 26, in application, referer: http://myserver.mynetwork/myproject/
[Sun Aug 10 00:22:16 2008] [error] [client 192.168.2.101]     pkg_resources.set_extraction_path(tempfile.gettempdir()), referer: http://myserver.mynetwork/myproject/
[Sun Aug 10 00:22:16 2008] [error] [client 192.168.2.101]   File "/usr/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py", line 1005, in set_extraction_path, referer: http://myserver.mynetwork/myproject/
[Sun Aug 10 00:22:16 2008] [error] [client 192.168.2.101]     raise ValueError (, referer: !http://myserver.mynetwork/myproject/
[Sun Aug 10 00:22:16 2008] [error] [client 192.168.2.101] ValueError : Can't change extraction path, files already extracted, referer: http://myserver.mynetwork/myproject/

comment:2 Changed 6 years ago by mgood

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

This appears to be a general bug in the trac.wsgi file trying to set the temporary path where plugin resources are extracted. Please file a ticket against Trac about this, since it's not specific to this plugin.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.