-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Pi-hole dashboard shows zero except for domains blocked #191
Comments
Hmm... I get the same behavior, uninstall then reinstall and admin page looks the same as yours... |
Found it! You can blame me for it, too.. https://github.com/jacobsalmela/AdminLTE/blob/master/index.php#L2 The file it's looking for does not exist, since I changed the files when I made the whitelisting changes (there was no need for Interestingly, simplist fix is to change |
Would it be hard to implement the API as a json file, and then have that available for calls, so the Admin page would populate from the json files? (Thinking about other things that are possible with a JSON API...) |
Submitted a pull for AdminLTE that should fix it. Not tested as I'm not set up at work to try it out. The ultimate goal should be that |
I was just thinking that with JSON it would be extensible. We could redo the chronometer to pull from the JSON file for display and allow for more types of displays... |
Might as well keep it in My next "when I'm bored" project is to get it working on my keyboard display! |
You're thinking what I was thinking, except I was thinking more of a 16x2 LCD... |
@dschaper I'm working on a script tonight that outputs exactly the same as |
I look forward to your changes and the PR's. How are you doing with learning Git? If you can, I highly suggest getting a trial account with Lynda.Com and doing the Git Essentials Training, it's a very good course that covers both Git and GitHub. It starts a little dry but covers a ton of essentials! |
I'm learning by trial and error, I find it much more effective than watching a video! Like, if I have a history of the mistakes I've made I can see where I've gone wrong and not make them again. I'm sure it gives others a bit of a giggle, too. :) You guys have been well humored about my messy commits, I'm sure others may not be! But they are getting better! |
They are indeed getting better. The thing I like about Lynda is that it's not just watching videos. You actually set up a Git Repo and run all the commands and test on your workstation. So it's like a tutor giving you tips, but you do the work. (I guess you could just watch the videos but you wouldn't get much out of the course.) GitHub has a training course too. And then there is http://gitimmersion.com/ |
see #193 . Some cleverness will need to be done with the website to consume this. |
Are you up to the cleverness challenge? (I'm just a beginner with html and front end design work...) |
Fixed by AdminLTE #15 |
Just did a full new installation and even ran the updateDashboard.sh but the bug still seems to occur on a fresh installation. Is the fix pushed to live yet? As an update, the API also does not know the correct numbers |
Sure! Step 1: pi@pi-hole:/usr/local/bin $ chronometer.sh -j Checking for the 2 files, will update in a sec |
Both files matched. To be 100% sure I swapped the linked copy with the one in the /admin/ folder to be sure, that did not help. |
I do see that /var/log/pihole.log (which is populated) is owned by dnsmasq, not sure if that has always been the case in previous installations. |
OK, A slight oversight on my part there in percentage calculation, as I'm not checking for dns_queries_today being 0. (calculation is That explains why your percentage is blank, but that doesn't effect anything else. What it doesn't explain though is why I've just run a fresh install myself and it's working fine..
I'll check mine. Is there anything in your |
I haven't tried the script, I just |
pi@pi-hole:/usr/local/bin $ updateDashboard.sh |
don't forget |
Ah, thanks, missing that one. |
also, does your |
Getting a cup of coffee... Engaging brain... |
I've stayed an hour and a half later at work than I should have... whoops! I'll give it some thought on the drive home |
Okay, my admin is working now... |
Excellent...! as for the root ownership stuff, that wasn't an issue before, so something has changed somewhere.. perhaps @jacobsalmela can point us in the right direction. More to the point though, what is @DonLexos doing differently from us? If our Admin pages are working and the chrono -j output isn't falling over..... This is new:
I didn't have to sudo it before. |
Interestingly running |
Do you want to open a new issue for that one? |
I'll do that when I get home once I've given it some thought. The question is.. SHOULD those files all be owned by root after install? |
I don't think so, they should be owned by Pi for now. In the future they will all be owned by the pihole user, or which ever user Pi-Hole operates under. |
The answer may lay in these commits by @jacobsalmela This is the first time I've done a fresh install since then. OK OK I'm going home now!! |
Ok well tried the following: All files in /var/www/html/admin are owned by root again, Admin console still does not work. Could it be it tries to write somewhere that is not allowed? |
Did an installation over the current one, notices a few curl errors along the process: Not sure if it auto-retries, but raw.githubusercontent.com resolves fine (from the pi) when I dig the domain. Odd. |
I don't think |
Well checked the install script, only files that are downloaded from batch are the install scripts, seems to go wrong here
But only the first two. . .and even when I redo the curl and get the files that does not resolve it . . Did the reboot, did not change anything in my pi admin interface |
I can also attempt a clean installation if that helps, this is a Raspbian Jessy Lite system, not sure if the outcome would be the same. I installed Jessy, fundled with the keyboard settings, did an apt-get update/upgrade and then ran the installer. Whitelisted google analytics, not much else. |
Doing a |
If you want to try a clean install, go ahead. It shouldn't matter if you're using the lite or the full version, just a personal preference really. I use the lite because I run headless on a Class 4 card and it's quicker to reflash the smaller image. |
Well, new installation Jese Lite, no apt-get anything (since the pi script does that when you install it), so vanilla installation, ran the script, reboot, it works, including the pi-hole admin console... intended behavior, but really no clue what I did different than before, other than I reinstalled on a different SD card which I doubt could be it. |
Yeah, I don't know how a change in uSD cards could be a difference. I'll go ahead and close this one out, but if you run into issues again we can re-open in the future. Thanks for the assistance though! |
Don't forget to resize your root partition though. |
Oh I have, have to run raspi-config anyway to get out of the EN keyboard (and timezone) and set it to US intl. As far as I can tell it works :-) Thanks for your help guys! |
I am having this problem as well... It started after one of my recent upgrade/update and pihole reinstall for an upgrade. But, I am not exactly sure when it broke. It will run fine for a few hours and then just stops reporting stats. I have also done an uninstall and reinstall. admin/api.php does return valid information as well. |
I haven't been able to replicate this, but I have had about five people say their dashboard shows zeroes, even though
tail -f /var/log/pihole.log
shows that queries are working and getting blocked. Please let me know if this is happening to you.The text was updated successfully, but these errors were encountered: