Edgewall Software
Modify

Opened 16 years ago

Closed 9 years ago

#7495 closed defect (worksforme)

PYTHON_EGG_CACHE still buggy

Reported by: bruce.dubbs@… Owned by:
Priority: normal Milestone:
Component: web frontend Version:
Severity: normal Keywords: egg
Cc: jens.rantil@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

I just installed Trac 0.11 and ran into the Python egg cache problem again.

PythonHandler trac.web.modpython_frontend:
ExtractionError: Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s) to the Python egg cache:
[Errno 13] Permission denied:

I did put

PythonOption PYTHON_EGG_CACHE /srv/trac/egg-cache

outside of any virtual host.

After creating the default cache location with the proper permissions, Trac works, and the only thing in the cache is:

ls -R .python-eggs/
.python-eggs/:
Genshi-0.5.1-py2.4-linux-x86_64.egg-tmp

.python-eggs/Genshi-0.5.1-py2.4-linux-x86_64.egg-tmp:
genshi

.python-eggs/Genshi-0.5.1-py2.4-linux-x86_64.egg-tmp/genshi:
_speedups.so

Attachments (0)

Change History (14)

comment:1 by Remy Blank, 16 years ago

Keywords: needinfo added

Could you please provide some more information about your setup: Apache & mod_python versions, Trac version, Apache config.

You mention Trac 0.11. I believe the final fix for thi PYTHON_EGG_CACHE issue has not been released yet, so you might have to try the 0.11-stable branch, or wait for 0.11.2.

comment:2 by bruce.dubbs@…, 16 years ago

Server version: Apache/2.2.3
Server built:   Jan 15 2008 20:33:41
mod_python-3.2.8-3.1
Trac 0.11

I've worked around the problem by expanding all eggs so a cache is not needed.

comment:3 by Remy Blank, 16 years ago

Keywords: needinfo removed
Resolution: worksforme
Status: newclosed

The last changeset related to PYTHON_EGG_CACHE was [7420], and as described in the message, the setting requires mod_python-3.3.

So updating to Trac 0.11.1 and mod_python-3.3 should fix the issue.

comment:4 by Jens Rantil <jens.rantil@…>, 16 years ago

Resolution: worksforme
Status: closedreopened

I am also experiencing this problem. My system is:

Debian
Trac 0.11.2
Apache 2.2.9
mod_python 3.3.1

which means that rblank's suggestions does not work as intended. Any hint?

comment:5 by Jens Rantil <jens.rantil@…>, 16 years ago

Cc: jens.rantil@… added

comment:6 by Jens Rantil <jens.rantil@…>, 16 years ago

Sorry, running Ubuntu Intrepid and not Debian.

comment:7 by Christian Boos, 16 years ago

Keywords: needinfo added

Jens, can you be a bit more specific about your setup: what did you configure, what didn't work, etc.

comment:8 by jens.rantil@…, 16 years ago

Unfortunately not. I switched to mod_wsgi and that solved my problem.

comment:9 by jens.rantil@…, 16 years ago

Actually, I can; I wanted to specify a different location of my python egg cache. However the PythonOption did not change any behaviour at all and the egg cache was always set to DOCUMENT_ROOT whether I had that option set or not.

Last edited 9 years ago by Ryan J Ollos (previous) (diff)

comment:10 by Christian Boos, 15 years ago

Component: generalweb frontend
Keywords: egg added; needinfo removed
Milestone: 0.12.1

comment:11 by Ryan J Ollos, 10 years ago

Milestone: next-minor-0.12.xnext-stable-1.0.x

comment:12 by Ryan J Ollos, 9 years ago

Status: reopenednew

comment:13 by Ryan J Ollos, 9 years ago

Description: modified (diff)

comment:14 by Ryan J Ollos, 9 years ago

Milestone: next-stable-1.0.x
Resolution: worksforme
Status: newclosed

Closing as worksforme since last update was 6 years ago and there's nothing concrete to suggest this wasn't just an InstallationIssue. Feel free to reopen if the issue can be reproduced and TracModPython#SettingthePythonEggCache isn't effective.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.