I was able to "delete from permission;"

This is what was in the table before I deleted -->

+---------------+-----------------+
| username      | action          |
+---------------+-----------------+
| anonymous     | LOG_VIEW        |
| anonymous     | FILE_VIEW       |
| anonymous     | WIKI_VIEW       |
| authenticated | WIKI_CREATE     |
| authenticated | WIKI_MODIFY     |
| anonymous     | SEARCH_VIEW     |
| anonymous     | REPORT_VIEW     |
| anonymous     | REPORT_SQL_VIEW |
| anonymous     | TICKET_VIEW     |
| authenticated | TICKET_CREATE   |
| authenticated | TICKET_MODIFY   |
| anonymous     | BROWSER_VIEW    |
| anonymous     | TIMELINE_VIEW   |
| anonymous     | CHANGESET_VIEW  |
| anonymous     | ROADMAP_VIEW    |
| anonymous     | MILESTONE_VIEW  |
+---------------+-----------------+


After deletion,

I got this error:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/api.py", line 376, in send_error
    'text/html')
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/chrome.py", line 739, in render_template
    data = self.populate_data(req, data)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/chrome.py", line 639, in populate_data
    d['chrome'].update(req.chrome)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/api.py", line 195, in __getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
util/compat.py", line 135, in newfunc
    return func_(*(args + fargs), **dict(kwargs, **fkwargs))
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
web/chrome.py", line 494, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
ticket/web_ui.py", line 163, in get_navigation_items
    if 'TICKET_CREATE' in req.perm:
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
perm.py", line 549, in has_permission
    return self._has_permission(action, resource)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
perm.py", line 553, in _has_permission
    cached = self._cache.get(key)
TypeError: unhashable type


Thanks again.


On May 7, 3:23 am, Noah Kantrowitz <[email protected]> wrote:
> Sounds like you got some bad data in your permissions table. Can you do a 
> "DELETE FROM permission"?
>
> --Noah
>
> On May 6, 2010, at 5:33 PM, ScottGutman wrote:
>
>
>
>
>
> > Hello all and thanks for your help in advance,
>
> > I am trying to setup Trac on our inhouse server.  I started the server
> > with the line below:
> > tracd -s --port 8000 /usr/share/trac/projects/core
>
> > Then I used another computer to load -->  http://192.168.12.3:8000/
>
> > The result is listed below. I did a chmod 777 on the entire /usr/share/
> > trac directory, but that did not fix it.
>
> > Can you direct me to some logging or debugging so I find out what is
> > happening?  Thanks
>
> > ---result---
> > Traceback (most recent call last):
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > web/api.py", line 376, in send_error
> >    'text/html')
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > web/chrome.py", line 739, in render_template
> >    data = self.populate_data(req, data)
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > web/chrome.py", line 639, in populate_data
> >    d['chrome'].update(req.chrome)
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > web/api.py", line 195, in __getattr__
> >    value = self.callbacks[name](self)
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > util/compat.py", line 135, in newfunc
> >    return func_(*(args + fargs), **dict(kwargs, **fkwargs))
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > web/chrome.py", line 494, in prepare_request
> >    for category, name, text in contributor.get_navigation_items(req):
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > ticket/web_ui.py", line 163, in get_navigation_items
> >    if 'TICKET_CREATE' in req.perm:
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > perm.py", line 549, in has_permission
> >    return self._has_permission(action, resource)
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > perm.py", line 562, in _has_permission
> >    decision = PermissionSystem(self.env). \
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > perm.py", line 450, in check_permission
> >    perm)
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > perm.py", line 284, in check_permission
> >    permissions = PermissionSystem(self.env). \
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > perm.py", line 369, in get_user_permissions
> >    for perm in self.store.get_user_permissions(username):
> >  File "/usr/lib/python2.4/site-packages/Trac-0.11.7-py2.4.egg/trac/
> > perm.py", line 184, in get_user_permissions
> >    if user in subjects:
> > TypeError: unhashable type
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Trac Users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/trac-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Trac Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/trac-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to