Ask Your Question
0

ConnectionError: ('Connection aborted.', error(13, 'EACCES'))

asked 2015-09-08 14:01:21 -0500

daikk115 gravatar image

updated 2015-09-08 14:09:33 -0500

Hello, I installed docker plugin for heat openstak Kilo. But when I try to create a stack encountered an error as follows:

  • Status Reason: Resource CREATE failed: ConnectionError: resources.server: ('Connection aborted.', error(13, 'EACCES'))

  • log /heat/heat-engine.log :


2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource Traceback (most recent call last):
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 500, in _action_recorder
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     yield
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 570, in _do_action
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     yield self.action_handler_task(action, args=handler_args)
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/scheduler.py", line 296, in wrapper
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     step = next(subtask)
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 541, in action_handler_task
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     handler_data = handler(*args)
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/lib/heat/docker-plugin/heat_docker/resources/docker_container.py", line 346, in handle_create
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     version = client.version()['ApiVersion']
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 837, in version
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     return self._result(self._get(url), json=True)
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/local/lib/python2.7/dist-packages/docker/clientbase.py", line 86, in _get
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     return self.get(url, **self._set_request_timeout(kwargs))
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 477, in get
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     return self.request('GET', url, **kwargs)
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     resp = self.send(prep, **send_kwargs)
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     r = adapter.send(request, **kwargs)
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource   File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 415, in send
2015-09-09 01:27:41.424 4300 TRACE heat.engine.resource     raise ConnectionError(err, request=request)

  • File yaml:
heat_template_version: 2014-10-16
description: A simple server.

parameters:
  ImageID:
    type: string
    description: Image use to boot a server
resources ...
(more)
edit retag flag offensive close merge delete

Comments

The ConnectionError is usually when you cannot access the endpoint that you have configured in Keystone. It usually uses the publicURL endpoint by default, see if you can access the endpoint for Heat from the place you are running your commands.

Tobias Urdin gravatar imageTobias Urdin ( 2015-09-09 12:53:41 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-10 09:17:02 -0500

daikk115 gravatar image

updated 2016-04-03 07:10:01 -0500


Thank you for answer @tabasco. And I have also fix it follow these step:

  1. Run sudo /usr/bin/docker daemon -H 0.0.0.0:2375 &
  2. Now, i try to create stack and it appears new error: "mem_limit has been moved to host_config in API version 1.19"

I changed version docker-py to fix them:

sudo pip list | grep docker # docker-py (1.3.1)

sudo pip uninstall docker-py

sudo pip install docker-py=1.22

and reboot system

  1. Now, rerun the command again: sudo /usr/bin/docker daemon -H 0.0.0.0:2375 &

But i don't know how to not run it every time reboot.

UPDATE 03/04/2016:

The first of all, we may also have to check permission of file /var/run/docker.sock and set its

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: 2015-09-08 14:01:21 -0500

Seen: 831 times

Last updated: Apr 03 '16