ERROR django.request Internal Server Error: /horizon

Bug #1800948 reported by diarmuid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Undecided
Unassigned

Bug Description

When I try log into openstack horizon, i see the below error in the apache2 error logs, and the following message in the browser "Something went wrong! An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator."

tail -f /var/log/apache2/error.log
[Wed Oct 31 22:34:05.165720 2018] [wsgi:error] [pid 32328:tid 139659763197696] [remote ::1:36776] INFO openstack_auth.forms Login successful for user "admin" using domain "Default", remote address ::1.
[Wed Oct 31 22:34:05.855084 2018] [wsgi:error] [pid 32329:tid 139659712841472] [remote ::1:36776] ERROR django.request Internal Server Error: /horizon/
[Wed Oct 31 22:34:05.855137 2018] [wsgi:error] [pid 32329:tid 139659712841472] [remote ::1:36776] Traceback (most recent call last):
[Wed Oct 31 22:34:05.855152 2018] [wsgi:error] [pid 32329:tid 139659712841472] [remote ::1:36776] File "/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 41, in inner
[Wed Oct 31 22:34:05.855166 2018] [wsgi:error] [pid 32329:tid 139659712841472] [remote ::1:36776] response = get_response(request)
[Wed Oct 31 22:34:05.855178 2018] [wsgi:error] [pid 32329:tid 139659712841472] [remote ::1:36776] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 244, in _legacy_get_response
[Wed Oct 31 22:34:05.855191 2018] [wsgi:error] [pid 32329:tid 139659712841472] [remote ::1:36776] response = middleware_method(request)
[Wed Oct 31 22:34:05.855203 2018] [wsgi:error] [pid 32329:tid 139659712841472] [remote ::1:36776] File "/usr/share/openstack-dashboard/horizon/middleware/base.py", line 52, in process_request
[Wed Oct 31 22:34:05.855215 2018] [wsgi:error] [pid 32329:tid 139659712841472] [remote ::1:36776] if not hasattr(request, "user") or not request.user.is_authenticated():
[Wed Oct 31 22:34:05.855227 2018] [wsgi:error] [pid 32329:tid 139659712841472] [remote ::1:36776] TypeError: 'bool' object is not callable

Openstack version: Queens
Ubuntu 18.04

Any suggestions to resolve it? Thanks in advance for your help

Revision history for this message
diarmuid (diarmuidcire) wrote :

Just to note, the log in worked yesterday.
Also, I purged and reinstalled openstack-dashboard and keystone (database)
No idea what I am doing wrong here.

diarmuid (diarmuidcire)
description: updated
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

diarmuid, please, specify which version of django do you have on your environment

Changed in horizon:
status: New → Incomplete
Revision history for this message
diarmuid (diarmuidcire) wrote :

python -m django --version
1.11.14

Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

It looks like something is wrong with django version. It was changed later in [1].

How did you deploy your OpenStack?

[1] https://github.com/openstack/horizon/commit/1a252cb5e87d0ca1f6a4bea573ca472b64fa33de

Ivan Kolodyazhny (e0ne)
Changed in horizon:
assignee: nobody → An Laoch (diarmuid)
Revision history for this message
Akihiro Motoki (amotoki) wrote :

I don't see any good reason to assign the bug to the reporter. Clearing the assignee.

Changed in horizon:
assignee: An Laoch (diarmuid) → nobody
Revision history for this message
Akihiro Motoki (amotoki) wrote :

It seems a wrong person was assigned. The bug reporter has "diarmuid" as display name but the assignee uses "diarmuid" as his/her ID.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.