Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Hi
Im facing issue with Horizon.
Setup: Ubuntu 18.04 Openstack Stein
Below is the error message im getting from web console Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache is working fine.
apache error.log output
[Tue Jan 07 15:00:15.085316 2020] [mpm_event:notice] [pid 14042:tid 140215295712192] AH00489: Apache/2.4.29 (Ubuntu) mod_wsgi/4.5.17 Python/3.6 configured -- resuming normal operations
[Tue Jan 07 15:00:15.086724 2020] [core:notice] [pid 14042:tid 140215295712192] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jan 07 15:00:49.675982 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] mod_wsgi (pid=14054): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py' cannot be loaded as Python module.
[Tue Jan 07 15:00:49.676057 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] mod_wsgi (pid=14054): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'.
[Tue Jan 07 15:00:49.676934 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] Traceback (most recent call last):
[Tue Jan 07 15:00:49.677005 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py", line 29, in <module>
[Tue Jan 07 15:00:49.677011 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] application = get_wsgi_application()
[Tue Jan 07 15:00:49.677018 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] File "/usr/lib/python3/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application
[Tue Jan 07 15:00:49.677022 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] django.setup(set_prefix=False)
[Tue Jan 07 15:00:49.677028 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] File "/usr/lib/python3/dist-packages/django/__init__.py", line 22, in setup
[Tue Jan 07 15:00:49.677032 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Tue Jan 07 15:00:49.677038 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 56, in __getattr__
[Tue Jan 07 15:00:49.677041 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] self._setup(name)
[Tue Jan 07 15:00:49.677047 2020] [wsgi:error] [pid 14054:tid 140215114622720] [remote 127.0.0.1:33290] File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 41, in _setup
[Tue Jan 07 15:00:49.677052 2020] [wsgi ...
Please format error output using the "101010" button so that it becomes readable.
Having said that, it seems there is a syntax error in "/usr/lib/python3/dist-packages/openstack_dashboard/local/local_settings.py", roundabout line 378.
It says "IndentationError: unexpected indent". In a Python program, indentation is important. All statements that belong the same code block have the same indentation. File "/usr/lib/python3/dist-packages/openstack_dashboard/local/local_settings.py", line 422 violates this rule, it seems.
Perhaps commenting it is not the solution.
You probably need to indent it by four characters.
i removed the comment & exactly given 4 spaces before the 'supported_vnic_types': ['*'],, but still issue persists. Is there any way we can replace local_settings.py file from any repos?
I don't think you get the same error message. Something else must be wrong.
Horizon's repository contains a sample local_settings.py.