Can't download ad-block lists

Expected Behaviour:

When i install Pi-hole it should download all the lists chosen by default.

Debug Token:

I never got pihole -d working, i tried reinstalling over 10 times Pi-hole on my RPi3B+ (using also different OSs, such as DietPi or Raspbian, which is where i'm on now).

Actual Behaviour:

_It doesn't happen.

  [i] Pi-hole blocking is enabled
  [i] Neutrino emissions detected...
  [✓] Pulling blocklist source list into range

  [i] Target: raw.githubusercontent.com (hosts)
  [✓] Status: Retrieval successful

  [i] Target: mirror1.malwaredomains.com (justdomains)
  [✗] Status: Connection Refused
  [✗] List download failed: no cached list available

  [i] Target: sysctl.org (hosts)
  [✓] Status: No changes detected

  [i] Target: zeustracker.abuse.ch (blocklist.php?download=domainblocklist)
  [✗] Status: Connection Refused
  [✗] List download failed: no cached list available

  [i] Target: s3.amazonaws.com (simple_tracking.txt)
  [✗] Status: Connection Refused
  [✗] List download failed: no cached list available

  [i] Target: s3.amazonaws.com (simple_ad.txt)
  [✗] Status: Connection Refused
  [✗] List download failed: no cached list available

  [i] Target: hosts-file.net (ad_servers.txt)
  [✗] Status: Connection Refused
  [✗] List download failed: no cached list available

  [✓] Consolidating blocklists
  [✓] Extracting domains from blocklists
  [i] Number of domains being pulled in by gravity: 58801
  [✓] Removing duplicate domains
  [i] Number of unique domains trapped in the Event Horizon: 47082
  [i] Nothing to whitelist!
  [i] Number of regex filters: 0
  [✓] Parsing domains into hosts format
  [✓] Cleaning up stray matter

  [✓] Force-reloading DNS service
  [✓] DNS service is running
  [✓] Pi-hole blocking is Enabled```_

What is the contents of your /etc/pihole/adlists.list file?

The /etc/pihole/adlists.list must not contain any blank lines, as far as I know.

pi@PiHole:/etc/pihole $ cat adlists.list 
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt

Yeah, there is a condition that is along those lines that causes download issues.

I think also if there is a # followed by a space then a domain. (There is an issue on Github somewhere but I cannot find it!)

That all said. @Tommaso_Chiti's adlists.list file looks fine.

What issue do you get when trying to run pihole -d?

Any it doesn't seem to be my case. That's very weird though :expressionless:

Wait a minute sir. :slight_smile:

Thanks, I'll look at that. In the mean time.. this is going to sound like a silly question. Is the Date and Time correct on your Pi?

Actually. It's not correct at all from the snippet you just sent over:

*** [ INITIALIZING ]
[i] 2018-11-14:08:23:26 debug log has been initialized.

That's another point: i never got it working fine. It's still in 2018. I also thought it could be that generating the issue. NTPD, NTP, Systemdatctl have never worked.

Yep, that's exactly why you're seeing issues.

Certificate checks can fail if the system time is incorrect... certs are generally valid for a certain period and if your system time is outside of that period then the check will fail!

I thought there was an option in raspi-config to configure the timezone/NTP settings, but I could be wrong.. don't have a Pi with me right now!

Maybe some useful info here: raspbian - How to force NTPD to update date/time after boot? - Raspberry Pi Stack Exchange

1 Like

Perfect. Now Debug Logging also works. Thank u so much :smiley:

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.