#581192 trac-admin deploy hangs irresponsible without egg-cache

#581192#5
Date:
2010-05-11 14:08:36 UTC
From:
To:
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.

#581192#10
Date:
2020-01-09 06:08:43 UTC
From:
To:
Dear submitter,

as the package trac has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/948052

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)