I'm concerned that I might do it wrong based on the experience in this thread:
opened 04:09PM - 20 Apr 18 UTC
Bug: Confirmed
Investigating
triage: Issue
**In raising this issue, I confirm the following:** `{please fill the checkboxes… , e.g: [X]}`
- [x] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md).
- [x] The issue I am reporting can be *replicated*.
- [x] The issue I am reporting isn't a duplicate (see [FAQs](https://github.com/pi-hole/pi-hole/wiki/FAQs), [closed issues](https://github.com/pi-hole/pi-hole/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), and [open issues](https://github.com/pi-hole/pi-hole/issues)).
**How familiar are you with the the source code relevant to this issue?:**
10 it is a script...
https://github.com/pi-hole/pi-hole/blob/master/automated%20install/uninstall.sh
---
**Expected behaviour:**
Uninstall pihole (cleanly) I care about my dependencies. I run seafile and zoneminder on this pi, besides that's what the apt is for.
**Actual behaviour:**
```
pi@raspberrypi:/$ pihole uninstall
[sudo] password for pi:
[?] Are you sure you would like to remove Pi-hole? [y/N] y
[✓] Root user check
[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:
apt-utils dialog debconf dhcpcd5 git iproute2 whiptail bc cron curl dnsmasq dnsutils iputils-ping lsof netcat sudo unzmmon php-cgi php-sqlite3
[?] Do you wish to go through each dependency for removal? (Choosing No will leave all dependencies installed) [Y/n] n
[✓] Removed Web Interface
[✓] Removed /etc/cron.d/pihole
pi@raspberrypi:/$
```
_Check for user account_
```
pi@raspberrypi:/$ cut -d: -f1 /etc/passwd | grep pihole
pihole
pi@raspberrypi:/$ sudo userdel pihole
userdel: user pihole is currently used by process 15684
```
_FTL still running, SIGKILL sent_
```
pi@raspberrypi:/$ pihole uninstall
[?] Are you sure you would like to remove Pi-hole? [y/N] y
[✓] Root user check
[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:
apt-utils dialog debconf dhcpcd5 git iproute2 whiptail bc cron curl dnsmasq dnsutils iputils-ping lsof netcat sudo unzmmon php-cgi php-sqlite3
[?] Do you wish to go through each dependency for removal? (Choosing No will leave all dependencies installed) [Y/n] n
[✓] Removed Web Interface
pi@raspberrypi:/$ cd /etc
pi@raspberrypi:/etc$ ls -la | grep pihole
drwxr-xr-x 2 999 999 4096 Apr 20 10:03 pihole
drwxr-xr-x 9 root root 4096 Apr 20 09:22 .pihole
```
_At this point I'm manually removing all the remaining artifacts.
After removing the services, init.d and /usr/bin_
```
pi@raspberrypi:/$ sudo find -name "*pihole*"
./etc/bash_completion.d/pihole
./etc/rc4.d/S02pihole-FTL
./etc/rc3.d/S02pihole-FTL
./etc/dnsmasq.d/01-pihole.conf
./etc/rc5.d/S02pihole-FTL
./etc/init.d/pihole-FTL
./etc/rc1.d/K01pihole-FTL
./etc/rc2.d/S02pihole-FTL
./etc/rc0.d/K01pihole-FTL
./etc/rc6.d/K01pihole-FTL
./etc/sudoers.d/pihole
./local/bin/pihole
./opt/pihole
./opt/pihole/piholeLogFlush.sh
./opt/pihole/piholeDebug.sh
./opt/pihole/piholeCheckout.sh
./var/cache/lighttpd/compress/pihole
./var/log/pihole
./var/log/pihole.log.2.gz
./var/log/pihole.log.5.gz
./var/log/pihole.log.4.gz
./var/log/pihole-FTL.log.3.gz
./var/log/pihole.log.1
./var/log/pihole.log
./var/log/pihole.log.3.gz
./var/log/pihole-FTL.log.1
./var/log/pihole-FTL.log
./var/log/pihole-FTL.log.2.gz
./sys/fs/cgroup/devices/system.slice/pihole-FTL.service
./sys/fs/cgroup/systemd/system.slice/pihole-FTL.service
./run/pihole
./run/pihole-FTL.port
./run/pihole-FTL.pid
find: ‘./run/user/1000/gvfs’: Permission denied
./run/systemd/generator.late/pihole-FTL.service
./run/systemd/generator.late/graphical.target.wants/pihole-FTL.service
./run/systemd/generator.late/multi-user.target.wants/pihole-FTL.service
```
**Steps to reproduce:**
update / bash curl
uninstall
**Debug token provided by [uploading `pihole -d` log](https://discourse.pi-hole.net/t/the-pihole-command-with-examples/738#debug):**
I'll pass...
**Troubleshooting undertaken, and/or other relevant information:**
A friend of mine had an issue and lost sudo privileged on his pihole after running the update. We noticed the only user with sudo privledges was pihole. Tried uninstalling and it failes instantly. Went through his journal and didn't see any weird logins. Assuming his pi was compromised, for whatever reason, I checked mine. I updated just fine and decide to uninstall it and the user account, leading to a ton of artifacts. I went through the script and manually removed each of the remaining locations. It looks like the script is just bouncing out if it can't kill the service.
I would prefer to not reinstall at this time. I may install on another pi however I'll update if any definitive information is found.
> Nice template btw.
I'm open, though I'd rather not, to frying my raspberry pi and starting from scratch.
Start all over from scratch. You have issues with the operating system itself if ping
ing an IP address fails.
@DanSchaper , I started over from scratch and this issue is persisting. I followed the docs on the rasp pi website for install the pi os and then followed the docs on the pi hole website to install the pi hole. When I go to fast.com , it says that I'm not connected to the internet and my router says the same thing.
This is my debug token https://tricorder.pi-hole.net/exdqmdta3e .
The speedtest on fast.com worked up until the moment that I installed pi hole. It worked through every step of the installation of the raspberry pi up until then. This installation has no custom blacklists and only uses the four default lists that are provided and it works with an eth0 connection. I did not do anything to my router settings after installing pi hole (curl -sSL https://install.pi-hole.net | bash) in a screen share on the raspberry pi. Thanks!
I can still ping websites in the terminal. I can write ping google.com
and it will work from the raspberry pi and from my machine. It's specifically any internet speed test that fails to work. (speedtest.net , fast.com , so on)
jfb
June 25, 2020, 4:40pm
21
Does the speed test not work at all, or are the results not what you expect?
These tools can help you determine if any of the domains that load with the speed testers are being blocked and causing problems.
Block ads or fix broken sites
This FAQ is written in the context of finding out how to block an ad that isn't blocked automatically, but the same steps can be used to troubleshoot issues with sites that don't function properly. An example is that sometimes certain payment gateways try to collect metrics on the sale, but these domains are blocked by Pi-hole, so the payment cannot be processed. Also, some links send you through several referrers and if one of them is blocked, you may land on a …
I will note that with stock blocklists and some additional regex, I have no problems with speedtest.net (I don't use the other site).
You also might want to try different upstream DNS servers to eliminate any interference from the two you are now using:
PIHOLE_DNS_1=208.67.222.222
PIHOLE_DNS_2=208.67.220.220
It does not work at all. It says that I am not connected to the internet on both sites.
I'm editing this in the WAN DNS Setting tab on my router. Should I be updating these elsewhere too?
The speed test works when I choose connect to dns server automatically on the wan dns settings tab in my router. My concern is that setting up dns servers automatically means I'm no longer using openDNS.
I'm wondering if this might work: (I tried this an the speed tests still don't work)
Use automatically selected dns server in my router
Add the open dns nameservers to the upstream server ipv4 options in the pi hole admin console
Sorry for all the messages. I think we're very close to a solution.
I set automatically choose dns server on my router and I checked the box for opendns in the pi hole console. BUT, I did not put in the name servers for open dns on my router or on the pi hole.
Yet, when I go to https://welcome.opendns.com/ it tells me that I'm connected to open dns.
AND, the speed tests are working. So, I think this means we've solved it. Does that sound right?
Does ping 192.168.50.1
still fail?
1 Like
The debug log still shows that as failing.
If ads are still being blocked and you can dig
or nslookup
pi.hole
then things are working it seems.
DanSchaper:
dig
Should I be adding the open dns name servers anywhere or does this happen automatically?
No, just a bare dig
since that will use the DNS server that the client is configured for. If the client truly is using Pi-hole then dig pi.hole
will be successful.
Sorry, I mis-stated my question. I mean, in general, do I need to add the open dns name servers anywhere?
My general response to that is "Does it work?"
1 Like
Awesome, I'm going to mark this solved. Thanks Dan!
system
Closed
July 21, 2020, 12:14am
36
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.