hosts icon indicating copy to clipboard operation
hosts copied to clipboard

[Suggestion] Cannot add any list to my Pihole. Connection refused.

Open SamuraiCoder opened this issue 2 years ago • 4 comments

Hello, first of all thank you for your effort creating this.

I was experiencing troubles to add your lists to my Pihole through the webconfig. I added the lists through "Group Management" > "Ad Lists"

Then I updated gravity to have all configured and this is what I see and therefore they are not added:

image

There are not different from other pi-hole lists.

But if you do, connected to the pi-hole, a curl command:

curl https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt

It responds something about the certificate not being updated.

The solution is to connect to the pi-hole and do an apt-get update && apt-get upgrade and later those adlist can be added again.

It is something to add to the 'Common issues' section maybe?

Thanks, Sam.

SamuraiCoder avatar Jun 17 '22 19:06 SamuraiCoder

It responds something about the certificate not being updated.

This is curl problem not the lists here. If you're using some Linux flavor i can probably help you navigate that issue. If you're on Windows and Pi-Hole there is using some kind of a build in curl....no idea.

dnmTX avatar Jun 17 '22 19:06 dnmTX

It's a pi-hole with Debian running Linux. There is no issue because I've fixed it by doing this update. So something done on the pi-hole with this update fixed it (probably certs) because running again the same command it downloads the list both curl and pi-hole now.

SamuraiCoder avatar Jun 17 '22 19:06 SamuraiCoder

with this update fixed it (probably certs)

Yep,that's what it was. Nevertheless,depending on Pi-Hole to update curl's certificates is just not very reliable,to say the least. There are easy ways to do it with some simple script and cron. Look it up,i'm pretty sure there are bunch of guides out there.

dnmTX avatar Jun 17 '22 19:06 dnmTX

Thanks for the info @dnmTX. This list is hosted by GitHub actions, so I have no control over the server anyways.

lightswitch05 avatar Jun 18 '22 13:06 lightswitch05