pi-hole / pi-hole

A black hole for Internet advertisements
https://pi-hole.net
Other
48.68k stars 2.68k forks source link

Admin page (and any locally served page) slows considerably. #1917

Closed tomose closed 6 years ago

tomose commented 6 years ago

In raising this issue, I confirm the following: {please fill the checkboxes, e.g: [X]}

How familiar are you with the the source code relevant to this issue?:

{Replace this with a number from 1 to 10. 1 being not familiar, and 10 being very familiar}


Expected behaviour:

{A detailed description of what you expect to see}

Actual behaviour:

{A detailed description and/or screenshots of what you do see}

Steps to reproduce:

{Detailed steps of how we can reproduce this}

Debug token provided by uploading pihole -d log:

{Alphanumeric token}

Troubleshooting undertaken, and/or other relevant information:

{Steps of what you have done to fix this}

  • {Please delete this quoted section when opening your issue}
  • You must follow the template instructions. Failure to do so will result in your issue being closed.
  • Please submit any feature requests here, so it is votable and trackable by the community.
  • Please respect that Pi-hole is developed by volunteers, who can only reply in their spare time.
  • Detail helps us understand and resolve an issue quicker, but please ensure it's relevant.
  • This template was created based on the work of udemy-dl.

Debug token: 80ugeeu6xi

sudo tail /var/log/lighttpd/error.log 2018-01-15 17:05:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 137 2018-01-15 17:05:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=netmarbleslog.netmarble.com&bp): failed to open stream: HTTP request failed! in /var/www/html/pihole/index.php on line 136 2018-01-15 17:05:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 137 2018-01-15 17:05:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 137 2018-01-15 17:05:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=netmarbleslog.netmarble.com&bp): failed to open stream: HTTP request failed! in /var/www/html/pihole/index.php on line 136 2018-01-15 17:05:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 137 2018-01-15 17:05:23: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 137 2018-01-15 17:05:24: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=netmarbleslog.netmarble.com&bp): failed to open stream: HTTP request failed! in /var/www/html/pihole/index.php on line 136 2018-01-15 17:05:24: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 137 2018-01-15 17:05:24: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 137

I blocked "netmarbleslog.netmarble.com" (without quotes) using the black list "exact" function. This is while the program that was contacting that domain was still running on another computer on the network, and that computer used the pihole as its DNS.

At some point after blocking it, I noticed the admin page was terribly slow. Rebooting the pi and changing a number of settings (aside from unblocking that domain) had no effect. Any page that the pi/lighttpd served was slow.

Eventually I looked at the error logs and noticed it was full of what you see above. Decided to finally close out the program and suddenly, with no other actions taken, the pihole admin page was super responsive again.

So far, with the program running the issue has not returned. It's been about an hour since I restarted the program and gotten my page load times reduced.

I should also mention, I reinstalled raspbian and pihole on a new sdcard, fresh and got this same issue once I blocked that domain while running the program. So it's recreatable in that sense. I just thought my old install had shit the bed.

tomose commented 6 years ago

4 hours after rebooting the program (not pihole or the pi, but the program on the other computer), no slow down.

4 1/2 hours after rebooting the program (+30 min from the above), slow downs.

Error log once again populated with many lines like this: 2018-01-15 19:35:13: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 137 2018-01-15 19:35:13: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=netmarbleslog.netmarble.com&bp): failed to open stream: HTTP request failed! in /var/www/html/pihole/index.php on line 136

AzureMarker commented 6 years ago
  • You must follow the template instructions. Failure to do so will result in your issue being closed.

I added the issue template back to your post

tomose commented 6 years ago

Thank you, daddy.

dschaper commented 6 years ago

We provide free support, abusing the developers will not be tolerated.