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 192.168.54.74, our host IP, and whenever we try to connect to 192.168.54.74/horizon, 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 192.168.54.74 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 192.168.54.100:34092] 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 192.168.54.100:34092] File "<frozen importlib._bootstrap>", line 665, in _load_unlocked

[Mon Jun 03 13:29:06.668267 2019] [wsgi:error] [pid 5169:tid 140440377767680] [remote 192.168.54.100:34092] 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 192.168.54.100:34092] 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 192.168.54.100:34092] File "/usr/lib/python3/dist-packages/openstack_dashboard/settings.py", line 392, in <module>

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

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

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

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

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


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

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

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

'[Tue Jun 04 12:18:28.702388 2019] [wsgi:error] [pid 11484:tid 140713702938368] [remote 192.168.54.100:34786] 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

Comments

1

Looks like a syntax error in local_settings.py, 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
1

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