ERROR: ServerIPv6 Environment variable doesn't appear to be a valid IPv6 address

Please follow the below template, it will help us to help you!

Expected Behaviour:

pihole should startup and work with ipv6

Actual Behaviour:

Fails to start up due to line 25 in docker_run.sh

-e ServerIPv6="${IPv6}" \

If I remove that, it starts up fine, works fine. ISP is Xfinity who support IPv6, and I am able to load https://ipv6.google.com/

$ sudo ./docker_run.sh

Make sure your IPs are correct, hard code ServerIP ENV VARs if necessary\nIP: 10.0.0.250\nIPv6: 2601:282:700:8c78:3cef:4672:2da9:af30

WARNING: Localhost DNS setting (--dns=127.0.0.1) may fail in containers.
16cc852990b2827cd70be5cc85f4d12e24d846533c98df42a4bf262b1130823a
Your password for https://10.0.0.250/admin/ is  fnuc.local  chris  ~  pihole 
 fnuc.local  chris  ~  pihole  sudo docker logs pihole
[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 setup for docker pihole/pihole
Assigning random password: kUHsLNYH
RTNETLINK answers: Network is unreachable
ERROR: ServerIPv6 Environment variable (2601:282:700:8c78:3cef:4672:2da9:af30) doesn't appear to be a valid IPv6 address
TIP: If your server is not IPv6 enabled just remove '-e ServerIPv6' from your docker container
[cont-init.d] 20-start.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[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 setup for docker pihole/pihole
Assigning random password: -AM3kCsM
RTNETLINK answers: Network is unreachable
ERROR: ServerIPv6 Environment variable (2601:282:700:8c78:3cef:4672:2da9:af30) doesn't appear to be a valid IPv6 address
TIP: If your server is not IPv6 enabled just remove '-e ServerIPv6' from your docker container
 fnuc.local  chris  ~  pihole  pihole  ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether b8:ae:ed:77:ea:51 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.250/24 brd 10.0.0.255 scope global dynamic noprefixroute enp3s0
valid_lft 571507sec preferred_lft 571507sec
inet6 2601:282:700:8c78:3cef:4672:2da9:af30/64 scope global dynamic noprefixroute
valid_lft 186515sec preferred_lft 186515sec
inet6 fe80::91f1:7594:6bae:99ea/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 3a:0f:8d:47:a6:0b brd ff:ff:ff:ff:ff:ff
4: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 02:42:c7:3f:e2:68 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 scope global docker0
valid_lft forever preferred_lft forever
inet6 fe80::42:c7ff:fe3f:e268/64 scope link
valid_lft forever preferred_lft forever
44: veth4cdc80a@if43: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default
link/ether 06:03:88:6c:38:40 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet6 fe80::403:88ff:fe6c:3840/64 scope link
valid_lft forever preferred_lft forever
 fnuc.local  chris  ~  pihole  pihole 

I'm pretty sure it is a valid IPv6, but I'm not sure why pihole thinks it isn't.

Debug Token:

gkbdrt5wiv

This debug token is for the working pihole, with line 25 -e ServerIPv6="${IPv6}" \ removed

The docker host is Fedora 29, image is from docker.io/pihole/pihole latest 42a7b2837d89 7 weeks ago 283 MB

The validation of the IP addresses tool being used here (nc and ip route get) requires valid network connectivity (for ipv4 and ipv6 respectively I believe)

RTNETLINK answers: Network is unreachable in your log indicates you're having trouble connecting outside the container, so the validation of IPv6 happens due to not being able to connect out rather than not really be a valid IP.

Have you confirmed ipv6 works inside a generic debian container? You may have to turn it on in the docker daemon's settings first.

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