-
-
Notifications
You must be signed in to change notification settings - Fork 481
Don't get ansible installed #100
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
Comments
This seems to be an issue where the Python version you have installed on your Pi might not be set up correctly or may be missing something. Did you install Python 3 using |
which pyton3 gives me - /usr/local/bin/python3 |
It's probably issue with your SSL certificate. The connection from your pi to piwheels/pypi/.etc is broken because of that. You need to fix that first before retrying. You should also have issue installing other stuff using pip. |
Guess what happened... I figured if it's a python issue just try to reinstall python right? Well, I shouldn't have done that because when I did purge python3 it broke my whole system, it's kinda funny now, I can laugh about it so I'm ok. |
Hahahah, you don’t have to reinstall, you can just install another version and link the python3 command to it. |
So, I have some news... Here's what happened, I did step 1, python tells me I already have the latest version installed, then I did the "Everywhere" step to install ansible which was successful and then I did step 3 and got the following error: Installing collected packages: packaging, resolvelib, ansible-core, ansible Then I tried to do the playbook and this happened: pi@raspberrypi:~ $ ansible-playbook main.yml So, now I don't know where it is installed, I can't find the main.yml file anywhere in the directories provided in the error messages. So I'm stuck again. |
You need to git clone this repository, and there will be a folder called
internet-pi, main.yml is in it. Follow the steps on this repo.
Ricardo ***@***.***>于2021年7月1日 周四下午6:21写道:
So, I have some news... Here's what happened, I did step 1, python tells
me I already have the latest version installed, then I did the "Everywhere"
step to install ansible which was successful and then I did step 3 and got
the following error:
Installing collected packages: packaging, resolvelib, ansible-core, ansible
Successfully installed ansible-4.2.0 ansible-core-2.11.2 packaging-20.9
resolvelib-0.5.5
***@***.***:~ $ 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, 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.
ERROR! The requirements file '/home/pi/requirements.yml' does not exist.
***@***.***:~ $ 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, 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.
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://galaxy.ansible.com/download/ansible-posix-1.2.0.tar.gz
to
/home/pi/.ansible/tmp/ansible-local-299338d5mhgwv/tmpgrldn5fc/ansible-posix-1.2.0-20au9qq2
Installing 'ansible.posix:1.2.0' to
'/home/pi/.ansible/collections/ansible_collections/ansible/posix'
Downloading
https://galaxy.ansible.com/download/community-docker-1.8.0.tar.gz to
/home/pi/.ansible/tmp/ansible-local-299338d5mhgwv/tmpgrldn5fc/community-docker-1.8.0-iyt2770r
ansible.posix:1.2.0 was installed successfully
Installing 'community.docker:1.8.0' to
'/home/pi/.ansible/collections/ansible_collections/community/docker'
community.docker:1.8.0 was installed successfully
Then I tried to do the playbook and this happened:
***@***.***:~ $ 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.
ERROR! the playbook: main.yml could not be found
So, now I don't know where it is installed, I can't find the main.yml file
anywhere in the directories provided in the error messages. So I'm stuck
again.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#100 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANJJ4VDLCSIPI2GYN5VZO73TVTZ53ANCNFSM47SKWPBA>
.
--
Regards
Yuxiang Chi
|
Thank you very much, I copied the directory to my pi and started the command again from within the directory and now it is installing. I do get the python 3.8 requirement warning still, is there a way to get the latest python version installed in an easy way? I'll see how far I come now and when I have more questions I'll come back here. |
The warning is fine. You can follow some instructions to download the source code and make install it. But it is not something you are looking for. In short, Python 3.7 is good enough for now. Or you can try to install something like Anaconda, it comes with python 3.8. |
It's Working!
Okay thanks, I'll leave it be and keep using Python 3.7 Good news by the way, I already had the zip file downloaded to my main pc so I copied it to my Pi, then I tried the playbook again and got the expected error which is mentioned in the readme so I did a reboot and started over new and this time everything got installed the right way and it is working. Now when I open my internet browser on my main computer and go to the Pi's IP address I see the Pi-Hole page and I can login with the password that I changed in the config.yml file so that is working alright, however I made a booboo by forgetting to change the internet monitoring configuration password, is there a way to change that afterwards? I'm pretty happy that I got it installed and it's now working at least. |
you should be able to change it any time. |
@soharddbwarez - For Grafana (the monitoring UI), the password in |
So Grafana stopped working and it was hogging all the resources from my Pi, it was so bad that I had to disable pi-hole and return back to my router for the DNS server to be able to get online. I don't know what happened but I can't get the grafana page to open up anymore and I don't know how to get it restarted or whatever I need to do to get it working again, I've tried to run the playbook again to reinstall the whole thing but I get a warning that I already have an instance of grafana running and I don't know how to shut it down and the installation basically failed on that part so now I can't use anything anymore, I don't trust to set pi-hole as the DNS server as long as grafana isn't running as it should. What should I do now to fix it? |
Never mind for the last post, it's working again. Even though I got the warning I got it fixed, I found the readme file in the internet monitoring folder and I did the Quick start command: docker-compose up -d I also changed the Raspberry Pi config to use less graphic memory since I don't do anything that needs a lot of graphical memory anyway. Changed it from 256MB to 96MB. |
One question remains: How do I get the latest version of grafana installed? |
Can you run |
And last Ow yes, turns out that I still don't know how to get the latest version of Grafana installed, the instructions on the website using docker turned out to install a complete new version next to the one already running so I removed that container again so that I'm only running the one version of yours. Back to square one. It would be great if you can tell me how to update Grafana after I get it running again that would be appreciated very much. |
UPDATEFirstI tried to get Grafana fixed today again because I found that Pi-hole had an update so that was a great way for me to see if I'm doing this the right way now. This is what I did, on my Pi I opened the terminal, then navigated to the pi-hole directory, checked if the docker-compose.yml file exists which it did, also checked what's in the file and if that data is correct and it was. Then I run the command So, when that finished I checked on my main computer if I'm running the latest version of pi-hole now, and I do so it seems to me that I'm doing this updating the right way now using docker-compose because everything did go to plan, at least for pi-hole. NextI navigated to the "internet-monitoring" directory to see if the docker-compose.yml file exists, and it did. I skipped to look inside the file assuming everything is as it should. Then I did the same as before with pi-hole using the command LastWell, everything worked and got updated the right way but Grafana still doesn't work and gives me the same errors as before the update which you can see below, I made 2 screenshots after doing the first two commands that you asked me to do and the last command I copied and pasted the error messages so it's a bit easier for you to read. If I just copy and paste the text it shows up as gobbledygook.
Error: ✗ Get "https://grafana.com/api/plugins/repo/flant-statusmap-panel": context deadline exceeded (Client.Timeout exceeded while awaiting headers) Error: ✗ Get "https://grafana.com/api/plugins/repo/flant-statusmap-panel": dial tcp: lookup grafana.com on 127.0.0.11:53: read udp 127.0.0.1:56152->127.0.0.11:53: i/o timeout (Client.Timeout exceeded while awaiting headers) I don't know what these errors mean or how to fix it so I really need some help with this please. |
FIXED THE ISSUE MYSELFSo after some digging in the issues from other people regarding the same issue I found the solution for the problem. I don't know why this is happening but I've read that I'm not the only one with the exact same issue and you commented something regarding #8 and to fix the issue I should find the following file: "etc/resolvconf.conf" and uncomment the following: "name_servers=127.0.0.1" and after doing a reboot Grafana came back to life for me so it totally worked. But why does Grafana work normally at first when it's just installed and after a couple of days without me doing anything, not even a reboot and something that I'm unaware of must have changed the file and commented out that one specific line that needs to be uncommented again manually. I hope this isn't something persistent, I don't mind when it happens after an update or something now that I know what I need to do to fix it again but if it keeps changing after a couple of days without me doing anything or the Pi not being rebooted in the meanwhile that's really strange and unacceptable. If it happens again I'll let you know when it happened and the reason what caused the issue to return if you want otherwise you can close this issue. Best regards, |
Grafana is still working after a couple of daysHi @geerlingguy What I don't understand is that I got the same issue as those people regarding #8 but I'm glad that the fix that you suggested to them is working for me and it seems that it fixed it permanently for now, I have to see what happens after an update but as long as the *.conf file isn't changed I think it's going to be okay. And last thing I want to mention is that Grafana does give me a new warning every time when I load the main page of internet-connection which is the following: Do you know how to fix that? Best regards, PS. I read your latest update of the README file but the part where you discus updating you only mention Pi-hole, I think you should add instructions for updating the other parts of software from your playbook which is Grafana, nodeexp, Ping, Speedtest and Prometheus need to be added, I'm new to it all and one of the first things that I wanted to do is getting everything updated to the latest version especially Grafana, you know why... |
The "Annotation Query Failed" error is actually being tracked in #192; For that issue, there is a workaround by copying the updated lines referenced here: There is an issue with that latest version of Grafana that'll have to be fixed by the Grafana Developers. |
@802compute Thanks for clearing that up... I'll keep running the latest version of Grafana because it's not something crucial for the software to work I think and it doesn't bother me that much. Also it took me too much time and effort to get it all running correctly except the little message that keeps popping up and if others are already complaining about it and the Grafana developers are aware of the problem I think they would have a solution for it soon enough. And last thing I wanted to show is that Pi-hole and Grafana are still running after all the above issues, made a couple screenshots to show you below: Although you recommend a Raspberry Pi 4 to run your internet-monitoring, I've got it running on my Raspberry Pi 3B+ without any problems and I don't have to worry about the Pi slowing down my internet connection because as you can see on the Grafana Dashboard Screenshot my internet connection is only around the 20Mbps download and around 2Mbps upload which is the maximum that the ISP can deliver here at home via ADSL, I don't watch any 4K videos and I don't have many different devices that need the internet at the same time so I haven't run into the issues that come with that. I do have my Raspberry Pi 3B+ overclocked pretty high and very specifically using settings that turned out to be very stable for me and I've allocated less memory to the graphics on the Pi since I'm not doing anything with that except every once in a while I'm managing the Pi remotely via the VNC server which is the only graphic thing I'll ever run on my Pi. Last thing I wanted to mention is that you @geerlingguy are the first person that I started to sponsor here on GitHub since I'm using the internet-monitoring software from you and I appreciate the work that you've put into this project. |
@soharddbwarez - Thank you SO much! I love to see other people benefit from the work I do, and the support means a ton to me. |
The message in Grafana that I mention in an earlier post went away for me, I haven't done anything and didn't do an update. |
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. |
This is what I see when I want to install ansible on my Raspberry Pi 3, and yes I commented out and uncommented the right file and changed the ip address to my pi and still nothing.
I'm also logged in over SSL and have it installed but it tells me that the module in python isn't available, I don't get what's going wrong.
pip3 install ansible
Defaulting to user installation because normal site-packages is not writeable
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
Could not fetch URL https://pypi.org/simple/ansible/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/ansible/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/ansible/
Could not fetch URL https://www.piwheels.org/simple/ansible/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='www.piwheels.org', port=443): Max retries exceeded with url: /simple/ansible/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement ansible (from versions: none)
ERROR: No matching distribution found for ansible
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not fetch URL https://www.piwheels.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='www.piwheels.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
The text was updated successfully, but these errors were encountered: