[Python-apps-team] Bug#581192: trac-admin deploy hangs irresponsible without egg-cache

anatoly techtonik at php.net
Tue May 11 14:08:36 UTC 2010


Package: trac
Version: 0.11.7-3~bpo50+1
Severity: normal

It is common to run trac under non-privileged user without home directory. In this case `trac-admin . deploy 
stuff` hangs with the following error message and doesn't even respond to Ctrl-C/Ctrl-Break. So the only way is 
to send it to background with Ctrl-Z and then kill it with some other means.

$ trac-admin . deploy jtest
Copying resources from:
  trac.web.chrome.Chrome
    /usr/lib/python2.5/site-packages/trac/htdocs
    /var/www/trac/htdocs
  bitten.web_ui.BittenChrome
    /usr/lib/pymodules/python2.5/bitten/htdocs
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 8, in <module>
    load_entry_point('Trac==0.11.7', 'console_scripts', 'trac-admin')()
  File "/usr/lib/python2.5/site-packages/trac/admin/console.py", line 1321, in run
    return admin.onecmd(command)
  File "/usr/lib/python2.5/site-packages/trac/admin/console.py", line 138, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib/python2.5/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.5/site-packages/trac/admin/console.py", line 1241, in do_deploy
    paths = list(provider.get_htdocs_dirs())
  File "build/bdist.linux-i686/egg/tracdeveloper/main.py", line 42, in get_htdocs_dirs
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 863, in resource_filename
    self, resource_name
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1339, in get_resource_filename
    return self._extract_resource(manager, zip_path)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1346, in _extract_resource
    manager, os.path.join(zip_path, name)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1346, in _extract_resource
    manager, os.path.join(zip_path, name)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1364, in _extract_resource
    self.egg_name, self._parts(zip_path)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 943, in get_cache_path
    self.extraction_error()
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 909, in extraction_error
    raise err
pkg_resources.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: '/home/trac'

The Python egg cache directory is currently set to:

  /home/trac/.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.



-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages trac depends on:
ii  python                       2.5.2-3     An interactive high-level object-o
ii  python-central               0.6.14+nmu2 register and build utility for Pyt
ii  python-genshi                0.5.1-1     Python XML-based template engine
ii  python-setuptools            0.6.10-3    Python Distutils Enhancements (set

Versions of packages trac recommends:
ii  apache [httpd]          1.3.34-4.1+etch1 versatile, high-performance HTTP s
ii  apache2-mpm-prefork [ht 2.2.14-2         Apache HTTP Server - traditional n
ii  libjs-jquery            1.2.6-2          JavaScript library for dynamic web
ii  lighttpd [httpd]        1.4.19-5+lenny1  A fast webserver with minimal memo
ii  python-pygments         1.3+dfsg-1       syntax highlighting package writte
ii  python-subversion       1.6.9dfsg-1      Python bindings for Subversion
ii  python-tz               2010b-1          Python version of the Olson timezo

Versions of packages trac suggests:
ii  libapache2-mod-wsgi        2.8-2         Python WSGI adapter module for Apa
ii  python-docutils            0.5-2+lenny1  Utilities for the documentation of
ii  python-textile             2.10-3.1.2    Python parser for the Textile mark
ii  trac-accountmanager        0.2.1+r7163-1 account management plugin for Trac
pn  trac-authopenid            <none>        (no description available)
ii  trac-bitten                0.6b2.dfsg-3  continuous integration plugin for 
pn  trac-bzr                   <none>        (no description available)
pn  trac-customfieldadmin      <none>        (no description available)
pn  trac-email2trac            <none>        (no description available)
pn  trac-git                   <none>        (no description available)
pn  trac-graphviz              <none>        (no description available)
pn  trac-ja-resource           <none>        (no description available)
pn  trac-mastertickets         <none>        (no description available)
pn  trac-mercurial             <none>        (no description available)
pn  trac-spamfilter            <none>        (no description available)
pn  trac-wikiprint             <none>        (no description available)
pn  trac-wikirename            <none>        (no description available)
pn  trac-wysiwyg               <none>        (no description available)
pn  trac-xmlrpc                <none>        (no description available)

-- no debconf information





More information about the Python-apps-team mailing list