Skip to content

Instantly share code, notes, and snippets.

@Craigson
Created March 31, 2021 23:23
Show Gist options
  • Save Craigson/106afead1130925867c721008c938746 to your computer and use it in GitHub Desktop.
Save Craigson/106afead1130925867c721008c938746 to your computer and use it in GitHub Desktop.
syntropy error
<34.70.232.163> (1, b'\r\n{"failed": true, "msg": "Error connecting: Error while fetching server API version: (\'Connection aborted.\', PermissionError(13, \'Permission denied\'))", "exception": " File \\"/tmp/ansible_docker_network_payload_3e__q8cf/ansible_docker_network_payload.zip/ansible_collections/community/general/plugins/module_utils/docker/common.py\\", line 361, in __init__\\n super(AnsibleDockerClient, self).__init__(**self._connect_params)\\n File \\"/home/craigpick/.local/lib/python3.8/site-packages/docker/api/client.py\\", line 197, in __init__\\n self._version = self._retrieve_server_version()\\n File \\"/home/craigpick/.local/lib/python3.8/site-packages/docker/api/client.py\\", line 221, in _retrieve_server_version\\n raise DockerException(\\n", "invocation": {"module_args": {"name": "syntropynet", "driver": "bridge", "ipam_config": [{"subnet": "172.22.0.0/24", "iprange": null, "gateway": null, "aux_addresses": null}], "docker_host": "unix://var/run/docker.sock", "tls_hostname": "localhost", "api_version": "auto", "timeout": 60, "tls": false, "validate_certs": false, "debug": false, "connected": [], "state": "present", "driver_options": {}, "force": false, "appends": false, "ipam_options": {"subnet": null, "iprange": null, "gateway": null, "aux_addresses": null}, "labels": {}, "ca_cert": null, "client_cert": null, "client_key": null, "ssl_version": null, "ipam_driver": null, "ipam_driver_options": null, "enable_ipv6": null, "internal": null, "scope": null, "attachable": null}}}\r\n', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/craig/.ssh/config\r\ndebug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/cactus-bk depth 0\r\ndebug1: Reading configuration data /Users/craig/.ssh/config.d/cactus-bk\r\ndebug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/ccbb depth 0\r\ndebug1: Reading configuration data /Users/craig/.ssh/config.d/ccbb\r\ndebug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/color-factory depth 0\r\ndebug1: Reading configuration data /Users/craig/.ssh/config.d/color-factory\r\ndebug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/lab100 depth 0\r\ndebug1: Reading configuration data /Users/craig/.ssh/config.d/lab100\r\ndebug1: /Users/craig/.ssh/config line 3: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 34.70.232.163 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 44479\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\nShared connection to 34.70.232.163 closed.\r\n')
<34.70.232.163> Failed to connect to the host via ssh: OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/craig/.ssh/config
debug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/cactus-bk depth 0
debug1: Reading configuration data /Users/craig/.ssh/config.d/cactus-bk
debug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/ccbb depth 0
debug1: Reading configuration data /Users/craig/.ssh/config.d/ccbb
debug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/color-factory depth 0
debug1: Reading configuration data /Users/craig/.ssh/config.d/color-factory
debug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/lab100 depth 0
debug1: Reading configuration data /Users/craig/.ssh/config.d/lab100
debug1: /Users/craig/.ssh/config line 3: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: resolve_canonicalize: hostname 34.70.232.163 is address
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 44479
debug3: mux_client_request_session: session request sent
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
Shared connection to 34.70.232.163 closed.
<34.70.232.163> ESTABLISH SSH CONNECTION FOR USER: craigpick
<34.70.232.163> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="craigpick"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ConnectTimeout=15 -o ControlPath=/Users/craig/.ansible/cp/be9548aedd 34.70.232.163 '/bin/sh -c '"'"'rm -f -r /tmp/ansible-craigpick/ansible-tmp-1617232446.7562041-46540-54653566426262/ > /dev/null 2>&1 && sleep 0'"'"''
<34.70.232.163> (0, b'', b'OpenSSH_7.9p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/craig/.ssh/config\r\ndebug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/cactus-bk depth 0\r\ndebug1: Reading configuration data /Users/craig/.ssh/config.d/cactus-bk\r\ndebug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/ccbb depth 0\r\ndebug1: Reading configuration data /Users/craig/.ssh/config.d/ccbb\r\ndebug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/color-factory depth 0\r\ndebug1: Reading configuration data /Users/craig/.ssh/config.d/color-factory\r\ndebug3: /Users/craig/.ssh/config line 1: Including file /Users/craig/.ssh/config.d/lab100 depth 0\r\ndebug1: Reading configuration data /Users/craig/.ssh/config.d/lab100\r\ndebug1: /Users/craig/.ssh/config line 3: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 48: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 34.70.232.163 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 44479\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
The full traceback is:
File "/tmp/ansible_docker_network_payload_3e__q8cf/ansible_docker_network_payload.zip/ansible_collections/community/general/plugins/module_utils/docker/common.py", line 361, in __init__
super(AnsibleDockerClient, self).__init__(**self._connect_params)
File "/home/craigpick/.local/lib/python3.8/site-packages/docker/api/client.py", line 197, in __init__
self._version = self._retrieve_server_version()
File "/home/craigpick/.local/lib/python3.8/site-packages/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
fatal: [cosmos-sentry]: FAILED! => changed=false
invocation:
module_args:
api_version: auto
appends: false
attachable: null
ca_cert: null
client_cert: null
client_key: null
connected: []
debug: false
docker_host: unix://var/run/docker.sock
driver: bridge
driver_options: {}
enable_ipv6: null
force: false
internal: null
ipam_config:
- aux_addresses: null
gateway: null
iprange: null
subnet: 172.22.0.0/24
ipam_driver: null
ipam_driver_options: null
ipam_options:
aux_addresses: null
gateway: null
iprange: null
subnet: null
labels: {}
name: syntropynet
scope: null
ssl_version: null
state: present
timeout: 60
tls: false
tls_hostname: localhost
validate_certs: false
msg: 'Error connecting: Error while fetching server API version: (''Connection aborted.'', PermissionError(13, ''Permission denied''))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment