Authenticating with user 'admin' from the UI fails - Error in keystone.log
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Expired
|
Undecided
|
Unassigned | ||
OpenStack Identity (keystone) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I am setting up OpenStack Mitaka on Ubuntu 14.04 server by following : http://
Once I install the dashboard, when I try to login using the 'admin' account, it gives me the following error on the UI 'An error occurred authenticating. Please try again later.'
On further investigation, I see the following error in /var/log/
If you notice the last line, it is referring to 'build_auth_contet' in keystone-paste.ini which might be a typo for build_auth_context
=======
2016-10-25 12:11:24.768822 2016-10-25 12:11:24.768 30696 WARNING keystone.
2016-10-25 12:11:24.887918 mod_wsgi (pid=30696): Target WSGI script '/usr/bin/
2016-10-25 12:11:24.887945 mod_wsgi (pid=30696): Exception occurred processing WSGI script '/usr/bin/
2016-10-25 12:11:24.887979 Traceback (most recent call last):
2016-10-25 12:11:24.887995 File "/usr/bin/
2016-10-25 12:11:24.888020 application = initialize_
2016-10-25 12:11:24.888033 File "/usr/lib/
2016-10-25 12:11:24.888062 return initialize_
2016-10-25 12:11:24.888071 File "/usr/lib/
2016-10-25 12:11:24.888083 startup_
2016-10-25 12:11:24.888092 File "/usr/lib/
2016-10-25 12:11:24.888118 res = startup_
2016-10-25 12:11:24.888126 File "/usr/lib/
2016-10-25 12:11:24.888139 'config:%s' % config.
2016-10-25 12:11:24.888147 File "/usr/lib/
2016-10-25 12:11:24.888252 controllers.
2016-10-25 12:11:24.888267 File "/usr/lib/
2016-10-25 12:11:24.888448 return loadobj(APP, uri, name=name, **kw)
2016-10-25 12:11:24.888461 File "/usr/lib/
2016-10-25 12:11:24.888475 return context.create()
2016-10-25 12:11:24.888484 File "/usr/lib/
2016-10-25 12:11:24.888498 return self.object_
2016-10-25 12:11:24.888508 File "/usr/lib/
2016-10-25 12:11:24.888534 **context.
2016-10-25 12:11:24.888544 File "/usr/lib/
2016-10-25 12:11:24.888593 val = callable(*args, **kw)
2016-10-25 12:11:24.888605 File "/usr/lib/
2016-10-25 12:11:24.888685 app = loader.
2016-10-25 12:11:24.888710 File "/usr/lib/
2016-10-25 12:11:24.888726 name=name, global_
2016-10-25 12:11:24.888738 File "/usr/lib/
2016-10-25 12:11:24.888765 APP, name=name, global_
2016-10-25 12:11:24.888774 File "/usr/lib/
2016-10-25 12:11:24.888788 global_
2016-10-25 12:11:24.888797 File "/usr/lib/
2016-10-25 12:11:24.888810 for name in pipeline[:-1]]
2016-10-25 12:11:24.888819 File "/usr/lib/
2016-10-25 12:11:24.888833 object_type, name=name)
2016-10-25 12:11:24.888841 File "/usr/lib/
2016-10-25 12:11:24.888854 self.filename))
2016-10-25 12:11:24.888871 LookupError: No section 'build_auth_contet' (prefixed by 'filter') found in config /etc/keystone/
=======
Thanks,
Kiran Vemuri
-- Update:
I was able to work around the previous error by copying 'build_
[filter:
use = egg:keystone#
[filter:
use = egg:keystone#
and restart apache2
But now I see the following error in /var/log/
=======
Login successful for user "admin".
[Tue Oct 25 20:45:29.480341 2016] [:error] [pid 26652:tid 139681872803584] Internal Server Error: /horizon/
[Tue Oct 25 20:45:29.480374 2016] [:error] [pid 26652:tid 139681872803584] Traceback (most recent call last):
[Tue Oct 25 20:45:29.480386 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480390 2016] [:error] [pid 26652:tid 139681872803584] response = wrapped_
[Tue Oct 25 20:45:29.480393 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480396 2016] [:error] [pid 26652:tid 139681872803584] return view(request, *args, **kwargs)
[Tue Oct 25 20:45:29.480399 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480401 2016] [:error] [pid 26652:tid 139681872803584] response = view_func(request, *args, **kwargs)
[Tue Oct 25 20:45:29.480404 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480418 2016] [:error] [pid 26652:tid 139681872803584] response = view_func(request, *args, **kwargs)
[Tue Oct 25 20:45:29.480421 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480423 2016] [:error] [pid 26652:tid 139681872803584] **kwargs)
[Tue Oct 25 20:45:29.480426 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480429 2016] [:error] [pid 26652:tid 139681872803584] return view(request, *args, **kwargs)
[Tue Oct 25 20:45:29.480431 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480434 2016] [:error] [pid 26652:tid 139681872803584] response = view_func(request, *args, **kwargs)
[Tue Oct 25 20:45:29.480436 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480439 2016] [:error] [pid 26652:tid 139681872803584] response = view_func(request, *args, **kwargs)
[Tue Oct 25 20:45:29.480441 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480444 2016] [:error] [pid 26652:tid 139681872803584] auth_login(request, form.get_user())
[Tue Oct 25 20:45:29.480446 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480449 2016] [:error] [pid 26652:tid 139681872803584] request.
[Tue Oct 25 20:45:29.480452 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480454 2016] [:error] [pid 26652:tid 139681872803584] self.create()
[Tue Oct 25 20:45:29.480457 2016] [:error] [pid 26652:tid 139681872803584] File "/usr/lib/
[Tue Oct 25 20:45:29.480459 2016] [:error] [pid 26652:tid 139681872803584] "Unable to create a new session key. "
[Tue Oct 25 20:45:29.480462 2016] [:error] [pid 26652:tid 139681872803584] RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.
=======
description: | updated |
description: | updated |
description: | updated |
Kiran,
can you obtain a token through the CLI? Maybe keystone is not set up properly so we should first check if it works properly.