Icehouse: horizon internal error after authentication

asked 2015-05-18 15:31:47 -0500

David Talmage gravatar image

I have a new installation of Icehouse on CentOS 7.1 that won't let me log in as admin. /var/log/horizon/horizon.log says that authentication succeeded. There's a complain after that: TypeError: <openstack_auth.user.token object="" at="" 0x7ff4cc0c5950=""> is not JSON serializable

I don't have other users to log in as.

Here's the full Python stack dump from /var/log/horizon/horizon.log:

Internal Server Error: /dashboard/auth/login/
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 199, in get_response
    response = middleware_method(request, response)
  File "/usr/lib/python2.7/site-packages/django/contrib/sessions/middleware.py", line 38, in process_response
    request.session.save()
  File "/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py", line 57, in save
    session_data=self.encode(self._get_session(no_load=must_create)),
  File "/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py", line 87, in encode
    serialized = self.serializer().dumps(session_dict)
  File "/usr/lib/python2.7/site-packages/django/core/signing.py", line 88, in dumps
    return json.dumps(obj, separators=(',', ':')).encode('latin-1')
  File "/usr/lib64/python2.7/json/__init__.py", line 250, in dumps
    sort_keys=sort_keys, **kw).encode(obj)
  File "/usr/lib64/python2.7/json/encoder.py", line 207, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib64/python2.7/json/encoder.py", line 270, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib64/python2.7/json/encoder.py", line 184, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <openstack_auth.user.Token object at 0x7ff4cc0c5950> is not JSON serializable
edit retag flag offensive close merge delete