Dietpi not connected

Hello,
I wanted to update pi-hole with “pihole -up”. Unfortunately it got stuck during the update and I had to restart manually. Now I get the following error message:


I tried “dietpi-update,” but here’s what I get:

root@DietPi:~# dietpi-update

 DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for available DietPi update

[ INFO ] DietPi-Update | Checking mirror: https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi/server_version-6
curl: (6) Could not resolve host: raw.githubusercontent.com
[ INFO ] DietPi-Update | No response from: https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi/server_version-6 ()
[ INFO ] DietPi-Update | Checking mirror: https://dietpi.com/downloads/dietpi-update_mirror/master/server_version-6
curl: (6) Could not resolve host: dietpi.com
[ INFO ] DietPi-Update | No response from: https://dietpi.com/downloads/dietpi-update_mirror/master/server_version-6 ()
[FAILED] DietPi-Update | Unable to access any update server. Please check your network connection, then rerun dietpi-update.
If this error persists, please report at: https://github.com/MichaIng/DietPi/issues

With “dietpi-software” I get the same message as above.

There is another emby server installed and just pi-hole, but neither of them has access to the Internet, it seems. In the pi-hole dashboard, Status says “unknown”. This also does not start.
What else could I try?

Sorry for my bad English

Many greetings

Edit:
In DietPi-Config by Ethernet-Details i get this:

Ethernet Details: │
│ Usage : Sent = N/A | Recieved = N/A │
│ Address : IP = 192.168.178.30 | Mask = 255.255.255.0 | Gateway = 192.168.178.1 | DNS = 127.0.0.1

Is the DNS right here? I think not…

Hi,

If you use PiHole as DNS Server in the same device, 127.0.0.1 is correct setting.

It seems your PiHole is not working anymore after you restarted your system. Pls can you run the following to check if PiHole is working.

pihole status
systemctl status pihole-FTL.service

As long as PiHole is off, you are not able to connect to the internet as DNS resolution is now working.

Hi, this is what i get:

root@DietPi:~# pihole status
root@DietPi:~# systemctl status pihole-FTL.service
● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
   Active: active (running) since Wed 2020-03-04 20:45:42 CET; 1min 33s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 587 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
    Tasks: 7 (limit: 4915)
   CGroup: /system.slice/pihole-FTL.service
           └─687 /usr/bin/pihole-FTL

Mär 04 20:45:42 DietPi su[678]: + ??? root:pihole
Mär 04 20:45:42 DietPi su[678]: pam_unix(su:session): session opened for user pihole by (uid=0)
Mär 04 20:45:42 DietPi pihole-FTL[587]: FTL started!
Mär 04 20:45:42 DietPi dnsmasq[687]: started, version pi-hole-2.80 cachesize 150
Mär 04 20:45:42 DietPi dnsmasq[687]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Mär 04 20:45:42 DietPi dnsmasq[687]: reading /etc/resolv.conf
Mär 04 20:45:42 DietPi dnsmasq[687]: ignoring nameserver 127.0.0.1 - local interface
Mär 04 20:45:42 DietPi su[678]: pam_unix(su:session): session closed for user pihole
Mär 04 20:45:42 DietPi systemd[1]: Started LSB: pihole-FTL daemon.
Mär 04 20:45:42 DietPi dnsmasq[687]: read /etc/hosts - 5 addresses

But pihole status did not give anything back?

No:

root@DietPi:~# pihole status
root@DietPi:~#

And if you do a restart of PiHole

pihole restartdns

The same, nothing :roll_eyes:

root@DietPi:~# pihole restartdns
root@DietPi:~#

Your PiHole seems to be broken and would need to be repaired.

pihole -r

root@DietPi:~# pihole -r
root@DietPi:~#

There´s nothing :cry:

Ok will write something later the evening. Right now I’m not at home. PiHole would need to be reinstalled completely.

Ok, can i reinstall it via ssh?

Yep but first we need to switch DNS setting from local 127.0.0.1 to a public one like 1.1.1.1 or 8.8.8.8 to be able to download the new PiHole software.

Ok, i changed in sudo nano /etc/network/interfaces
the dns-namservers from 1.1.1.1. 1.0.0.1. to 8.8.8.8.

# Please modify network settings via: dietpi-config
# Or create your own drop-ins in: /etc/network/interfaces.d/

# Drop-in configs
source interfaces.d/*

# Local
auto lo
iface lo inet loopback

# Ethernet
allow-hotplug eth0
iface eth0 inet static
address 192.168.178.30
netmask 255.255.255.0
gateway 192.168.178.1
dns-nameservers 8.8.8.8.

# WiFi
#allow-hotplug wlan0
iface wlan0 inet dhcp
address 0.0.0.0
netmask 0.0.0.0
gateway 0.0.0.0
#dns-nameservers 0.0.0.0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Then i restart, but this doesn´t help. When I log in via ssh i get in the Header this:

 DietPi v6.28.0 : 21:22 - Mi 04.03.2020
 ─────────────────────────────────────────────────────
 - Device model : RPi 3 Model B+ (armv7l)
 - CPU temp : 39'C : 102'F (Cool runnings)
 - LAN IP : 192.168.178.30 (eth0)
curl: (6) Could not resolve host: dietpi.com
 ────────────────────────────────────────────────

If you can’t make it today, it’s no problem. It’s late here too :slight_smile:

you have a config error on your /etc/network/interfaces. One single DOT to much at the end of the DNS Server config :sunglasses:

dns-nameservers 8.8.8.8.

ok pls try to stop and disable pihole-FTL.service first

systemctl stop pihole-FTL.service
systemctl disable pihole-FTL.service

Once done, do the following

  1. dietpi-config
  2. got to 7 : Network Options: Adapters
  3. got to Ethernet
  4. set Change Mode : [STATIC]
  5. set Static DNS : [1.1.1.1 1.0.0.1]
  6. Apply
  7. exit dietpi-config
  8. on console check if DNS Server is now 1.1.1.1 > nslookup google.de
  9. reboot your system
  10. once done lets reinstall PiHole > dietpi-software reinstall 93

Hey Joulinar,
thanks a lot, that worked out great. I was able to reinstall pi-hole and now pi-hole runs very well again.

many thanks a lot :sunglasses: