Ask Your Question
0

Can not login Dashboard / Unable to find the server at mykeystoneurl.

asked 2012-03-06 08:48:40 -0500

tungns-inf gravatar image

Hi all,

I installed Dashboard following this guide: http://wiki.openstack.org/OpenStackDashboard (http://wiki.openstack.org/OpenStackDa...)

Everything fine, but when I run the server, I can not login with the username and password in DATABASE config in local_settings.py. Here's my config:

DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'dashboarddb', 'USER': 'nova', 'PASSWORD': 'nova', 'HOST': 'localhost', 'default-character-set': 'utf8' }, }

When I run the Dashboard server and enter username + password. It returned this error on browser: Unable to find the server at mykeystoneurl (HTTP 400)

And in the command line:

DEBUG:openstack_dashboard.settings:Running in debug mode without debug_toolbar. DEBUG:openstack_dashboard.settings:Running in debug mode without debug_toolbar. Validating models...

0 errors found Django version 1.3.1, using settings 'openstack_dashboard.settings' Development server is running at http://0.0.0.0:8888/ Quit the server with CONTROL-C. Request returned failure status. Traceback (most recent call last): File "/home/us/horizon/.venv/src/python-keystoneclient/keystoneclient/client.py", line 121, in request body = json.loads(body) File "/usr/lib/python2.7/json/__init__.py", line 326, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded [06/Mar/2012 15:20:03] "POST /auth/login/ HTTP/1.1" 200 3735

I also tried login as "admin" with password is "password" or "secrete" but I didn't work. What's wrong?

Thank you!

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2013-01-22 05:11:20 -0500

tungns-inf gravatar image

@HuaHero: just check in /etc/openstack-dashboard/

edit flag offensive delete link more
0

answered 2013-01-22 02:10:47 -0500

The answer is very help.And I am very interesed how to see the command line infomation as the askers,please help,I am newer for openstack

edit flag offensive delete link more
0

answered 2012-05-18 05:33:27 -0500

tungns-inf gravatar image

Thanks Tres Henry, that solved my question.

edit flag offensive delete link more
0

answered 2012-03-07 18:39:24 -0500

tres gravatar image

Keystone is the auth backend for OpenStack services and Horizon. You need a functioning Keystone endpoint with a correctly configured service catalog and you need to update Horizon's local_settings.py file to point Horizon at it. The OPENSTACK_HOST setting in local_settings.py should be the IP address of your Keystone service. MySql is no longer needed to run Horizon.

It might help to check out DevStack ( http://devstack.org/ ) and take a look at what it's doing to install OpenStack + Horizon.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-03-06 08:48:40 -0500

Seen: 61 times

Last updated: Jan 22 '13