internet-pi icon indicating copy to clipboard operation
internet-pi copied to clipboard

Installation failing on Pi4b running "buster"

Open rrobinett opened this issue 3 years ago • 5 comments

This is a pretty vanilla buster installation and run as user 'pi', but I get this error even after reboot and restarting the docker service:

fatal: [127.0.0.1]: FAILED! => {"changed": false, "errors": [], "module_stderr": "Starting internet-monitoring_prometheus_1 ... \nHost is already in use by another container\nStarting internet-monitoring_prometheus_1 ... error\n", "module_stdout": "", "msg": "Error starting project Encountered errors while bringing up the project."}

Here is the complete log of execution. There is a mysterious "BECOME password:" prompt near the start to which I respond with pi's password:

pi@Maui-Pi85:~/internet-pi $ ansible-playbook main.yml -K [DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.2.0]. This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. BECOME password:

PLAY [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 pi user is added to the docker group.] ******************************************************************************************************************************************************************************************************************** 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.] ******************************************************************************************************************************************************************************************************************************************* ok: [127.0.0.1]

TASK [Add Buster backports apt key.] *********************************************************************************************************************************************************************************************************************************** skipping: [127.0.0.1] => (item=04EE7237B7D453EC) skipping: [127.0.0.1] => (item=648ACFD622F3D138)

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': '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, "errors": [], "module_stderr": "Starting internet-monitoring_prometheus_1 ... \nHost is already in use by another container\nStarting internet-monitoring_prometheus_1 ... error\n", "module_stdout": "", "msg": "Error starting project Encountered errors while bringing up the project."}

PLAY RECAP ************************************************************************************************************************************************************************************************************************************************************* 127.0.0.1 : ok=12 changed=0 unreachable=0 failed=1 skipped=7 rescued=0 ignored=0

pi@Maui-Pi85:~/internet-pi $

rrobinett avatar Jul 03 '22 02:07 rrobinett

I think you might have another service running that is using one of the ports for internet-pi. Check out the closed issues, where this happened a few times: https://github.com/geerlingguy/internet-pi/issues?q=is%3Aissue+is%3Aclose+Host+is+already+in+use+by+another+container

Hope this helps.

martinbrose avatar Jul 12 '22 08:07 martinbrose

Thanks, I installed a fresh copy of 'buster' and the installation went smoothly

rrobinett avatar Aug 02 '22 20:08 rrobinett

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.

stale[bot] avatar Nov 01 '22 15:11 stale[bot]

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.

stale[bot] avatar Dec 24 '22 01:12 stale[bot]

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[bot] avatar Mar 18 '24 21:03 github-actions[bot]

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.

github-actions[bot] avatar May 20 '24 21:05 github-actions[bot]