[SUPPORT] pihole for unRaid - Spants repo


898 posts in this topic Last Reply

Recommended Posts

Argh. Ran through the excellent tutorial and had no success. Can not access the webUI. Got the following log. Have tried setting key 5 (interface) to both eth0 and br0, no luck. Have bonded interface (active balanced 1) with bridging enabled. Docker is set up with separate IP (different from server). Any help GREATLY appreciated!

 

EDIT: I notice on some other startups (from other people), there's this line but it doesn't show up on my install (which I've now tried re-installing, no difference)

Pi-hole blocking is enabled

 

LOG

------------------

 

s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 01-resolver-resolv: applying...
[fix-attrs.d] 01-resolver-resolv: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 20-start.sh: executing...
::: Starting docker specific checks & setup for docker pihole/pihole
WARNING Misconfigured DNS in /etc/resolv.conf: Two DNS servers are recommended, 127.0.0.1 and any backup server
WARNING Misconfigured DNS in /etc/resolv.conf: Primary DNS should be 127.0.0.1 (found 127.0.0.11)

nameserver 127.0.0.11
options ndots:0
Existing PHP installation detected : PHP version 7.0.33-0+deb9u8

Installing configs from /etc/.pihole...
Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
chown: cannot access '': No such file or directory
chmod: cannot access '': No such file or directory
chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory
::: Pre existing WEBPASSWORD found
Using custom DNS servers: 1.1.1.1 & 1.0.0.1
DNSMasq binding to default interface: eth0
Added ENV to php:
"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
"ServerIP" => "192.168.15.2",
"VIRTUAL_HOST" => "192.168.15.2",
Using IPv4
::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
::: Testing pihole-FTL DNS: FTL started!
::: Testing lighttpd config: Syntax OK
::: All config checks passed, cleared for startup ...
::: Docker start setup complete
::: Pre existing WEBPASSWORD found
Using custom DNS servers: 1.1.1.1 & 1.0.0.1
DNSMasq binding to default interface: eth0
Added ENV to php:
"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
"ServerIP" => "192.168.15.2",
"VIRTUAL_HOST" => "192.168.15.2",
Using IPv4
::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
::: Testing pihole-FTL DNS: FTL started!
::: Testing lighttpd config: Syntax OK
::: All config checks passed, cleared for startup ...
::: Docker start setup complete
[✗] DNS resolution is currently unavailable
[✗] DNS resolution is currently unavailable

Edited by eubbenhadd
added info
Link to post
  • 3 weeks later...
  • Replies 897
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

See Spaceinvader One's setup video here:        I wrote the template that pulls in the Official Docker Container from PiHole. I swapped over from my unofficial one a long

Hi, I wanted to use this pihole docker as my second dns server, i already have a hardware raspberry pi as my main pihole dns, but having a backup is always good. I was wondering how i could

I just wanted to share a trick I used to have hostnames show up in the Pihole Dashboard for my local devices instead of IP addresses. Like this:     First make a copy of the /etc/

Posted Images

Could use some help - 

 

Since Pihole still doesn't nativly allow compressed lists I need to run a sudo command after each restart.

 

But as a Linux infant I have no idea how to inject - sudo sed -i 's/curl -s/curl --compressed -s/' /opt/pihole/gravity.sh

Link to post

I found a script I'd like to use with this plugin but, need some help to determine the path locations it points to.  The only one that has me stumped is the TEMP_DB.  Any suggestion on where it would be located?  I've found the others in the appdata folder.

 

Paths:

TEMP_DB="/tmp/temp.db"

PIHOLE_ROOT="/etc/pihole"

PIHOLE_FTL="file:$PIHOLE_ROOT/pihole-FTL.db?mode=ro"

GRAVITY="file:$PIHOLE_ROOT/gravity.db"

 

https://github.com/yubiuser/pihole_adlist_tool/blob/master/pihole_adlist_tool

Link to post

Hi all,

Not sure what's happened here, successfully updated to 5.2 without issue, went to look at my lists just now and seeing two different issues:

 

1/ This error in Group Management. Do I need to go through the JSON debugging process or is something else at play here?

751306097_ScreenShot2020-08-22at8_27_38pm.png.1668e19e925f1e500e7fdbeae27b81c1.png

 

2/ This error in settings.

1496812635_ScreenShot2020-08-22at8_29_21pm.png.7f3f8af5c17611c578fc87502d543f7b.png

Both were not apparent a few days ago and I've not changed anything in my docker or Pi-Hole config that I'm aware of. All help appreciated, thanks!

ETA: Tried to restart the docker, got execution error 403 and now cannot start the docker.

ETA again: A full restart of my unRAID box has me up and going. I'm glad, but given no changes and no errors on my flash drive or storage drives, I'm thoroughly confused as to what happened and why. Explanation may be helpful for others beyond just myself.

Edited by pcss
Additional info
Link to post

image.thumb.png.2d262d9efe39f478cb9a5a14be558f96.png

Hi could you guys explain to me why my pihole is not blocking any queries? When I go normal browsing, I can still see ads. I followed the instruction video by the SpaceInvaderOne. For you information, I have let's encrypt docker running and it is using port 443. Does this affect the Pi-Hole?

Edited by Wong
Link to post
On 7/27/2020 at 8:44 PM, eubbenhadd said:

Argh. Ran through the excellent tutorial and had no success. Can not access the webUI. Got the following log. Have tried setting key 5 (interface) to both eth0 and br0, no luck. Have bonded interface (active balanced 1) with bridging enabled. Docker is set up with separate IP (different from server). Any help GREATLY appreciated!

 

EDIT: I notice on some other startups (from other people), there's this line but it doesn't show up on my install (which I've now tried re-installing, no difference)

Pi-hole blocking is enabled

 

LOG

------------------

 

s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 01-resolver-resolv: applying...
[fix-attrs.d] 01-resolver-resolv: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 20-start.sh: executing...
::: Starting docker specific checks & setup for docker pihole/pihole
WARNING Misconfigured DNS in /etc/resolv.conf: Two DNS servers are recommended, 127.0.0.1 and any backup server
WARNING Misconfigured DNS in /etc/resolv.conf: Primary DNS should be 127.0.0.1 (found 127.0.0.11)

nameserver 127.0.0.11
options ndots:0
Existing PHP installation detected : PHP version 7.0.33-0+deb9u8

Installing configs from /etc/.pihole...
Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
chown: cannot access '': No such file or directory
chmod: cannot access '': No such file or directory
chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory
::: Pre existing WEBPASSWORD found
Using custom DNS servers: 1.1.1.1 & 1.0.0.1
DNSMasq binding to default interface: eth0
Added ENV to php:
"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
"ServerIP" => "192.168.15.2",
"VIRTUAL_HOST" => "192.168.15.2",
Using IPv4
::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
::: Testing pihole-FTL DNS: FTL started!
::: Testing lighttpd config: Syntax OK
::: All config checks passed, cleared for startup ...
::: Docker start setup complete
::: Pre existing WEBPASSWORD found
Using custom DNS servers: 1.1.1.1 & 1.0.0.1
DNSMasq binding to default interface: eth0
Added ENV to php:
"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
"ServerIP" => "192.168.15.2",
"VIRTUAL_HOST" => "192.168.15.2",
Using IPv4
::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
::: Testing pihole-FTL DNS: FTL started!
::: Testing lighttpd config: Syntax OK
::: All config checks passed, cleared for startup ...
::: Docker start setup complete
[✗] DNS resolution is currently unavailable
[✗] DNS resolution is currently unavailable

i'm here with the same problem, and a virtually identical log, except my pihole is set to 192.168.1.2. i'm also not able to access web ui at all

 

I've seen where some people said to try chmod'ing the appdata folder, i tried it to no avail. i've also tried reverting back to v4.1 and chmod'ing, still no luck. my unraid network settings have DNS pointing to -> 192.168.1.2 (pihole) and then ->1.1.1.1. I've had it working fine for about a year until recently i needed to do a fresh install and haven't gotten it working since then. here's a picture of the container settings, would love it if anyone could help us out with this

1582452463_2020-08-2611_12_28pm.thumb.png.31c7f34afcaccf816ce60ac398e229a8.png

 

 

Link to post

I've ran pi hole in docker, which worked great. Now a couple of weeks ago, it stopped working after a restart and I don't know what happened. It comes down to Unraid server is running dnsmasq and keeps UDP 67 busy. I didn't upgrade so it must be settings of VM related I guess. Stopped all docker apps but that didn't help.

 

"listen udp 0.0.0.0:67: bind: address already in use."

 

Unraid version: 6.8.3

netstat -nlp | grep "0.0.0.0:67"
udp        0      0 0.0.0.0:67              0.0.0.0:*                           4326/dnsmasq  
lsof -p 4326
COMMAND  PID   USER   FD      TYPE             DEVICE SIZE/OFF  NODE NAME
dnsmasq 4326 nobody  cwd       DIR                0,2      420     2 /
dnsmasq 4326 nobody  rtd       DIR                0,2      420     2 /
dnsmasq 4326 nobody  txt       REG                0,2   332920  6696 /usr/sbin/dnsmasq
dnsmasq 4326 nobody  mem       REG                0,2    48704  5701 /lib64/libcrypt-2.30.so
dnsmasq 4326 nobody  mem       REG                0,2    18512  5703 /lib64/libdl-2.30.so
dnsmasq 4326 nobody  mem       REG                0,2    14192  8894 /usr/lib64/libreplace-samba4.so
dnsmasq 4326 nobody  mem       REG                0,2    18304  8939 /usr/lib64/libwinbind-client-samba4.so
dnsmasq 4326 nobody  mem       REG                0,2    18288  8884 /usr/lib64/libnss_winbind.so.2
dnsmasq 4326 nobody  mem       REG                0,2    64232  5718 /lib64/libnss_files-2.30.so
dnsmasq 4326 nobody  mem       REG                0,2  1577040  8326 /usr/lib64/libunistring.so.2.1.0
dnsmasq 4326 nobody  mem       REG                0,2  2207064  5699 /lib64/libc-2.30.so
dnsmasq 4326 nobody  mem       REG                0,2   121112  7970 /usr/lib64/libidn2.so.0.3.6
dnsmasq 4326 nobody  mem       REG                0,2   191376  5693 /lib64/ld-2.30.so
dnsmasq 4326 nobody    0u      CHR                1,3      0t0  1029 /dev/null
dnsmasq 4326 nobody    1u      CHR                1,3      0t0  1029 /dev/null
dnsmasq 4326 nobody    2u      CHR                1,3      0t0  1029 /dev/null
dnsmasq 4326 nobody    3u     IPv4              26174      0t0   UDP *:bootps 
dnsmasq 4326 nobody    4u  netlink                         0t0 26175 ROUTE
dnsmasq 4326 nobody    5u     IPv4              26177      0t0   UDP Tower.local:domain 
dnsmasq 4326 nobody    6u     IPv4              26178      0t0   TCP Tower.local:domain (LISTEN)
dnsmasq 4326 nobody    7r  a_inode               0,10        0  3083 inotify
dnsmasq 4326 nobody    8u     unix 0x00000000434403c5      0t0 26183 type=STREAM
dnsmasq 4326 nobody    9r     FIFO                0,9      0t0 26184 pipe
dnsmasq 4326 nobody   10w     FIFO                0,9      0t0 26184 pipe
dnsmasq 4326 nobody   11u     unix 0x00000000f8437387      0t0 21771 type=DGRAM
dnsmasq 4326 nobody   14w     FIFO                0,9      0t0 21772 pipe

Any help would be appreciated.

 

 

 

Link to post
  • 2 weeks later...
1 hour ago, mattie112 said:

Can someone with the "custom:br0" please run:


docker network inspect br0

and post the contents here, then I can just recreate it :)

[
    {
        "Name": "br0",
        "Id": "7e01ecc035eb80d293b93cb4626897b4138cbd445ed9243f3e7839cb35bf8033",
        "Created": "2020-09-05T08:35:02.505937085-04:00",
        "Scope": "local",
        "Driver": "macvlan",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "192.168.1.0/24",
                    "Gateway": "192.168.1.1",
                    "AuxiliaryAddresses": {
                        "server": "192.168.1.61"
                    }
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "8bb778f66e0ba6389c53b06621c32a8b1792f99c8160c77687722d268b38c77d": {
                "Name": "pihole-template",
                "EndpointID": "eae3ab31bb8cd7631c98c82ea6873cdeb081a9458c5c7028da7cea8c2605bdd2",
                "MacAddress": "02:42:c0:a8:01:4a",
                "IPv4Address": "192.168.1.74/24",
                "IPv6Address": ""
            }
        },
        "Options": {
            "parent": "br0"
        },
        "Labels": {}
    }
]

But all you need to do is enable the option in docker settings (advanced view with the service disabled)

 

image.thumb.png.d60b834896d65140e12f872d368956af.png

Link to post

Well, that is strange. I needed to stop docker in order to see that setting (might have missed that before, not sure). But it was already checked. Unchecked it and rechecked it, then started docker again and yes it is visible now :)

 

Thanks! Now see if I can configure pihole :D

 

edit:

and yes, pihole seems to work perfectly now! thanks again!

Edited by mattie112
Link to post
On 5/14/2020 at 5:10 PM, rickydg said:

Hurrah! Good things come to those who wait.

 

Ok, so bare with while I roll through my situation. I have a UniFi UDM-Pro as a router. I had forgotten that I had enabled the Honeypot feature, and it was running on the same IP I had selected for Pihole. I only realised this when I was looking to see if the UDM-Pro had picked up any open ports on the first IP I was using. I've now tried a different IP and it works straight away.

 

TL;DR

Changed my IP of Pihole container and it worked!

Genius! Fixed my problem too!

Link to post
On 9/12/2020 at 12:17 AM, foXaCe said:

Hello,

 

how is it to make that the name of the client goes up well?

 

 

SharedScreenshot.jpg

SharedScreenshot2.jpg

SharedScreenshot3.jpg

