Ticket #2593 (closed defect: worksforme)
Opened 6 years ago
Last modified 6 years ago
need help w/webadmin plugin for freeBSD (0.9.2, python 2.3)
| Reported by: | llynch@… | Owned by: | daniel |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | admin/console | Version: | 0.9.2 |
| Severity: | normal | Keywords: | webadmin freebsd |
| Cc: | llynch@… | ||
| Release Notes: | |||
| API Changes: | |||
Description
I'm trying to install the pre-built plugin:
TracWebAdmin-0.1dev_r2440-py2.3.egg
and I get:
Oops...
Trac detected an internal error:
[Errno 13] Permission denied: '/nonexistent'
Traceback (most recent call last):
File "/usr/local/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 131, in run
dispatch_request(req.path_info, req, env)
File "/usr/local/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.3/site-packages/trac/web/main.py", line 83, in dispatch
req.hdf = HDFWrapper(loadpaths=chrome.get_all_templates_dirs())
File "/usr/local/lib/python2.3/site-packages/trac/web/chrome.py", line 195, in get_all_templates_dirs
dirs += provider.get_templates_dirs()
File "/usr/local/www/trac-noc/plugins/TracWebAdmin-0.1dev_r2440-py2.3.egg/webadmin/web_ui.py", line 132, in get_templates_dirs
File "/usr/local/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 676, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
File "/usr/local/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 1065, in get_resource_filename
return self._extract_resource(manager, zip_path)
File "/usr/local/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 1070, in _extract_resource
last = self._extract_resource(
File "/usr/local/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 1081, in _extract_resource
real_path = manager.get_cache_path(self.egg_name, self._parts(zip_path))
File "/usr/local/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 713, in get_cache_path
ensure_directory(target_path)
File "/usr/local/lib/python2.3/site-packages/setuptools-0.6a9-py2.3.egg/pkg_resources.py", line 2137, in ensure_directory
os.makedirs(dirname)
File "/usr/local/lib/python2.3/os.py", line 153, in makedirs
makedirs(head, mode)
File "/usr/local/lib/python2.3/os.py", line 153, in makedirs
makedirs(head, mode)
File "/usr/local/lib/python2.3/os.py", line 153, in makedirs
makedirs(head, mode)
File "/usr/local/lib/python2.3/os.py", line 153, in makedirs
makedirs(head, mode)
File "/usr/local/lib/python2.3/os.py", line 154, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/nonexistent'
Building from http://svn.edgewall.com/repos/trac/sandbox/webadmin/ appears to work, but the admin tab never appears my TRAC_ADMIN enabled users.
I built 0.9.3 on a fedora core 4 box (python 2.4) with no problems, but the BSD box will be my production ENV - any clues greatly appreciated.
Using trac.cgi - apache conf reads:
#
Alias /trac/chrome/common /usr/local/share/trac/htdocs
<Directory "/usr/local/share/trac/htdocs">
Order allow,deny
Allow from all
</Directory>
#
ScriptAlias? /trac /usr/local/share/trac/cgi-bin/trac.cgi
<Directory "/usr/local/share/trac/cgi-bin">
Order allow,deny
Allow from all
</Directory>
#If you're using Trac with a single project set its location:
#
<Location "/trac">
SetEnv TRAC_ENV "/usr/local/www/trac-noc"
SetEnv PYTHON_EGG_CACHE "/usr/local/www/trac-noc/plugins"
</Location>
<Location "/trac/login">
AuthType? Basic
AuthName? "Trac"
AuthUserFile? /usr/local/www/trac-noc/noc65.htpasswd
Require valid-user
</Location>
and trac.ini includes:
[account-manager]
password_format = htpasswd
password_file = /usr/local/www/trac-noc/noc65.htpasswd
[components]
webadmin.* = enabled
path to site-packages is:
/usr/local/lib/python2.3/site-packages/trac/
Thanks!
- lel
Attachments
Change History
comment:1 Changed 6 years ago by mgood
- Resolution set to worksforme
- Status changed from new to closed
comment:2 Changed 6 years ago by llynch@…
- Resolution worksforme deleted
- Status changed from closed to reopened
plugin cache already set as noted above
comment:3 Changed 6 years ago by anonymous
- Resolution set to worksforme
- Status changed from reopened to closed
As mentioned above, please move this question to the mailing list. You will most likely can help faster since this is probably a configuration problem.



You need to configure the plugin cache. Also, as mentioned on the ticket creation screen please use the MailingList or IrcChannel for support requests.