The issue I am facing:
This is the weirdest thing, I understand it might be an edge-case but possibly this could be fixed. Would be great if someone could verify this...
I have created a group called Focus
A blocklist "Distractions" with social media / news etc is created and retrieved 'raw' from Pastebin.
This list, Distractions, is assigned to "Focus" group only - not General group.
A number of machines are assigned to both the (1) Focus and (2) Default groups from Group Management / Clients settings page.
When I activate the Focus group (under Group Management) all URL's on the "Distraction" list is blocked on machines assigned to the Focus group. This is expected behavior. Great!
Unexpected behavior: If I (1) disable the group Focus in admin interface, and then (2) Update all blocklists (manually with pihole -g or with the scheduled overnight update) the blocking is not activated when I later enable the Focus group.
The group "Focus" is green and Enabled, but blocking of sites on the Distractions list is not happening.
I noticed that when running pihole -g the Distractions list is not retrieved if the "Focus" group is disabled. It is only retrieved if the group is enabled. Possibly related.
Solution: (1) Enable the group "Focus" and (2) Retrieve all blocklists. The Enabled/Disabled toggle on the group Focus now works as expected and sites are blocked/allowed.
Theory: Blocklists assigned to groups disabled when adlists are refreshed/retrieved can not be activated by enabling the group at a later time.
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
I can reproduce it.
I need to check the code but I guess it only downloads lists that are enabled and in at least one group that is enabled. It kind of makes sense to download only lists that are currently in use.
On the other hand I can see that this is confusing and uses expect all list that are enabled should be downloaded.
A new adlist is added to pi-hole and assigned to a group and the group status is active.
All adlists are manually refreshed pihole -g - the new adlist is retrieved and processed
A number of clients are added to the active group.
Blocking works like a dream for all clients in the group. Great.
Then...
In the evening I disable the group in the admin interface - no sites from the newly added list for clients in the group are blocked. Expected and great.
pi-hole updates all adlists overnight automatically/on schedule while I'm sleeping.
Time to go to work and kill all distractions. I enable the group.
Surprisingly no sites from the adlist attached to the group are blocked. Not great.
This is what I think why it should be fixed: URL-blocking for the group is disabled when pi-hole updates all the lists and the group is disabled. Switching the group to Enabled does not active the adlist.
The list is "Status: active" in the admin interface and the group is Active, but no sites/ads are blocked.
Expected is that when I activate the group the adlists attached to the group are activated, this does not happen in the above scenario.
Coin drop. The DB is rebuilt from downloaded & cached & enabled adlists.
Adlists assigned to disabled groups are not pulled into the new DB, even if they are cached/available.
I see the problem - always pull every list available in the admin interface?
I'd say... pull them if status is Enabled on list-level in Group Management / Adlists.