[Openstack] The Dashboard not accessible
Mandar Khanolkar
mandarkhanolkar at gmail.com
Wed Mar 12 05:57:12 UTC 2014
Hi Yuanle,
I am using Fedora 19 OS.
I installed dashboard using below:
yum install memcached python-memcached mod_wsgi openstack-dashboard
I believe /etc/openstack-dashboard/local_settings is dashboard config file
which you are asking. Plz confirm.
Please find this file attached herewith.
wsgi file at
/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
=======================
import logging
import os
import sys
import django.core.handlers.wsgi
from django.conf import settings
# Add this file path to sys.path in order to import settings
sys.path.insert(0,
os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
sys.stdout = sys.stderr
DEBUG = False
application = django.core.handlers.wsgi.WSGIHandler()
=======================
Thanks.
Mandar
On Wed, Mar 12, 2014 at 10:59 AM, sylecn <sylecn at gmail.com> wrote:
> Hi Mandar,
>
> The import error means /usr/share/openstack-dashboard/ is not in python's
> sys.path.
> Did you install horizon from system package? Which distro and horizon
> version did you run?
>
> Paste the apache site file and horizon's wsgi file would be helpful to
> debug this problem.
>
> On ubuntu, apache site file is at
> /etc/apache2/conf.d/openstack-dashboard.conf, wsgi file is at
> /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
>
>
>
>
> *YY Inc. is hiring openstack and python developers. Interested? Check
> http://www.nsbeta.info/jobs <http://www.nsbeta.info/jobs>*
>
> --
> Thanks,
> Yuanle
>
>
> On Wed, Mar 12, 2014 at 1:00 PM, Mandar Khanolkar <
> mandarkhanolkar at gmail.com> wrote:
>
>> Hello folks,
>>
>> I have configured controller, compute, network services on single host.
>> I can start a VM and see it ACTIVE using nova list cmd.
>> Next I installed dashboard and trying to access it where I am getting
>> below error.
>> Apache home page is accessible. But when i accesss
>> http://myhost/dashboard , browser displays Internal Server Error and
>> httpd log gives below errors.
>> Any clue?
>>
>> [Tue Mar 11 14:36:19.858901 2014] [:error] [pid 5022] Internal Server
>> Error: /dashboard/
>>
>> [Tue Mar 11 14:36:19.858998 2014] [:error] [pid 5022] Traceback (most
>> recent call last):
>>
>> [Tue Mar 11 14:36:19.859014 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 92,
>> in get_response
>>
>> [Tue Mar 11 14:36:19.859027 2014] [:error] [pid 5022] response =
>> middleware_method(request)
>>
>> [Tue Mar 11 14:36:19.859044 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/middleware/locale.py", line 21, in
>> process_request
>>
>> [Tue Mar 11 14:36:19.859057 2014] [:error] [pid 5022] check_path =
>> self.is_language_prefix_patterns_used()
>>
>> [Tue Mar 11 14:36:19.859067 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/middleware/locale.py", line 56, in
>> is_language_prefix_patterns_used
>>
>> [Tue Mar 11 14:36:19.859079 2014] [:error] [pid 5022] for url_pattern
>> in get_resolver(None).url_patterns:
>>
>> [Tue Mar 11 14:36:19.859089 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 347,
>> in url_patterns
>>
>> [Tue Mar 11 14:36:19.859101 2014] [:error] [pid 5022] patterns =
>> getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
>>
>> [Tue Mar 11 14:36:19.859116 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342,
>> in urlconf_module
>>
>> [Tue Mar 11 14:36:19.859128 2014] [:error] [pid 5022]
>> self._urlconf_module = import_module(self.urlconf_name)
>>
>> [Tue Mar 11 14:36:19.859140 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in
>> import_module
>>
>> [Tue Mar 11 14:36:19.859160 2014] [:error] [pid 5022] __import__(name)
>>
>> [Tue Mar 11 14:36:19.859174 2014] [:error] [pid 5022] File
>> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/urls.py",
>> line 38, in <module>
>>
>> [Tue Mar 11 14:36:19.859186 2014] [:error] [pid 5022] url(r'',
>> include(horizon.urls))
>>
>> [Tue Mar 11 14:36:19.859197 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 26,
>> in include
>>
>> [Tue Mar 11 14:36:19.859208 2014] [:error] [pid 5022] patterns =
>> getattr(urlconf_module, 'urlpatterns', urlconf_module)
>>
>> [Tue Mar 11 14:36:19.859219 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 204, in
>> inner
>>
>> [Tue Mar 11 14:36:19.859229 2014] [:error] [pid 5022] self._setup()
>>
>> [Tue Mar 11 14:36:19.859239 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 270, in
>> _setup
>>
>> [Tue Mar 11 14:36:19.859250 2014] [:error] [pid 5022] self._wrapped
>> = self._setupfunc()
>>
>> [Tue Mar 11 14:36:19.859261 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/horizon/base.py", line 730, in
>> url_patterns
>>
>> [Tue Mar 11 14:36:19.859275 2014] [:error] [pid 5022] return
>> self._urls()[0]
>>
>> [Tue Mar 11 14:36:19.859287 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/horizon/base.py", line 737, in _urls
>>
>> [Tue Mar 11 14:36:19.859299 2014] [:error] [pid 5022]
>> self._autodiscover()
>>
>> [Tue Mar 11 14:36:19.859311 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/horizon/base.py", line 782, in
>> _autodiscover
>>
>> [Tue Mar 11 14:36:19.859331 2014] [:error] [pid 5022]
>> import_module('%s.%s' % (app, mod_name))
>>
>> [Tue Mar 11 14:36:19.859384 2014] [:error] [pid 5022] File
>> "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in
>> import_module
>>
>> [Tue Mar 11 14:36:19.859396 2014] [:error] [pid 5022]
>> __import__(name)
>>
>> [Tue Mar 11 14:36:19.859411 2014] [:error] [pid 5022] File
>> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/router/dashboard.py",
>> line 19, in <module>
>>
>> [Tue Mar 11 14:36:19.859424 2014] [:error] [pid 5022] from
>> openstack_dashboard.api import neutron
>>
>> [Tue Mar 11 14:36:19.859435 2014] [:error] [pid 5022] File
>> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/__init__.py",
>> line 36, in <module>
>>
>> [Tue Mar 11 14:36:19.859447 2014] [:error] [pid 5022] from
>> openstack_dashboard.api import base
>>
>> [Tue Mar 11 14:36:19.859458 2014] [:error] [pid 5022] ImportError:
>> cannot import name base
>>
>> [Tue Mar 11 14:36:19.864135 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] mod_wsgi (pid=5022): Exception occurred processing WSGI
>> script
>> '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
>>
>> [Tue Mar 11 14:36:19.864193 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] Traceback (most recent call last):
>>
>> [Tue Mar 11 14:36:19.864230 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 255,
>> in __call__
>>
>> [Tue Mar 11 14:36:19.864272 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] response = self.get_response(request)
>>
>> [Tue Mar 11 14:36:19.864291 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 178,
>> in get_response
>>
>> [Tue Mar 11 14:36:19.864324 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] response = self.handle_uncaught_exception(request,
>> resolver, sys.exc_info())
>>
>> [Tue Mar 11 14:36:19.864341 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 220,
>> in handle_uncaught_exception
>>
>> [Tue Mar 11 14:36:19.864373 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] if resolver.urlconf_module is None:
>>
>> [Tue Mar 11 14:36:19.864389 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342,
>> in urlconf_module
>>
>> [Tue Mar 11 14:36:19.864420 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] self._urlconf_module =
>> import_module(self.urlconf_name)
>>
>> [Tue Mar 11 14:36:19.864441 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in
>> import_module
>>
>> [Tue Mar 11 14:36:19.864467 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] __import__(name)
>>
>> [Tue Mar 11 14:36:19.864489 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/urls.py",
>> line 38, in <module>
>>
>> [Tue Mar 11 14:36:19.864515 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] url(r'', include(horizon.urls))
>>
>> [Tue Mar 11 14:36:19.864536 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 26,
>> in include
>>
>> [Tue Mar 11 14:36:19.864566 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] patterns = getattr(urlconf_module, 'urlpatterns',
>> urlconf_module)
>>
>> [Tue Mar 11 14:36:19.864586 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 204, in
>> inner
>>
>> [Tue Mar 11 14:36:19.864614 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] self._setup()
>>
>> [Tue Mar 11 14:36:19.864633 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 270, in
>> _setup
>>
>> [Tue Mar 11 14:36:19.864661 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] self._wrapped = self._setupfunc()
>>
>> [Tue Mar 11 14:36:19.864681 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/horizon/base.py", line 730, in
>> url_patterns
>>
>> [Tue Mar 11 14:36:19.864725 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] return self._urls()[0]
>>
>> [Tue Mar 11 14:36:19.864745 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/horizon/base.py", line 737, in _urls
>>
>> [Tue Mar 11 14:36:19.864772 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] self._autodiscover()
>>
>> [Tue Mar 11 14:36:19.864792 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/horizon/base.py", line 782, in
>> _autodiscover
>>
>> [Tue Mar 11 14:36:19.864833 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] import_module('%s.%s' % (app, mod_name))
>>
>> [Tue Mar 11 14:36:19.864857 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in
>> import_module
>>
>> [Tue Mar 11 14:36:19.864884 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] __import__(name)
>>
>> [Tue Mar 11 14:36:19.864905 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/router/dashboard.py",
>> line 19, in <module>
>>
>> [Tue Mar 11 14:36:19.864936 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] from openstack_dashboard.api import neutron
>>
>> [Tue Mar 11 14:36:19.864957 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] File
>> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/__init__.py",
>> line 36, in <module>
>>
>> [Tue Mar 11 14:36:19.864987 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] from openstack_dashboard.api import base
>>
>> [Tue Mar 11 14:36:19.865018 2014] [:error] [pid 5022] [remote
>> 192.168.1.48:24] ImportError: cannot import name base
>>
>>
>> Thanks.
>> Mandar
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to : openstack at lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140312/37d7fa4c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local_settings
Type: application/octet-stream
Size: 14834 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140312/37d7fa4c/attachment.obj>
More information about the Openstack
mailing list