After midnight the logs fail to flush thus throwing an error while attempting to view the log. I have to manually flush in order to get the logs to work again.
I've enabled mail on my pi-hole (see howto section 4.8). as a result I'm getting the following mail (both for "pihole flush" and "pihole updateGravity"):
The problem is the directive in the first line of all sh scripts: #!/usr/bin/env bash
It hasn't changed from earlier releases (2.9.5) but for some reason it doesn't work anymore.
For now, you will have to run the gravity update (pihole updateGravity - weekly) and the log flush (pihole flush - daily) yourself