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

[Ensure internet-monitoring environment is running.] - task fails #602

Open
nohouse-felix opened this issue Jun 17, 2024 · 1 comment
Open
Labels

Comments

@nohouse-felix
Copy link

nohouse-felix commented Jun 17, 2024

Hello,
I have just tested this project against a Raspberry Pi 4 with the 64 bit version of Raspberry Pi OS bookworm and encountered the following error while running the ansible playbook locally:

TASK [Ensure internet-monitoring environment is running.] *************************** fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": "/usr/bin/docker --host unix:///var/run/docker.sock version --format '{{ json . }}'", "msg": "permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.45/version\": dial unix /var/run/docker.sock: connect: permission denied", "rc": 1, "stderr": "permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.45/version\": dial unix /var/run/docker.sock: connect: permission denied\n", "stderr_lines": ["permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.45/version\": dial unix /var/run/docker.sock: connect: permission denied"], "stdout": "{\"Client\":{\"Platform\":{\"Name\":\"Docker Engine - Community\"},\"Version\":\"26.1.4\",\"ApiVersion\":\"1.45\",\"DefaultAPIVersion\":\"1.45\",\"GitCommit\":\"5650f9b\",\"GoVersion\":\"go1.21.11\",\"Os\":\"linux\",\"Arch\":\"arm64\",\"BuildTime\":\"Wed Jun 5 11:29:12 2024\",\"Context\":\"default\"},\"Server\":null}\n", "stdout_lines": ["{\"Client\":{\"Platform\":{\"Name\":\"Docker Engine - Community\"},\"Version\":\"26.1.4\",\"ApiVersion\":\"1.45\",\"DefaultAPIVersion\":\"1.45\",\"GitCommit\":\"5650f9b\",\"GoVersion\":\"go1.21.11\",\"Os\":\"linux\",\"Arch\":\"arm64\",\"BuildTime\":\"Wed Jun 5 11:29:12 2024\",\"Context\":\"default\"},\"Server\":null}"]}

As suggested I tried reconnecting to my Pi and also tried rebooting but that didn't help.
The issue seemed pretty obvious so I ran the following command to add my user (felix) to the docker group:

sudo usermod -aG docker felix

After logging out and logging back in, the playbook ran just fine with no failed tasks.
Just wanted to post this here so that other, more unexperienced users can find help when needed.

Greetings,
Felix

@nohouse-felix nohouse-felix changed the title TASK [Ensure internet-monitoring environment is running.] - task fails [Ensure internet-monitoring environment is running.] - task fails Jun 17, 2024
Copy link

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant