Removal of Pi-Hole removed IP command. Stuck in boot net wait Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Chester007
Posts: 35
Joined: Sat Mar 04, 2017 3:57 pm

Removal of Pi-Hole removed IP command. Stuck in boot net wait

Post by Chester007 »

Raspberry Pi 3B+
Official Power Supply
SanDisk Ultra MicroSD Card

I've recently installed Pi-Hole, PiVPN and Aria2 on a system that currently runs Sonarr and Radarr. After installation, Sonarr and Radarr both stopped working. Suspecting that Pi-Hole is the culprit, I tried uninstalling along with its dependencies. With infinite boot net wait time, the RPi is now stuck and can't boot. Any suggestions on how to resolve this is much appreciated!

Image
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Removal of Pi-Hole removed IP command. Stuck in boot net wait

Post by Joulinar »

Hi,

looks like there is something more broken on your system as you are missing some essential commands like ip

basically it is part of iproute2 apt package. But hard to check as long as you don't have access to the system, Let's check what has been set inside dietpi.txt. Can you remove SD card and plug it into a computer. Check dietpi.txt and search inside for following section

Code: Select all

# Delay boot until network is established: 0=disabled | 1=10 second wait max (default) | 2=infinite wait
CONFIG_BOOT_WAIT_FOR_NETWORK=1
Probably you have set network wait to 2. Means it will wait until a valid network connection. But as you missing ip, this is not going to happen. Try to set it to 1 or 0. This should allow the system to boot. Even if network will not work probably.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Chester007
Posts: 35
Joined: Sat Mar 04, 2017 3:57 pm

Re: Removal of Pi-Hole removed IP command. Stuck in boot net wait

Post by Chester007 »

Thanks! I'm now able to boot into my RPi.

My next problem now is that I can't install iproute2 since it doesn't recognize that I have internet. I understand that this is no longer an issue concerning DietPi but do you have any suggestions on how I could establish connectivity on it again? Or would an OS reinstall be simpler?
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Removal of Pi-Hole removed IP command. Stuck in boot net wait

Post by Joulinar »

Chester007 wrote: Sun Feb 14, 2021 5:34 am Or would an OS reinstall be simpler?
depends how much time you like to invest to get it solved compare to the time it will take to setup a new system ;)

At least you could give it a try to install iproute2 offline.
  1. download the missing package to your computer
  2. connect SD card to your computer and copy the file to BootFS
  3. plug SD card back into your RPi and boot the system
  4. once login go to cd /boot
  5. try to install the iproute2 package
  6. reboot your system
But before going that way, let's check status of needed packages. Maybe ther is something more missing ;)

Code: Select all

dpkg -l ifupdown iproute2 isc-dhcp-client
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Chester007
Posts: 35
Joined: Sat Mar 04, 2017 3:57 pm

Re: Removal of Pi-Hole removed IP command. Stuck in boot net wait

Post by Chester007 »

Got it back online after following your advice!

If anyone else experiences the same thing that happened to me, the top answer here https://superuser.com/questions/393109/ ... fline-ubun helped guide me on how to download the missing packages.

I ran this before everything else and it returned that iproute2 and isc-dhcp-client were not installed but later found out that ifupdown was also not present in the system.

Code: Select all

dpkg -l ifupdown iproute2 isc-dhcp-client
On a seperate RPi, i plugged in a USB flash drive and downloaded the three missing packages using

Code: Select all

apt-get download <package name>
and used that drive to install on the RPi in question that has RootFS running on an external drive.

After all that, networking is now back up! Thanks for the help, @Joulinar. Much appreciated!
User avatar
Joulinar
Posts: 3688
Joined: Sat Nov 16, 2019 12:49 am

Re: Removal of Pi-Hole removed IP command. Stuck in boot net wait

Post by Joulinar »

Hi,

good you are back online. If you don't have a 2nd RPi at hand, you could download the package directly from their web site :)

http://archive.raspbian.org/raspbian/pool/main/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply