Closed Mello5617 closed 6 months ago
Try this solution. It worked for me: https://github.com/geerlingguy/internet-pi/issues/506#issuecomment-1556038632
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.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
When installing internet pi I hit an error and can't seem to get past it.
PLAY [Configure Internet Pi.] **
TASK [Gathering Facts] ***** ok: [127.0.0.1]
TASK [Load configuration (with defaults from example file).] *** ok: [127.0.0.1] => (item=example.config.yml) ok: [127.0.0.1] => (item=config.yml)
TASK [Ensure apt cache is up to date.] ***** ok: [127.0.0.1]
TASK [Ensure pacman cache is up to date] *** skipping: [127.0.0.1]
TASK [Check if Docker is already present.] ***** ok: [127.0.0.1]
TASK [Download Docker install convenience script.] ***** skipping: [127.0.0.1]
TASK [Run Docker install convenience script.] ** skipping: [127.0.0.1]
TASK [Ensure Docker is started.] *** ok: [127.0.0.1]
TASK [Ensure dependencies are installed (Debian).] ***** changed: [127.0.0.1]
TASK [Ensure dependencies are installed (Archlinux).] ** skipping: [127.0.0.1]
TASK [Install Docker Compose using Pip.] *** changed: [127.0.0.1]
TASK [Ensure user is added to the docker group: pi] **** changed: [127.0.0.1]
TASK [Reset connection so docker group is picked up.] ** [WARNING]: Reset is not implemented for this connection
TASK [Gather package facts.] *** skipping: [127.0.0.1]
TASK [Add Buster backports apt key.] *** skipping: [127.0.0.1] => (item=04EE7237B7D453EC) skipping: [127.0.0.1] => (item=648ACFD622F3D138) skipping: [127.0.0.1]
TASK [Add Buster backports for fixed libseccomp2.] ***** skipping: [127.0.0.1]
TASK [Install >libseccomp2.4.4 to fix 32-bit OS issue.] **** skipping: [127.0.0.1]
TASK [Synchronize internet-monitoring directory.] ** changed: [127.0.0.1]
TASK [Ensure internet-monitoring directory is not a Git repository.] *** ok: [127.0.0.1]
TASK [Copy templated internet-monitoring files into place.] **** changed: [127.0.0.1] => (item={'src': 'docker-compose.yml.j2', 'dest': 'docker-compose.yml'}) changed: [127.0.0.1] => (item={'src': 'grafana-config.monitoring.j2', 'dest': 'grafana/config.monitoring'}) changed: [127.0.0.1] => (item={'src': 'prometheus.yml.j2', 'dest': 'prometheus/prometheus.yml'}) changed: [127.0.0.1] => (item={'src': 'prometheus-pinghosts.yaml.j2', 'dest': 'prometheus/pinghosts.yaml'})
TASK [Ensure internet-monitoring environment is running.] ** fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))"}
PLAY RECAP ***** 127.0.0.1 : ok=11 changed=5 unreachable=0 failed=1 skipped=8 rescued=0 ignored=0
pi@MainPi1:~/internet-pi $ sudo ansible-playbook main.yml Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 5, in
from ansible.cli.playbook import main
ModuleNotFoundError: No module named 'ansible'
pi@MainPi1:~/internet-pi $ sudo su
root@MainPi1:/home/pi/internet-pi# ansible-playbook
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 5, in
from ansible.cli.playbook import main
ModuleNotFoundError: No module named 'ansible'
root@MainPi1:/home/pi/internet-pi# ansible-playbook main.yml
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 5, in
from ansible.cli.playbook import main
ModuleNotFoundError: No module named 'ansible'
root@MainPi1:/home/pi/internet-pi# exit
exit
pi@MainPi1:~/internet-pi $ ansible-playbook main.yml
PLAY [Configure Internet Pi.] **
TASK [Gathering Facts] ***** ok: [127.0.0.1]
TASK [Load configuration (with defaults from example file).] *** ok: [127.0.0.1] => (item=example.config.yml) ok: [127.0.0.1] => (item=config.yml)
TASK [Ensure apt cache is up to date.] ***** ok: [127.0.0.1]
TASK [Ensure pacman cache is up to date] *** skipping: [127.0.0.1]
TASK [Check if Docker is already present.] ***** ok: [127.0.0.1]
TASK [Download Docker install convenience script.] ***** skipping: [127.0.0.1]
TASK [Run Docker install convenience script.] ** skipping: [127.0.0.1]
TASK [Ensure Docker is started.] *** ok: [127.0.0.1]
TASK [Ensure dependencies are installed (Debian).] ***** ok: [127.0.0.1]
TASK [Ensure dependencies are installed (Archlinux).] ** skipping: [127.0.0.1]
TASK [Install Docker Compose using Pip.] *** ok: [127.0.0.1]
TASK [Ensure user is added to the docker group: pi] **** ok: [127.0.0.1]
TASK [Reset connection so docker group is picked up.] ** [WARNING]: Reset is not implemented for this connection
TASK [Gather package facts.] *** skipping: [127.0.0.1]
TASK [Add Buster backports apt key.] *** skipping: [127.0.0.1] => (item=04EE7237B7D453EC) skipping: [127.0.0.1] => (item=648ACFD622F3D138) skipping: [127.0.0.1]
TASK [Add Buster backports for fixed libseccomp2.] ***** skipping: [127.0.0.1]
TASK [Install >libseccomp2.4.4 to fix 32-bit OS issue.] **** skipping: [127.0.0.1]
TASK [Synchronize internet-monitoring directory.] ** changed: [127.0.0.1]
TASK [Ensure internet-monitoring directory is not a Git repository.] *** ok: [127.0.0.1]
TASK [Copy templated internet-monitoring files into place.] **** ok: [127.0.0.1] => (item={'src': 'docker-compose.yml.j2', 'dest': 'docker-compose.yml'}) ok: [127.0.0.1] => (item={'src': 'grafana-config.monitoring.j2', 'dest': 'grafana/config.monitoring'}) ok: [127.0.0.1] => (item={'src': 'prometheus.yml.j2', 'dest': 'prometheus/prometheus.yml'}) ok: [127.0.0.1] => (item={'src': 'prometheus-pinghosts.yaml.j2', 'dest': 'prometheus/pinghosts.yaml'})
TASK [Ensure internet-monitoring environment is running.] ** fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))"}
PLAY RECAP ***** 127.0.0.1 : ok=11 changed=1 unreachable=0 failed=1 skipped=8 rescued=0 ignored=0
pi@MainPi1:~/internet-pi $ ansible-playbook main.yml -K BECOME password:
PLAY [Configure Internet Pi.] **
TASK [Gathering Facts] ***** ok: [127.0.0.1]
TASK [Load configuration (with defaults from example file).] *** ok: [127.0.0.1] => (item=example.config.yml) ok: [127.0.0.1] => (item=config.yml)
TASK [Ensure apt cache is up to date.] ***** ok: [127.0.0.1]
TASK [Ensure pacman cache is up to date] *** skipping: [127.0.0.1]
TASK [Check if Docker is already present.] ***** ok: [127.0.0.1]
TASK [Download Docker install convenience script.] ***** skipping: [127.0.0.1]
TASK [Run Docker install convenience script.] ** skipping: [127.0.0.1]
TASK [Ensure Docker is started.] *** ok: [127.0.0.1]
TASK [Ensure dependencies are installed (Debian).] ***** ok: [127.0.0.1]
TASK [Ensure dependencies are installed (Archlinux).] ** skipping: [127.0.0.1]
TASK [Install Docker Compose using Pip.] *** ok: [127.0.0.1]
TASK [Ensure user is added to the docker group: pi] **** ok: [127.0.0.1]
TASK [Reset connection so docker group is picked up.] ** [WARNING]: Reset is not implemented for this connection
TASK [Gather package facts.] *** skipping: [127.0.0.1]
TASK [Add Buster backports apt key.] *** skipping: [127.0.0.1] => (item=04EE7237B7D453EC) skipping: [127.0.0.1] => (item=648ACFD622F3D138) skipping: [127.0.0.1]
TASK [Add Buster backports for fixed libseccomp2.] ***** skipping: [127.0.0.1]
TASK [Install >libseccomp2.4.4 to fix 32-bit OS issue.] **** skipping: [127.0.0.1]
TASK [Synchronize internet-monitoring directory.] ** ok: [127.0.0.1]
TASK [Ensure internet-monitoring directory is not a Git repository.] *** ok: [127.0.0.1]
TASK [Copy templated internet-monitoring files into place.] **** ok: [127.0.0.1] => (item={'src': 'docker-compose.yml.j2', 'dest': 'docker-compose.yml'}) ok: [127.0.0.1] => (item={'src': 'grafana-config.monitoring.j2', 'dest': 'grafana/config.monitoring'}) ok: [127.0.0.1] => (item={'src': 'prometheus.yml.j2', 'dest': 'prometheus/prometheus.yml'}) ok: [127.0.0.1] => (item={'src': 'prometheus-pinghosts.yaml.j2', 'dest': 'prometheus/pinghosts.yaml'})
TASK [Ensure internet-monitoring environment is running.] ** fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))"}
PLAY RECAP ***** 127.0.0.1 : ok=11 changed=0 unreachable=0 failed=1 skipped=8 rescued=0 ignored=0