fusor / catasb

Ansible scripts to setup an 'oc cluster up' environment for testing the Service Catalog and Ansible Service Broker on EC2 or Local
47 stars 33 forks source link

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 7 years ago

danieloh30 commented 7 years ago

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 commented 7 years ago

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

Perhaps a permissions error.

morete commented 6 years ago

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