geerlingguy / internet-pi

Raspberry Pi config for all things Internet.
MIT License
4.32k stars 450 forks source link

Pi-hole and Grafana suddenly stopped working #326

Closed soharddbwarez closed 2 years ago

soharddbwarez commented 2 years ago

So I couldn't get the Grafana page to load on my main computer but that was after Pi-hole suddenly stopped working and I had to revert back to setting the original DNS server on the router config page to be able to load anything.

Very strange thing, one second I was watching a YouTube video and a second later the video stopped and showed the loading animation, so I tried to go back to the YouTube home page and couldn't do that either, then I wanted to load my routers configuration page and couldn't do that either so at first I thought it was my router acting up so I did restart the router and waited a very long 5 minutes or so and it looked to be okay but it wasn't, it was still the same so I opened up VNC to login to my Pi remotely with my main PC and that connection was still working but everything else wasn't even the routers config page still didn't load but I could load it via VNC on my Pi directly which was a real head scratcher.

Ow, yes and on my Pi I still had access to the internet but with my main pc there was no internet access and no access to any of my local devices except the one connection via VNC was still working.

So what I did is revert back to the original DNS server settings on my router and I restarted my computer because that was acting up too since the internet connection was down or the DNS server on the Pi, after I did that I had access to the internet again.

I can now load the router config page again on my main pc, I can also open the Pi-hole page and see that working as before but I'm not using it right now because I'm not sure if it's working again, I don't think so because the Grafana page is still acting up so I first want to figure out how I can get everything working again before I start using Pi-hole again because if that doesn't work pretty much everything stops working and my main pc gets really slow and it drives me crazy when that happens.

Below I've added a copy of the terminal output when I tried to update your internet-monitoring via docker which normally works out great without any issues, however now it produced two errors that I don't have a clue of what that can be or have a solution for it.

pi@raspberrypi:~/internet-monitoring $ docker-compose up -d internet-monitoring_ping_1 is up-to-date internet-monitoring_speedtest_1 is up-to-date internet-monitoring_nodeexp_1 is up-to-date internet-monitoring_prometheus_1 is up-to-date Recreating internet-monitoring_grafana_1 ... Recreating internet-monitoring_grafana_1 ... error

ERROR: for internet-monitoring_grafana_1 Cannot start service grafana: driver failed programming external connectivity on endpoint internet-monitoring_grafana_1 (7b3f60394821a9c9b35ece3489ab1bf4f729d952dd137502885ae5400512c3bb): Bind for 0.0.0.0:3030 failed: port is already allocated

ERROR: for grafana Cannot start service grafana: driver failed programming external connectivity on endpoint internet-monitoring_grafana_1 (7b3f60394821a9c9b35ece3489ab1bf4f729d952dd137502885ae5400512c3bb): Bind for 0.0.0.0:3030 failed: port is already allocated ERROR: Encountered errors while bringing up the project.

I've never seen such errors before so I hope that you have an answer or maybe you can point me in the right direction so I can figure it out on my own but at this point I'm clueless so I need some help with this issue @geerlingguy

Also need help figuring out why Pi-hole stopped working suddenly and how can I make sure that it's running okay before I set my routers config to use Pi-hole again?

soharddbwarez commented 2 years ago

Never mind it fixed itself after doing the update again.

pi@raspberrypi:~/internet-monitoring $ docker-compose up -d Removing internet-monitoring_grafana_1 internet-monitoring_ping_1 is up-to-date internet-monitoring_speedtest_1 is up-to-date internet-monitoring_nodeexp_1 is up-to-date internet-monitoring_prometheus_1 is up-to-date Recreating 26f7c5e64292_internet-monitoring_grafana_1 ... done