From 25d0df8244201a15900ab5d76aefae6aaa202de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Tue, 21 Dec 2021 22:41:44 +0100 Subject: [PATCH 1/3] Add how to increase PHP memory to FAQ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- docs/main/faq.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/main/faq.md b/docs/main/faq.md index 2e2c26f..6a10a5d 100644 --- a/docs/main/faq.md +++ b/docs/main/faq.md @@ -54,4 +54,32 @@ Ask the list maintainer to convert the IDNs to their punycode representation. Internationalizing Domain Names in Applications (IDNA) was conceived to allow client-side use of language-specific characters in domain names without requiring any existing infrastructure (DNS servers, mall servers, etc., including associated protocols) to change. Accordingly, the corresponding original [RFC 3490](https://tools.ietf.org/html/rfc3490) clearly states that IDNA is employed at application level, not on the server side. Hence, DNS servers never see any IDN domain name, which means DNS records do not store IDN domain names at all, only their [Punycode](https://en.wikipedia.org/wiki/Punycode) representations. +### While loading data from the long-term database you encountered an error + +If requesting a lot of data from the long-term database you get this error + +```code +An unknown error occurred while loading the data. +Check the server's log files (/var/log/lighttpd/error.log when you're using the default Pi-hole web server) for details. You may need to increase the memory available for Pi-hole in case you requested a lot of data. +``` + +**Solution:** + +Increase PHP's memory and restart the server. + +Replace `*` with your installed PHP version (e.g. `.../php/7.3/cgi/...`) + +```bash +sudo nano /etc/php/*/cgi/php.ini +[..] +; Maximum amount of memory a script may consume (128MB) +; http://php.net/memory-limit +memory_limit = 128M +[..] +``` + +```bash +sudo service lighttpd restart +``` + {!abbreviations.md!} From 639f835fa8525fda66274adcded1b63b44127bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Wed, 22 Dec 2021 22:04:56 +0100 Subject: [PATCH 2/3] Be more explicte about memory increase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- docs/main/faq.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/main/faq.md b/docs/main/faq.md index 6a10a5d..cec7e26 100644 --- a/docs/main/faq.md +++ b/docs/main/faq.md @@ -67,7 +67,8 @@ Check the server's log files (/var/log/lighttpd/error.log when you're using the Increase PHP's memory and restart the server. -Replace `*` with your installed PHP version (e.g. `.../php/7.3/cgi/...`) +Replace `*` with your installed PHP version (e.g. `.../php/7.3/cgi/...`) to edit the file. Increase the `memory_limit`. You can use common abbreviation (M= megabyte, G= gigabyte). The amount of memory needed depends on many factors, e.g. availabe system RAM, other processes running on your device, the amount of data you want to process. Do not assign all availabe memory as this can freeze your system. One approache would be to double the limit and check if it might be already sufficient to retrieve the data. If not, add another 128M. +Please consider the possibility that your system does not have enought memory at all to load all the needed data. ```bash sudo nano /etc/php/*/cgi/php.ini From 6eecda90384a2f2a013ee1033e37a16a8adce1d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Wed, 22 Dec 2021 22:07:09 +0100 Subject: [PATCH 3/3] Step-by-step approach MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- docs/main/faq.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/main/faq.md b/docs/main/faq.md index cec7e26..803f9da 100644 --- a/docs/main/faq.md +++ b/docs/main/faq.md @@ -67,8 +67,8 @@ Check the server's log files (/var/log/lighttpd/error.log when you're using the Increase PHP's memory and restart the server. -Replace `*` with your installed PHP version (e.g. `.../php/7.3/cgi/...`) to edit the file. Increase the `memory_limit`. You can use common abbreviation (M= megabyte, G= gigabyte). The amount of memory needed depends on many factors, e.g. availabe system RAM, other processes running on your device, the amount of data you want to process. Do not assign all availabe memory as this can freeze your system. One approache would be to double the limit and check if it might be already sufficient to retrieve the data. If not, add another 128M. -Please consider the possibility that your system does not have enought memory at all to load all the needed data. +Replace `*` with your installed PHP version (e.g. `.../php/7.3/cgi/...`) to edit the file. Increase the `memory_limit`. You can use common abbreviation (M= megabyte, G= gigabyte). The amount of memory needed depends on many factors, e.g. availabe system RAM, other processes running on your device, the amount of data you want to process. Do not assign all availabe memory as this can freeze your system. One approache would be to double the limit and check if it might be already sufficient to retrieve the data. If not, add another 128M, check again, add another 128M,.... +Please consider the possibility that your system does not have enough memory at all to load all the needed data. ```bash sudo nano /etc/php/*/cgi/php.ini