-
-
Notifications
You must be signed in to change notification settings - Fork 485
Description
I had run these playbooks in the past and was successful getting everything to install. I recently wiped my RPi-CM4 and was working on a fresh install, but keep running into small issues I hadn't seen previously using the same physical hardware.
Currently running into some kind of Docker issue...
#ansible-playbook main.yml
PLAY [Configure Internet Pi.] ********************************************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************************************************************************************
ok: [192.168.40.6]
TASK [Load configuration (with defaults from example file).] *************************************************************************************************************************************************************************************************************************************************************
ok: [192.168.40.6] => (item=example.config.yml)
ok: [192.168.40.6] => (item=config.yml)
TASK [Ensure apt cache is up to date.] ***********************************************************************************************************************************************************************************************************************************************************************************
ok: [192.168.40.6]
TASK [Ensure pacman cache is up to date] *********************************************************************************************************************************************************************************************************************************************************************************
skipping: [192.168.40.6]
TASK [Check if Docker is already present.] *******************************************************************************************************************************************************************************************************************************************************************************
ok: [192.168.40.6]
TASK [Download Docker install convenience script.] ***********************************************************************************************************************************************************************************************************************************************************************
changed: [192.168.40.6]
TASK [Run Docker install convenience script.] ****************************************************************************************************************************************************************************************************************************************************************************
changed: [192.168.40.6]
TASK [Ensure Docker is started.] *****************************************************************************************************************************************************************************************************************************************************************************************
ok: [192.168.40.6]
TASK [Ensure dependencies are installed (Debian).] ***********************************************************************************************************************************************************************************************************************************************************************
changed: [192.168.40.6]
TASK [Ensure dependencies are installed (Archlinux).] ********************************************************************************************************************************************************************************************************************************************************************
skipping: [192.168.40.6]
TASK [Ensure user is added to the docker group: pi] *******************************************************************************************************************************************************************************************************************************************************************
changed: [192.168.40.6]
TASK [Reset connection so docker group is picked up.] ********************************************************************************************************************************************************************************************************************************************************************
TASK [Gather package facts.] *********************************************************************************************************************************************************************************************************************************************************************************************
skipping: [192.168.40.6]
TASK [Add Buster backports apt key.] *************************************************************************************************************************************************************************************************************************************************************************************
skipping: [192.168.40.6] => (item=04EE7237B7D453EC)
skipping: [192.168.40.6] => (item=648ACFD622F3D138)
skipping: [192.168.40.6] => (item=0E98404D386FA1D9)
skipping: [192.168.40.6] => (item=6ED0E7B82643E131)
skipping: [192.168.40.6]
TASK [Add Buster backports for fixed libseccomp2.] ***********************************************************************************************************************************************************************************************************************************************************************
skipping: [192.168.40.6]
TASK [Install >libseccomp2.4.4 to fix 32-bit OS issue.] ******************************************************************************************************************************************************************************************************************************************************************
skipping: [192.168.40.6]
TASK [Synchronize internet-monitoring directory.] ************************************************************************************************************************************************************************************************************************************************************************
changed: [192.168.40.6]
TASK [Ensure internet-monitoring directory is not a Git repository.] *****************************************************************************************************************************************************************************************************************************************************
ok: [192.168.40.6]
TASK [Copy templated internet-monitoring files into place.] **************************************************************************************************************************************************************************************************************************************************************
changed: [192.168.40.6] => (item={'src': 'docker-compose.yml.j2', 'dest': 'docker-compose.yml'})
changed: [192.168.40.6] => (item={'src': 'grafana-config.monitoring.j2', 'dest': 'grafana/config.monitoring'})
changed: [192.168.40.6] => (item={'src': 'prometheus.yml.j2', 'dest': 'prometheus/prometheus.yml'})
changed: [192.168.40.6] => (item={'src': 'prometheus-pinghosts.yaml.j2', 'dest': 'prometheus/pinghosts.yaml'})
TASK [Ensure internet-monitoring environment is running.] ****************************************************************************************************************************************************************************************************************************************************************
fatal: [192.168.40.6]: FAILED! => {"actions": [{"id": "nginx-proxy", "status": "Pulling", "what": "image"}, {"id": "grafana", "status": "Pulling", "what": "image"}, {"id": "prometheus", "status": "Pulling", "what": "image"}, {"id": "ping", "status": "Pulling", "what": "image"}, {"id": "speedtest", "status": "Pulling", "what": "image"}, {"id": "nodeexp", "status": "Pulling", "what": "image"}], "changed": false, "cmd": "/usr/bin/docker compose --ansi never --progress json --project-directory /home/pi/internet-monitoring up --detach --no-color --quiet-pull --no-build --", "containers": [], "images": [], "msg": "Error when processing nginx-proxy: Get "https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:34172->[::1]:53: read: connection refused\nError when processing grafana: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?\nError when processing prometheus: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?\nError when processing ping: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?\nError when processing speedtest: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?\nError when processing nodeexp: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?\nGeneral error: Error response from daemon: Get "https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:34172->[::1]:53: read: connection refused", "rc": 1, "stderr": "{"id":"nginx-proxy","text":"Pulling"}\n{"id":"grafana","text":"Pulling"}\n{"id":"prometheus","text":"Pulling"}\n{"id":"ping","text":"Pulling"}\n{"id":"speedtest","text":"Pulling"}\n{"id":"nodeexp","text":"Pulling"}\n{"id":"nginx-proxy","text":"Error","status":"Get \"https://registry-1.docker.io/v2/\\\": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:34172-\u003e[::1]:53: read: connection refused"}\n{"id":"grafana","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}\n{"id":"prometheus","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}\n{"id":"ping","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}\n{"id":"speedtest","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}\n{"id":"nodeexp","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}\n{"error":true,"message":"Error response from daemon: Get \"https://registry-1.docker.io/v2/\\\": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:34172-\u003e[::1]:53: read: connection refused"}\n", "stderr_lines": ["{"id":"nginx-proxy","text":"Pulling"}", "{"id":"grafana","text":"Pulling"}", "{"id":"prometheus","text":"Pulling"}", "{"id":"ping","text":"Pulling"}", "{"id":"speedtest","text":"Pulling"}", "{"id":"nodeexp","text":"Pulling"}", "{"id":"nginx-proxy","text":"Error","status":"Get \"https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:34172-\u003e[::1]:53: read: connection refused"}", "{"id":"grafana","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}", "{"id":"prometheus","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}", "{"id":"ping","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}", "{"id":"speedtest","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}", "{"id":"nodeexp","text":"Error","status":"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"}", "{"error":true,"message":"Error response from daemon: Get \"https://registry-1.docker.io/v2/\": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:34172-\u003e[::1]:53: read: connection refused"}"], "stdout": "", "stdout_lines": []}
PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************************************************************************
192.168.40.6 : ok=12 changed=6 unreachable=0 failed=1 skipped=6 rescued=0 ignored=0