The only way for pihole to display client names is to either, 1) use pihole's dhcp instead of your router, or 2) use a hosts file in pihole where it has your static ip address to each client.

Link to post
On 8/26/2020 at 11:13 PM, Cpt. Chaz said:

i'm here with the same problem, and a virtually identical log, except my pihole is set to 192.168.1.2. i'm also not able to access web ui at all

 

I've seen where some people said to try chmod'ing the appdata folder, i tried it to no avail. i've also tried reverting back to v4.1 and chmod'ing, still no luck. my unraid network settings have DNS pointing to -> 192.168.1.2 (pihole) and then ->1.1.1.1. I've had it working fine for about a year until recently i needed to do a fresh install and haven't gotten it working since then. here's a picture of the container settings, would love it if anyone could help us out with this

1582452463_2020-08-2611_12_28pm.thumb.png.31c7f34afcaccf816ce60ac398e229a8.png

 

 

for anyone experience something close to this, i downgraded to docker tag "pihole/pihole:release-v4.3.4" and i've got the UI back, and everything seems to be back in working order. This release uses pi-hole version v4.3.5, webui v4.3.3 and ftl v4.3.1

 

edit: @eubbenhadd try pulling this docker tag and see if it helps

Edited by Cpt. Chaz
user tag
Link to post
  • 3 weeks later...

EDIT: Had a network wide issue because of DHCP snooping. My switches blocked the requests, whitelisting the switchports fixed it.

 

Does Pihole work as DHCP server work for someone?

 

I can't get it to work since hours, tried everything. No other DHCP server in my network.

 

I tried setting the container to following network interfaces:

- host with Unraid Server IP: DHCP Request of client won't get answered, client disconnects. I can see the client IP / MAC in Pihole. Client chooses APIPA address (169.x.x.x)

- br0 with custom IP in client subnet: Same as with host, can see the client IP / MAC but client gets disconnected. Client chooses APIPA (169.x.x.x).

 

Everything besides DHCP works. I don't know why it doesn't work. Same issue with Adguard Home.

Edited by Taramu
Link to post

Having trouble getting this to start. I have experience both with docker containers on Unraid as well as pihole running on other systems (pis, hyper-v).

 

On startup, it's getting stuck at the following point in the log shown below. I can't get the web console to work.

 

Starting crond
Starting pihole-FTL (no-daemon) as root
Starting lighttpd

 

Here's what I've tried so far:

  • chmod 777 on the appdata folder
  • Tried both latest version and v4.3.4
  • Privileged and unprivileged levels
  • Verified that the IP shows up on my network (I can see the client in Unifi)
  • Removed the default extra parameters from the template

 

