to not get spammed with msg "FastCGI-stderr: PHP Warning: socket_read(): unable to read from socket [104]: Connection reset by peer in /var/www/html/admin/scripts/pi-hole/php/FTL.php on line 107"
Actual Behaviour:
/var/log/lightttpd/error.log is full of the message above until the disk is full and many services including pihole are crashing
note: the debug token is during the short time after a restart where the problem is NOT existent, because I cant generate a token afterwards
Oh .... How heavily loaded is the machine this Pi-hole is running on? I'd guess that there are either dozens of daemons offering services or there is at least one daemon that is very wasteful with file handles.
You are trying FTLDNS? I will push a fix (increase the maximum capacity from 40 to 255) therein.
sorry - this is another account, but I'm the OP
the mashine isnt doing anything apart from pihole and dnscrypt-proxy - its a dedicated vm only for this purpose. It could give it more ressources but I guess it should be sufficent already
root@piDNS:/home/strn# free
total used free shared buff/cache available
Mem: 504260 198232 8680 18436 297348 274708
Swap: 0 0 0
Actually I don't know what is the cause for such a high number of open file descriptors, maybe it is cause by your VM? Anyhow, can you confirm that it is fixed in the most recent version?
is there a way to display the actual file descriptors and its related processes or something like that?
It is working at the moment, I'll give an update here if (or when) its failing again
edit: by the way, I've commented #log-facility=/var/log/pihole.log in /etc/dnsmasq.d/01-pihole.conf because I'm sending the log to an external logstash server. Is FTL somehow dependend on the actual content of /var/log/pihole.log (because it is empty as everything gets to /var/log/syslog)
Sorry, I missed you question here. No, we do not depend on anything here. You are free to send them somewhere else or completely disable them with FTLDNS.
We can look into this more closely if you are again experiencing errors.