Hi Atif,

There is incorrect Python indentation in the local_settings file,
/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py.

>From the perspective of the vanilla Horizon project, I believe
local_settings.py is a file that the user can create and/or modify in order
to influence how their own web UI looks.  So it could be that you created
that file yourself, or it could be that it was created by the install
method that you are using.

But either way, you can just open the file yourself and see if you can see
and fix the indentation problem.

Regards,
    Neil


On Wed, Dec 21, 2016 at 11:45 AM Atif Munir <ati...@gmail.com> wrote:

>
> After successful installation of openstack. I am getting this error while
> I was going to open http://controller/horizon. The error message is for
> Apache2 erro logs. Please advise. Thanks
>
> Atif
>
>
> [Wed Dec 21 16:30:36.170646 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754] mod_wsgi (pid=5302): Target
> WSGI script
> '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'
> cannot be loaded as Python module.
> [Wed Dec 21 16:30:36.170708 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754] mod_wsgi (pid=5302):
> Exception occurred processing WSGI script
> '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
> [Wed Dec 21 16:30:36.170734 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754] Traceback (most recent call
> last):
> [Wed Dec 21 16:30:36.170757 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]   File
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line
> 16, in <module>
> [Wed Dec 21 16:30:36.170790 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]     application =
> get_wsgi_application()
> [Wed Dec 21 16:30:36.170803 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]   File
> "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in
> get_wsgi_application
> [Wed Dec 21 16:30:36.170820 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]     django.setup()
> [Wed Dec 21 16:30:36.170830 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]   File
> "/usr/lib/python2.7/dist-packages/django/__init__.py", line 17, in setup
> [Wed Dec 21 16:30:36.170844 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]
> configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
> [Wed Dec 21 16:30:36.170853 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]   File
> "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in
> __getattr__
> [Wed Dec 21 16:30:36.170868 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]     self._setup(name)
> [Wed Dec 21 16:30:36.170894 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]   File
> "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in
> _setup
> [Wed Dec 21 16:30:36.170910 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]     self._wrapped =
> Settings(settings_module)
> [Wed Dec 21 16:30:36.170920 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]   File
> "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in
> __init__
> [Wed Dec 21 16:30:36.170933 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]     mod =
> importlib.import_module(self.SETTINGS_MODULE)
> [Wed Dec 21 16:30:36.170943 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]   File
> "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> [Wed Dec 21 16:30:36.170957 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]     __import__(name)
> [Wed Dec 21 16:30:36.170973 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]   File
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py",
> line 317, in <module>
> [Wed Dec 21 16:30:36.170991 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]     from local.local_settings
> import *  # noqa
> [Wed Dec 21 16:30:36.171047 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]   File
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py",
> line 322
> [Wed Dec 21 16:30:36.171061 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]     'profile_support': None,
> [Wed Dec 21 16:30:36.171066 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754]     ^
> [Wed Dec 21 16:30:36.171071 2016] [wsgi:error] [pid 5302:tid
> 140489127257856] [remote 172.16.72.2:40754] IndentationError: unexpected
> indent
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to