The Joyent Community

A place where the Joyent community can gather, help each other out, and stay informed.

You are not logged in.

#1 2006-07-20 06:48:17

ch3nyong
New member
Registered: 2006-07-20
Posts: 1
Expertise

[Errno 13] Permission denied: '/root/.python-eggs'

I was dealing with "trac" and I received the following error.. could anyone tell me what's actually going wrong? Thanks!

Code:

Oops...

Trac detected an internal error:

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: '/root/.python-eggs'

The Python egg cache directory is currently set to:

/root/.python-eggs

Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.

Traceback (most recent call last):

File "/usr/local/lib/python2.4/site-packages/trac/web/standalone.py", line 303, in _do_trac_req dispatch_request(path_info, req, env) File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 83, in dispatch req.hdf = HDFWrapper(loadpaths=chrome.get_all_templates_dirs()) File "/usr/local/lib/python2.4/site-packages/trac/web/chrome.py", line 195, in get_all_templates_dirs dirs += provider.get_templates_dirs() File "/users/home/acmeadmin/trac/ace/plugins/TracAccountManager-0.1.2.egg/acct_mgr/web_ui.py", line 88, in get_templates_dirs File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py", line 799, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py", line 1229, in get_resource_filename return self._extract_resource(manager, zip_path) File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py", line 1235, in _extract_resource last = self._extract_resource( File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py", line 1249, in _extract_resource real_path = manager.get_cache_path( File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py", line 880, in get_cache_path self.extraction_error() File "/usr/local/lib/python2.4/site-packages/setuptools-0.6a11-py2.4.egg/pkg_resources.py", line 846, in extraction_error raise err
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: '/root/.python-eggs'

The Python egg cache directory is currently set to:

/root/.python-eggs

Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.

Last edited by ch3nyong (2006-07-20 07:06:16)

Offline

 

#2 2006-08-22 00:17:38

bmcquay
New member
Registered: 2006-06-30
Posts: 2
Expertise

Re: [Errno 13] Permission denied: '/root/.python-eggs'

I got the same error today after I rebooted tracd. Anyone have an answer yet?

Offline

 

#3 2006-11-17 07:26:36

coreyti
New member
Registered: 2006-11-17
Posts: 1
Expertise

Re: [Errno 13] Permission denied: '/root/.python-eggs'

If you have super user permissions, you could create that directory and attribute ownership of it to the user that is running your trac process (e.g., apache or your user name).

A (much) better solution is to configure things such that eggs will be cached to a safe, non-root, location. You can accomplish this a few ways, depending on your setup. See http://trac.edgewall.org/wiki/TracPlugi … luginCache for more info.

Cheers,
Corey

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson