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.