Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run run_setup_local.sh: Error connecting: Error while fetching server API version: ('Connection aborted.', error(13, 'Permission denied'))" #68

Open
danieloh30 opened this issue Jun 14, 2017 · 2 comments

Comments

@danieloh30
Copy link

failed: [localhost] (item={u'tag': u'summit', u'img': u'docker.io/ansibleplaybookbundle/ansible-service-broker-apb'}) => {"failed": true, "item": {"img": "docker.io/ansibleplaybookbundle/ansible-service-broker-apb", "tag": "summit"}, "msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', error(13, 'Permission denied'))"}
failed: [localhost] (item={u'tag': u'summit', u'img': u'docker.io/ansibleplaybookbundle/ansible-service-broker-asb'}) => {"failed": true, "item": {"img": "docker.io/ansibleplaybookbundle/ansible-service-broker-asb", "tag": "summit"}, "msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', error(13, 'Permission denied'))"}

@jwmatthews jwmatthews changed the title Failed to run run_setup_local.sh Failed to run run_setup_local.sh: Error connecting: Error while fetching server API version: ('Connection aborted.', error(13, 'Permission denied'))" Jun 26, 2017
@jwmatthews
Copy link
Member

This looks like an issue communicating with docker on the host.

Perhaps a permissions error.

@morete
Copy link

morete commented Dec 8, 2017

I faced the same issue and it ended up being a permissions issue with the docker communication using "/var/run/docker.sock"

I used a dedicated user account for ansible that has sudo access but it does not belong to the owner of /var/run/docker.sock so I fixed it by running:

sudo setfacl -m user:{username}:rw /var/run/docker.sock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants