-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
OS Reboot during pihole temporary blocking issue #2020
Comments
With v6 the behavior is: A disabled timer will survive the reboot, but the timer is "forgotten" and blocking is disabled indefinitely. |
Ok, maybe not the best design.. Today I rebooted during a 10 minute pause and I was 3 hours without filtering. It could have been 3 days until I realized. Doesn't make much sense to "forget" and disable something completely just because the system was rebooted. |
Preamble: Usually, a long answer is not what you want. Such answers tent to try to explain you why what you want is not going to happen. This particular answer you're reading here is not that kind of answer - still it's not going to be fixed immediately. TL;DR We will change the behavior to survive restarts but not now. The full story: We discussed this internally and agree that this a kind of design flaw but not a bug as such. The feature was never meant to be used across device or even across service restarts. As such, we don't consider it urgent to change/fix this, moreover, as this is the first report we're seeing in years. This is not saying it will not be changed. During our internal discussion, it came apparent that there are several pitfalls so this needs to be well-tested before it can be released. As we are pretty far with our public Pi-hole v6.0 beta phase, we're rather looking at fixing this in the next release cycle, so v6.1. If everything works out well, this won't be in the too distant future, hopefully not very long after releasing v6.0. Concerning the actual implementation: Summarized: write the time end timestamp to the database, read it on startup. If now < end date restart the timer with the diff. If now >= end date switch the blocking mode and remove the database entry. |
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
Versions
Platform
Expected behavior
I enable a temporary pause of blocking of 10 minutes.
I do a terminal sudo reboot.
When rebooting pihole should check if 10 minutes have passed and resume blocking.
Actual behavior / bug
When rebooting pihole loses the countdown and restarts with filtering permanently disabled. You have to manually go to the dashboard and reenable blocking.
Steps to reproduce
Steps to reproduce the behavior:
1.Set a 1 minute temporary filtering pause on the pihole dashboard
2. Ssh sudo reboot linux
3. Go to the pihole dashboard. The countdown is gone and blocking is disabled for good.
I suggest that when starting the countdown, the countdown end time should be written to the db, so that even if rebooting the countdown can be resumed.
The text was updated successfully, but these errors were encountered: