Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Internal Server Error when access horizon kilo

After I examine the log it show "from openstack_dashboard.api import base ImportError: cannot import name base". Here is full error in /var/log/httpd/horizon_error.log

[Mon Nov 30 09:32:42.227651 2015] [:error] [pid 8042] [remote 61.90.251.187:48] Traceback (most recent call last):
[Mon Nov 30 09:32:42.227669 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__
[Mon Nov 30 09:32:42.227781 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     self.load_middleware()
[Mon Nov 30 09:32:42.227797 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 52, in load_middleware
[Mon Nov 30 09:32:42.227805 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     mw_instance = mw_class()
[Mon Nov 30 09:32:42.227809 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__
[Mon Nov 30 09:32:42.227827 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     for url_pattern in get_resolver(None).url_patterns:
[Mon Nov 30 09:32:42.227841 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 402, in url_patterns
[Mon Nov 30 09:32:42.227854 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
[Mon Nov 30 09:32:42.227861 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 396, in urlconf_module
[Mon Nov 30 09:32:42.227939 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     self._urlconf_module = import_module(self.urlconf_name)
[Mon Nov 30 09:32:42.227945 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
[Mon Nov 30 09:32:42.227952 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     __import__(name)
[Mon Nov 30 09:32:42.227956 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/urls.py", line 35, in <module>
[Mon Nov 30 09:32:42.227964 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     url(r'^api/', include('openstack_dashboard.api.rest.urls')),
[Mon Nov 30 09:32:42.227969 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 33, in include
[Mon Nov 30 09:32:42.227975 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     urlconf_module = import_module(urlconf_module)
[Mon Nov 30 09:32:42.227980 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
[Mon Nov 30 09:32:42.227998 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     __import__(name)
[Mon Nov 30 09:32:42.228003 2015] [:error] [pid 8042] [remote 61.90.251.187:48]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/__init__.py", line 34, in <module>
[Mon Nov 30 09:32:42.228010 2015] [:error] [pid 8042] [remote 61.90.251.187:48]     from openstack_dashboard.api import base
[Mon Nov 30 09:32:42.228022 2015] [:error] [pid 8042] [remote 61.90.251.187:48] ImportError: cannot import name base