Hi - I have a love/hate relationship with Pi-hole. I installed it just to check it out, on my rock-solid Kodi linux machine. After a couple days I realized I loved it! So to ensure it's never down (I occasionally take my Kodi box with me on trips etc) I installed it in my qnap nas as a container service.
Still loving it at this point.
Of course I didn't need it on my Kodi box so I followed instructions and ran '/etc/.pihole/automated install/uninstall.sh'. Rebooted and internet doesn't work.
The love blossom doth slowly wilt at this point.
I googled and saw a couple references to some things that could be wrong in /etc. Luckily I happened to take a SquashFS snapshot of the system so I copied over my pre-pihole copy of /etc and rebooted.
Still no internet.
I'm almost at the point where I have to rebuilt this box as I can't find any more solutions online. Does anyone have any pointers for me?
Here's my putty log from the uninstall. Note I chose "No" to removing dependencies; thought this was the safer move?
root@kodistick:/etc/.pihole/automated install# ./uninstall.sh
[?] Are you sure you would like to remove Pi-hole? [y/N] y
Root user check
[i] Update local cache of available packages...
Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.4.3
[i] Be sure to confirm if any dependencies should not be removed
[i] The following dependencies may have been added by the Pi-hole install:
dhcpcd5 git iproute2 whiptail dnsutils cron curl iputils-ping lsof netcat psmisc sudo unzip wget idn2 sqlite3 libcap2-bin dns-root-data libcap2 lighttpd php7.4-common php7.4-cgi php7.4-sqlite3 php7.4-xml php7.4-json php7.4-intl
[?] Do you wish to go through each dependency for removal? (Choosing No will leave all dependencies installed) [Y/n] n
[i] Removing Web Interface...
Removed Web Interface
Removed /etc/cron.d/pihole
Removed lighttpd configs
Removed config files
[i] Removing pihole-FTL...
Removed pihole-FTL
Removed pihole man page
Unable to remove 'pihole' user
Unable to remove 'pihole' group
We're sorry to see you go, but thanks for checking out Pi-hole!
If you need help, reach out to us on GitHub, Discourse, Reddit or Twitter
Reinstall at any time: curl -sSL https://install.pi-hole.net | bash
Please reset the DNS on your router/clients to restore internet connectivity
Uninstallation Complete!
Than the problem is somewhere else. I know, not the answer you were locking for, but you restored all previous configs and it still doesn't work - there doesn't seem to be a chance for Pi-hole to be the issue.
Wait, I do have a wild guess for you:
You left everything installed. My guess is now that the issue may be with one of these services missing an associated config in /etc (because you put in a version before these some of them were installed for the first time). Try removing what you think wasn't there before and see if this leads to success.
Just for that Kodi box. I have a usb ethernet adapter that was working before pi-hole, and during pi-hole, but after uninstalling I can't seem to get it to be recognized any longer. I enabled Wifi so I am able to limp along, but the Kodi box lives 8" from my switch so I die a little inside every time one of my kids plays a movie on it.
Oh, sure, sorry, I thought that was clear but glad you asked.
This is the list of what was installed and not removed. Go one after another like
sudo apt remove dhcpcd5
The tricky part is assessing if they were there before installing Pi-hole and if uninstalling them could break something else on the machine. From skimming over the list, only dhcpcd5 should be able to have an impact on networking in general.