unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices
GNU General Public License v3.0
3.9k stars 419 forks source link

Reinstall of PiHole on UniFi OS UDM 1.11.4 fails with 'CNI network "dns": Link not found' #358

Closed adm746 closed 2 years ago

adm746 commented 2 years ago

Describe the bug I cant get pihole to start after upgrading firmware. My UDM went into a boot loop and required recovery and firmware upgrade. This cleared my udm-utilities stack and required reinstall :(. Followed the current instructions here on github and restated below. The errors that are thrown when trying to spin up the podman container: "ERRO[0000] Error adding network: Link not found" "ERRO[0000] Error while adding pod to CNI network "dns": Link not found" "Error: error configuring network namespace for container : Link not found.

Similar issues are reported 308 and 85, but my attempts using these work arounds did not help. (generating/deleting MAC address in dns.conflist; performing step 2 after step 4).

To Reproduce Steps to reproduce the behavior:

  1. Update firmware of regular UDM to 1.11.4
  2. on-boot-script "remote_install.sh"
  3. these instructions
  4. See errors above after "podman run" multiline startup command

Expected behavior Similar configuration settings worked in 2020... Not sure if this is a firmware issue...

More details:

i didnt update podman

podman version

Version: 1.6.1 RemoteAPI Version: 1 Go Version: go1.12.10 OS/Arch: linux/arm64

I can see the podman dns network with podman network ls

NAME VERSION PLUGINS podman 0.4.0 bridge,portmap dns 0.4.0 macvlan

and I can see # ls /etc/cni/net.d 10-libpod.conflist dns.conflist

contents of dns.conflist: `{ "cniVersion": "0.4.0", "name": "dns", "plugins": [ { "type": "macvlan", "mode": "bridge", "master": "br5", "mac": "00:1c:b4:84:98:2d",#not the one i used but autogened
"ipam": { "type": "static", "addresses": [ { "address": "10.0.80.80/24", "gateway": "10.0.80.1" } ], "routes": [ {"dst": "0.0.0.0/0"} ] } } ] ' validates on jsonlint

note that im running my dns network on vlan 80

UDM Information

adm746 commented 2 years ago

found it....Im dumb

if you want vlan 80 gotta have "master": "br80"

worst part is I think i made the same mistake in 2020