This is looking suspiciously like either a broken Django setup, or possibly
more likely, a mix of Python modules loaded in memory. Did you restart your
web server after the upgrade?

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Wed, May 25, 2011 at 12:38 AM, andykur <andrey.kuroch...@mind.com> wrote:

> I updated to version 1.6 RB beta 2 for instructions
>
> http://www.reviewboard.org/docs/manual/dev/admin/installation/development-releases/
> Then updated the website
> After the launch of the site an error in the logs Apache2
> Help!
> [Wed May 25 10:23:11 2011] [notice] caught SIGTERM, shutting down
> [Wed May 25 10:23:11 2011] [error] python_init: Python version
> mismatch, expected '2.6.5+', found '2.6.6'.
> [Wed May 25 10:23:11 2011] [error] python_init: Python executable
> found '/usr/bin/python'.
> [Wed May 25 10:23:11 2011] [error] python_init: Python path being used
> '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/
> lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
> [Wed May 25 10:23:11 2011] [notice] mod_python: Creating 8 session
> mutexes based on 6 max processes and 25 max threads.
> [Wed May 25 10:23:11 2011] [notice] mod_python: using mutex_directory /
> tmp
> [Wed May 25 10:23:11 2011] [notice] Apache/2.2.16 (Debian) mod_python/
> 3.3.1 Python/2.6.6 configured -- resuming normal operations
> /usr/lib/python2.6/dist-packages/mod_python/importer.py:32:
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>  import md5
> /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/db/
> __init__.py:60: DeprecationWarning: Short names for ENGINE in database
> configurations are deprecated. Prepend default.ENGINE with
> 'django.db.backends.'
>  DeprecationWarning
> /opt/reviewboard/lib/python2.6/site-packages/Djblets-0.6.4-py2.6.egg/
> djblets/util/fields.py:72: DeprecationWarning: A Field class whose
> get_db_prep_value method hasn't been updated to take `connection` and
> `prepared` arguments.
>  class Base64Field(models.TextField):
> /opt/reviewboard/lib/python2.6/site-packages/Djblets-0.6.4-py2.6.egg/
> djblets/util/fields.py:136: DeprecationWarning: A Field class whose
> db_type method hasn't been updated to take a `connection` argument.
>  class JSONField(models.TextField):
> /opt/reviewboard/lib/python2.6/site-packages/Djblets-0.6.4-py2.6.egg/
> djblets/util/fields.py:136: DeprecationWarning: A Field class whose
> get_db_prep_save method hasn't been updated to take a `connection`
> argument.
>  class JSONField(models.TextField):
> /opt/reviewboard/lib/python2.6/site-packages/pycrypto-2.3-py2.6-linux-
> x86_64.egg/Crypto/Util/randpool.py:40: RandomPool_DeprecationWarning:
> This application uses RandomPool, which is BROKEN in older releases.
> See http://www.pycrypto.org/randpool-broken
>  RandomPool_DeprecationWarning)
> /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/
> template/loaders/filesystem.py:58: DeprecationWarning:
> 'django.template.loaders.filesystem.load_template_source' is
> deprecated; use 'django.template.loaders.filesystem.Loader' instead.
>  DeprecationWarning
> /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/
> template/loaders/app_directories.py:71: DeprecationWarning:
> 'django.template.loaders.app_directories.load_template_source' is
> deprecated; use 'django.template.loaders.app_directories.Loader'
> instead.
>  DeprecationWarning
> /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/
> core/context_processors.py:27: DeprecationWarning: The context
> processor at `django.core.context_processors.auth` is deprecated; use
> the path `django.contrib.auth.context_processors.auth` instead.
>  DeprecationWarning
> ERROR:root:Exception thrown for user admin at
> http://reviewboard.mcdlabs.ru/dashboard/
>
> 'AdminSite' object has no attribute 'root'
> Traceback (most recent call last):
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/handlers/base.py", line 111, in get_response
>    response = callback(request, *callback_args, **callback_kwargs)
>  File "/opt/reviewboard/lib/python2.6/site-packages/Djblets-0.6.4-
> py2.6.egg/djblets/auth/util.py", line 46, in _checklogin
>    return view_func(request, *args, **kwargs)
>  File "/opt/reviewboard/lib/python2.6/site-packages/ReviewBoard-1.5-
> py2.6.egg/reviewboard/accounts/decorators.py", line 46, in
> _check_valid_prefs
>    return view_func(request, *args, **kwargs)
>  File "/opt/reviewboard/lib/python2.6/site-packages/ReviewBoard-1.5-
> py2.6.egg/reviewboard/reviews/views.py", line 330, in dashboard
>    return grid.render_to_response(template_name)
>  File "/opt/reviewboard/lib/python2.6/site-packages/Djblets-0.6.4-
> py2.6.egg/djblets/datagrid/grids.py", line 714, in render_to_response
>    context))
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/shortcuts/__init__.py", line 20, in render_to_response
>    return HttpResponse(loader.render_to_string(*args, **kwargs),
> **httpresponse_kwargs)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/loader.py", line 183, in render_to_string
>    return t.render(Context(dictionary))
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 123, in render
>    return self._render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 117, in _render
>    return self.nodelist.render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 744, in render
>    bits.append(self.render_node(node, context))
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 757, in render_node
>    return node.render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/loader_tags.py", line 127, in render
>    return compiled_parent._render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 117, in _render
>    return self.nodelist.render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 744, in render
>    bits.append(self.render_node(node, context))
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 757, in render_node
>    return node.render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/loader_tags.py", line 64, in render
>    result = block.nodelist.render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 744, in render
>    bits.append(self.render_node(node, context))
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 757, in render_node
>    return node.render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/defaulttags.py", line 311, in render
>    return self.nodelist_true.render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 744, in render
>    bits.append(self.render_node(node, context))
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/base.py", line 757, in render_node
>    return node.render(context)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/template/defaulttags.py", line 437, in render
>    url = reverse(view_name, args=args, kwargs=kwargs,
> current_app=context.current_app)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 391, in reverse
>    *args, **kwargs)))
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 312, in reverse
>    possibilities = self.reverse_dict.getlist(lookup_view)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 229, in _get_reverse_dict
>    self._populate()
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 208, in _populate
>    for name in pattern.reverse_dict:
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 229, in _get_reverse_dict
>    self._populate()
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 208, in _populate
>    for name in pattern.reverse_dict:
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 229, in _get_reverse_dict
>    self._populate()
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 197, in _populate
>    for pattern in reversed(self.url_patterns):
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 279, in _get_url_patterns
>    patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/core/urlresolvers.py", line 274, in _get_urlconf_module
>    self._urlconf_module = import_module(self.urlconf_name)
>  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/
> django/utils/importlib.py", line 35, in import_module
>    __import__(name)
>  File "/opt/reviewboard/lib/python2.6/site-packages/ReviewBoard-1.5-
> py2.6.egg/reviewboard/admin/urls.py", line 70, in <module>
>    ('^db/(.*)', admin.site.root),
> AttributeError: 'AdminSite' object has no attribute 'root'
> ERROR:django.request:Internal Server Error: /dashboard/
> .....
>
> --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to