Getting a 500 Internal Server Error when attempting to connect to Horizon Dashboard [closed]

asked 2019-06-03 12:41:36 -0500

cunuck32 gravatar image

updated 2019-06-04 11:26:15 -0500

We are running Stein on Ubuntu 18.04. We have our ALLOWED_HOSTS set to, our host IP, and whenever we try to connect to, we get

"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/2.4.29 (Ubuntu) Server at Port 80"

When I check the error logs, I found:

[Mon Jun 03 13:29:06.668251 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked

[Mon Jun 03 13:29:06.668259 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] File "<frozen importlib._bootstrap>", line 665, in _load_unlocked

[Mon Jun 03 13:29:06.668267 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] File "<frozen importlib._bootstrap_external>", line 678, in exec_module

[Mon Jun 03 13:29:06.668274 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

[Mon Jun 03 13:29:06.668282 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] File "/usr/lib/python3/dist-packages/openstack_dashboard/", line 392, in <module>

[Mon Jun 03 13:29:06.668286 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] from local.local_settings import * # noqa: F403,H303

[Mon Jun 03 13:29:06.668303 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] File "/usr/lib/python3/dist-packages/openstack_dashboard/local/", line 382

[Mon Jun 03 13:29:06.668315 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] 'enable_router': False,

[Mon Jun 03 13:29:06.668336 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] ^

[Mon Jun 03 13:29:06.668347 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote] SyntaxError: invalid syntax

New errors: '[Tue Jun 04 12:18:28.607215 2019] [wsgi:error] [pid 11484:tid 140713702938368] [remote] mod_wsgi (pid=11484): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/' cannot be loaded as Python module.'

'[Tue Jun 04 12:18:28.607330 2019] [wsgi:error] [pid 11484:tid 140713702938368] [remote] mod_wsgi (pid=11484): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/'.'

'[Tue Jun 04 12:18:28.702260 2019] [wsgi:error] [pid 11484:tid 140713702938368] [remote] Traceback (most recent call last):'

'[Tue Jun 04 12:18:28.702388 2019] [wsgi:error] [pid 11484:tid 140713702938368] [remote] File ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by cunuck32
close date 2019-06-06 08:03:15.227285



Looks like a syntax error in, roundabout line 382.

Bernd Bausch gravatar imageBernd Bausch ( 2019-06-03 16:57:16 -0500 )edit

So I tried messing around in the file to correct the error but it didn't seem to do anything except give me more errors. I put them in the OP. What I don't understand is why I am getting errors in parts of the file that I never have touched.

cunuck32 gravatar imagecunuck32 ( 2019-06-04 11:21:43 -0500 )edit

A typo in one place can generate a syntax error at a totally different location. Typical cases: Closing parenthesis missing, wrong type of quote character (single/double quote) to terminate a string.

Bernd Bausch gravatar imageBernd Bausch ( 2019-06-04 20:23:33 -0500 )edit