Here's my full docker run command.

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='pihole' --net='br0' --ip='192.168.1.32' -e TZ="America/New_York" -e HOST_OS="Unraid" -e 'TCP_PORT_53'='53' -e 'UDP_PORT_53'='53' -e 'UDP_PORT_67'='67' -e 'TCP_PORT_80'='80' -e 'TCP_PORT_443'='443' -e 'DNS1'='1.1.1.1' -e 'DNS2'='1.0.0.1' -e 'TZ'='America/New_York' -e 'WEBPASSWORD'='supersecret' -e 'INTERFACE'='br0' -e 'ServerIP'='192.168.1.32' -e 'ServerIPv6'='' -e 'IPv6'='False' -e 'DNSMASQ_LISTENING'='all' -v '/mnt/disk1/appdata/pihole1/pihole/':'/etc/pihole/':'rw' -v '/mnt/disk1/appdata/pihole1/dnsmasq.d/':'/etc/dnsmasq.d/':'rw' --cap-add=NET_ADMIN --dns 1.1.1.1 --dns 1.0.0.1 --restart=unless-stopped 'pihole/pihole:latest' 

Any tips on what to try?

Edited by bigmak
Link to post
18 minutes ago, bigmak said:

 

 

Here's my full docker run command.


root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='pihole' --net='br0' --ip='192.168.1.32' -e TZ="America/New_York" -e HOST_OS="Unraid" -e 'TCP_PORT_53'='53' -e 'UDP_PORT_53'='53' -e 'UDP_PORT_67'='67' -e 'TCP_PORT_80'='80' -e 'TCP_PORT_443'='443' -e 'DNS1'='1.1.1.1' -e 'DNS2'='1.0.0.1' -e 'TZ'='America/New_York' -e 'WEBPASSWORD'='supersecret' -e 'INTERFACE'='br0' -e 'ServerIP'='192.168.1.32' -e 'ServerIPv6'='' -e 'IPv6'='False' -e 'DNSMASQ_LISTENING'='all' -v '/mnt/disk1/appdata/pihole1/pihole/':'/etc/pihole/':'rw' -v '/mnt/disk1/appdata/pihole1/dnsmasq.d/':'/etc/dnsmasq.d/':'rw' --cap-add=NET_ADMIN --dns 1.1.1.1 --dns 1.0.0.1 --restart=unless-stopped 'pihole/pihole:latest' 

Any tips on what to try?

what is the server IP and the Pihole ip?

Link to post
On 6/25/2020 at 7:40 AM, gtosnipey said:

Anyone having issues with the blacklist and whitelist not working in v5.0? Lets say I add a domain to my blacklist "nba.com" for example. No matter what device I use the site isn't blocked. So I tried other sites on the blacklist and it doesn't look like its working.  I can see them listed on the blacklist, I did an update for gravitar, but still no change. Thoughts?

 

Hi, i have exact the same problem but with Pi-hole v5.1.2...

download pihole-template, adjust the IP address, install, start, webUI no problem.

Adjust on PC default DNS to address from pihole, no problem.

 

Add in "blacklist" on pihole webUI one address for test:

soliver.de

(added as exact blacklist and regex blacklist with wildcard and without wildcart)

 

but the address/domain are reachable....

can explain anyone, how i can block the domains where i want?

 

Thanks a lot!

 

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.