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

Internet-pi not accessible after moving to new ISP

Open rrobinett opened this issue 3 years ago • 2 comments

My Internet-pi was running well on my Pi4b running buster until I changed to a new ISP with router that assigns the Pi a different LAN address. Now I get 'connection refused' on the browser when opening 'localhost:3030' from Chromium on the Pi's desktop. I see nothing in the two configuration files which references any LAN or public IP address, so I don't know how to restore Internet-pi short of a complete re-install.

Is there a command which displays the status of Internet-pi? Speedtest from Chromium on the Pi reports my 1000/500 fiber subscription delivers 300 Mbps down during the day and 12 Mbps in the evenings. So getting a chart of the last week's speeds would help me when contacting the ISP's tech support.

Thanks

rrobinett avatar Sep 06 '22 19:09 rrobinett

I have tried to uninstall the current SW and repeat the installation instructions, but I now get a "ModuleNotFoundError: No module named 'resolvelib': error. This Pi is in active use by other applications, so it would be painful to install a new version of basher as an attempt to solve this problem.

=========

============

pi@Maui-Pi85:~/internet-pi $ ansible-galaxy collection install -r requirements.yml [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. ERROR! Unexpected Exception, this is probably a bug: No module named 'resolvelib' the full traceback was:

Traceback (most recent call last): File "/home/pi/.local/bin/ansible-galaxy", line 104, in mycli = getattr(import("ansible.cli.%s" % sub, fromlist=[myclass]), myclass) File "/home/pi/.local/lib/python3.7/site-packages/ansible/cli/galaxy.py", line 26, in from ansible.galaxy.collection import ( File "/home/pi/.local/lib/python3.7/site-packages/ansible/galaxy/collection/init.py", line 100, in from ansible.galaxy.collection.concrete_artifact_manager import ( File "/home/pi/.local/lib/python3.7/site-packages/ansible/galaxy/collection/concrete_artifact_manager.py", line 38, in from ansible.galaxy.dependency_resolution.dataclasses import _GALAXY_YAML File "/home/pi/.local/lib/python3.7/site-packages/ansible/galaxy/dependency_resolution/init.py", line 26, in from ansible.galaxy.dependency_resolution.providers import CollectionDependencyProvider File "/home/pi/.local/lib/python3.7/site-packages/ansible/galaxy/dependency_resolution/providers.py", line 33, in from resolvelib import AbstractProvider ModuleNotFoundError: No module named 'resolvelib' pi@Maui-Pi85:~/internet-pi $

rrobinett avatar Sep 15 '22 23:09 rrobinett

The installation of Internet-pi failed when run on a fresh download of the Sep6,2022 legacy 'buster' on a Pi4b. So I'm still unable to find any successful installation method. I've attached the errors I got.

========

pi@Maui-Internet-Testing-Pi4:~/internet-pi $ ansible-playbook main.yml [DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.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.

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.] ************************************************************************************************************* changed: [127.0.0.1]

TASK [Run Docker install convenience script.] ****************************************************************************************************************** changed: [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.] *********************************************************************************************************************** fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": ["/usr/bin/pip3", "install", "docker-compose"], "msg": "stdout: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting docker-compose Downloading https://files.pythonhosted.org/packages/f3/3e/ca05e486d44e38eb495ca60b8ca526b192071717387346ed1031ecf78966/docker_compose-1.29.2-py2.py3-none-any.whl (114kB) Requirement already satisfied: requests<3,>=2.20.0 in /usr/lib/python3/dist-packages (from docker-compose) (2.21.0) Collecting docopt<1,>=0.6.1 (from docker-compose) Downloading https://www.piwheels.org/simple/docopt/docopt-0.6.2-py2.py3-none-any.whl Collecting docker[ssh]>=5 (from docker-compose) Downloading https://files.pythonhosted.org/packages/57/16/71275ff97da8d2b3b1895655182eb18692d234860bfb42366aaf511389af/docker-6.0.0-py3-none-any.whl (147kB) Collecting dockerpty<1,>=0.4.1 (from docker-compose) Downloading https://www.piwheels.org/simple/dockerpty/dockerpty-0.4.1-py3-none-any.whl Collecting texttable<2,>=0.9.0 (from docker-compose) Downloading https://files.pythonhosted.org/packages/75/23/8170868d04b153b1b9ed1bb84348212bb4a08f31b292ef9d7f6ea648fd49/texttable-1.6.4-py2.py3-none-any.whl Collecting websocket-client<1,>=0.32.0 (from docker-compose) Downloading https://files.pythonhosted.org/packages/f7/0c/d52a2a63512a613817846d430d16a8fbe5ea56dd889e89c68facf6b91cb6/websocket_client-0.59.0-py2.py3-none-any.whl (67kB) Collecting cached-property<2,>=1.2.0; python_version < "3.8" (from docker-compose) Downloading https://files.pythonhosted.org/packages/48/19/f2090f7dad41e225c7f2326e4cfe6fff49e57dedb5b53636c9551f86b069/cached_property-1.5.2-py2.py3-none-any.whl Collecting jsonschema<4,>=2.5.1 (from docker-compose) Downloading https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56kB) Collecting distro<2,>=1.5.0 (from docker-compose) Downloading https://files.pythonhosted.org/packages/e1/54/d08d1ad53788515392bec14d2d6e8c410bffdc127780a9a4aa8e6854d502/distro-1.7.0-py3-none-any.whl Collecting python-dotenv<1,>=0.13.0 (from docker-compose) Downloading https://files.pythonhosted.org/packages/2d/10/ff4f2f5b2a420fd09e1331d63cc87cf4367c5745c0a4ce99cea92b1cbacb/python_dotenv-0.21.0-py3-none-any.whl Collecting PyYAML<6,>=3.10 (from docker-compose) Downloading https://www.piwheels.org/simple/pyyaml/PyYAML-5.4.1-cp37-cp37m-linux_armv7l.whl (45kB) Collecting packaging>=14.0 (from docker[ssh]>=5->docker-compose) Downloading https://files.pythonhosted.org/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40kB) Collecting urllib3>=1.26.0 (from docker[ssh]>=5->docker-compose) Downloading https://files.pythonhosted.org/packages/6f/de/5be2e3eed8426f871b170663333a0f627fc2924cc386cd41be065e7ea870/urllib3-1.26.12-py2.py3-none-any.whl (140kB) Collecting paramiko>=2.4.3; extra == "ssh" (from docker[ssh]>=5->docker-compose) Downloading https://files.pythonhosted.org/packages/04/e5/39ec73dd4a8769d6759b8d6c60a1b2c9337f585407c2ae8bfb8ccb734278/paramiko-2.11.0-py2.py3-none-any.whl (212kB) Requirement already satisfied: six>=1.3.0 in /usr/lib/python3/dist-packages (from dockerpty<1,>=0.4.1->docker-compose) (1.12.0) Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (40.8.0) Collecting attrs>=17.4.0 (from jsonschema<4,>=2.5.1->docker-compose) Downloading https://files.pythonhosted.org/packages/f2/bc/d817287d1aa01878af07c19505fafd1165cd6a119e9d0821ca1d1c20312d/attrs-22.1.0-py2.py3-none-any.whl (58kB) Collecting importlib-metadata; python_version < "3.8" (from jsonschema<4,>=2.5.1->docker-compose) Downloading https://files.pythonhosted.org/packages/d2/a2/8c239dc898138f208dd14b441b196e7b3032b94d3137d9d8453e186967fc/importlib_metadata-4.12.0-py3-none-any.whl Collecting pyrsistent>=0.14.0 (from jsonschema<4,>=2.5.1->docker-compose) Downloading https://www.piwheels.org/simple/p

PLAY RECAP *****************************************************************************************************************************************************

rrobinett avatar Sep 16 '22 15:09 rrobinett

@rrobinett: Do you still face this issue?

ErinsMatthew avatar Dec 18 '22 13:12 ErinsMatthew

I was able to successfully install and run on all but one Pi, and I think it has the application 'cockpit' installed which uses port 9090 and thus conflicts with Internet Pi. So I think it best for me to close this thread and open another if II have problems after I get physical access to the Pi and can remove cockpit. Thanks for checking

rrobinett avatar Dec 20 '22 14:12 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 May 21 '23 20:05 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.

github-actions[bot] avatar Aug 21 '23 21:08 github-actions[bot]