[Errno 111] Connection refused,Exception Location: /usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg/requests/models.py in send, line 634

Asked by yelloworange on 2013-03-23

I install devstack in ubuntu 12.04(32bit),but I can't log in dashboard,there is a problem!

[Errno 111] Connection refused

Request Method: GET
Request URL: http://192.168.1.127/admin/
Django Version: 1.4.5
Exception Type: ConnectionError
Exception Value:

[Errno 111] Connection refused

Exception Location: /usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg/requests/models.py in send, line 634
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:

['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
 '/opt/stack/python-keystoneclient',
 '/opt/stack/python-novaclient',
 '/opt/stack/python-openstackclient',
 '/opt/stack/keystone',
 '/opt/stack/glance',
 '/opt/stack/python-glanceclient/setuptools_git-1.0b1-py2.7.egg',
 '/opt/stack/python-glanceclient',
 '/opt/stack/nova',
 '/usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg',
 '/opt/stack/horizon',
 '/opt/stack/cinder',
 '/opt/stack/python-cinderclient',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gst-0.10',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-client',
 '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
 '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
 '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
 '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
 '/opt/stack/horizon/openstack_dashboard']

Server time: Sat, 23 Mar 2013 08:21:59 +0000

Request Method: GET
Request URL: http://localhost/admin/

Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
['openstack_dashboard',
 'django.contrib.contenttypes',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'compressor',
 'horizon',
 'openstack_dashboard.dashboards.project',
 'openstack_dashboard.dashboards.admin',
 'openstack_dashboard.dashboards.settings',
 'openstack_auth']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  38. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  86. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  54. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  38. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  86. return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  48. return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
  69. return handler(request, *args, **kwargs)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in get
  155. handled = self.construct_tables()
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in construct_tables
  146. handled = self.handle_table(table)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in handle_table
  118. data = self._get_data_dict()
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tables/views.py" in _get_data_dict
  182. self._data = {self.table_class._meta.name: self.get_data()}
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/overview/views.py" in get_data
  41. data = super(GlobalOverview, self).get_data()
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/views.py" in get_data
  34. self.usage.get_quotas()
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py" in get_quotas
  115. _("Unable to retrieve quota information."))
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py" in get_quotas
  112. self.quotas = quotas.tenant_quota_usages(self.request)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/utils/memoized.py" in __call__
  33. value = self.func(*args)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py" in tenant_quota_usages
  115. disabled_quotas=disabled_quotas):
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py" in get_tenant_quota_data
  98. tenant_id=tenant_id)
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py" in _get_quota_data
  80. quotasets.append(getattr(cinder, method_name)(request, tenant_id))
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py" in tenant_quota_get
  126. return QuotaSet(c_client.quotas.get(tenant_id))
File "/opt/stack/python-cinderclient/cinderclient/v1/quotas.py" in get
  37. return self._get("/os-quota-sets/%s" % (tenant_id), "quota_set")
File "/opt/stack/python-cinderclient/cinderclient/base.py" in _get
  141. resp, body = self.api.client.get(url)
File "/opt/stack/python-cinderclient/cinderclient/client.py" in get
  185. return self._cs_request(url, 'GET', **kwargs)
File "/opt/stack/python-cinderclient/cinderclient/client.py" in _cs_request
  153. **kwargs)
File "/opt/stack/python-cinderclient/cinderclient/client.py" in request
  123. **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg/requests/safe_mode.py" in wrapped
  39. return function(method, url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg/requests/api.py" in request
  51. return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg/requests/sessions.py" in request
  241. r.send(prefetch=prefetch)
File "/usr/local/lib/python2.7/dist-packages/requests-0.14.2-py2.7.egg/requests/models.py" in send
  634. raise ConnectionError(sockerr)

Exception Type: ConnectionError at /admin/
Exception Value: [Errno 111] Connection refused

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Solved by:
Julie Pichon
Solved:
2013-04-03
Last query:
2013-04-03
Last reply:
2013-03-25
Best Julie Pichon (jpichon) said : #1

This indicates that the Nova service isn't running (or unreachable). Note that devstack doesn't persist across reboots: you need to re-run ./stack.sh after restarting your machine.

yelloworange (260164797-5) said : #2

Thanks Julie Pichon, that solved my question.