Ask Your Question
0

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

asked 2020-01-07 09:41:11 -0600

prakashs gravatar image

updated 2020-01-07 23:54:12 -0600

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 ...
(more)
edit retag flag offensive close merge delete

Comments

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.

Bernd Bausch gravatar imageBernd Bausch ( 2020-01-07 16:58:47 -0600 )edit

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.

Bernd Bausch gravatar imageBernd Bausch ( 2020-01-07 23:51:24 -0600 )edit

Perhaps commenting it is not the solution.

You probably need to indent it by four characters.

Bernd Bausch gravatar imageBernd Bausch ( 2020-01-08 00:39:41 -0600 )edit

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?

prakashs gravatar imageprakashs ( 2020-01-08 01:01:44 -0600 )edit

I don't think you get the same error message. Something else must be wrong.

Horizon's repository contains a sample local_settings.py.

Bernd Bausch gravatar imageBernd Bausch ( 2020-01-08 03:01:06 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-01-08 00:29:11 -0600

prakashs gravatar image

updated 2020-01-08 00:30:39 -0600

Line 422 is below

'supported_vnic_types': ['*'],

I commented & restarted apache2 service, receiving same error.

[Wed Jan 08 06:06:33.528755 2020] [mpm_event:notice] [pid 14042:tid 140215295712192] AH00493: SIGUSR1 received. Doing graceful restart

[Wed Jan 08 06:06:35.091945 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

[Wed Jan 08 06:06:35.103251 2020] [core:notice] [pid 14042:tid 140215295712192] AH00094: Command line: '/usr/sbin/apache2'

[Wed Jan 08 06:06:58.925144 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] mod_wsgi (pid=26828): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py' cannot be loaded as Python module.

[Wed Jan 08 06:06:58.925205 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] mod_wsgi (pid=26828): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'.

[Wed Jan 08 06:06:58.925939 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] Traceback (most recent call last):

[Wed Jan 08 06:06:58.925997 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py", line 29, in <module>

[Wed Jan 08 06:06:58.926003 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] application = get_wsgi_application()

[Wed Jan 08 06:06:58.926009 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] File "/usr/lib/python3/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_application

[Wed Jan 08 06:06:58.926013 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] django.setup(set_prefix=False)

[Wed Jan 08 06:06:58.926018 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] File "/usr/lib/python3/dist-packages/django/__init__.py", line 22, in setup

[Wed Jan 08 06:06:58.926031 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)

[Wed Jan 08 06:06:58.926036 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 56, in __getattr__

[Wed Jan 08 06:06:58.926039 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] self._setup(name)

[Wed Jan 08 06:06:58.926044 2020] [wsgi:error] [pid 26828:tid 140215173371648] [remote 127.0.0.1:34790] File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 41, in _setup

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-01-07 09:41:11 -0600

Seen: 39 times

Last updated: Jan 08