Code

Opened 7 years ago

Closed 7 years ago

#4716 closed (invalid)

Devserver crashes randomly, mostly in admin

Reported by: terrasque@… Owned by: jacob
Component: Uncategorized Version: master
Severity: Keywords: admin crash
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Sometimes a page wont load, usually in admin, with a traceback. Refreshing that page (or any other admin page) will make the devserver quit with no error. I have now tried on two different computers (one a vmware machine), django svn and 0.96, and python 2.5 and 2.4 in ubuntu feisty, and python 2.4 in ubuntu edgy.

It happens randomly, and seems like it can happen with any page using the database (but in 9 of 10 cases its a page in the admin interface).

Source code can be browsed at http://terrasque.mine.nu/svn/ptttd/trunk/ptttd/

This is the usual traceback :

Traceback (most recent call last):
File "/usr/lib/python2.4/django/core/handlers/base.py" in get_response
  86. raise
File "/usr/lib/python2.4/django/core/handlers/base.py" in get_response
  77. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.4/django/contrib/admin/views/decorators.py" in _checklogin
  55. return view_func(request, *args, **kwargs)
File "/usr/lib/python2.4/django/views/decorators/cache.py" in _wrapped_view_func
  39. response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.4/django/contrib/admin/views/main.py" in change_list
  779. c.update({'has_add_permission': c['perms'][app_label][cl.opts.get_add_permission()]}),
File "/usr/lib/python2.4/django/core/context_processors.py" in __getitem__
  66. return self.user.has_perm("%s.%s" % (self.module_name, perm_name))

  AttributeError at /admin/torrent/tag/
  'RegexURLResolver' object has no attribute 'has_perm'

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Paul Bx <pb@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Sorry, this looks like a request for help with troubleshooting rather than a bug report. Try the django-users mailing list or the IRC channel for help in either solving it, or providing a reduced case that more clearly highlights a problem in the Django codebase.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.