Dietpi fail to find eithernet connection at boot time Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
mail2rst
Posts: 103
Joined: Fri Apr 13, 2018 4:53 pm

Dietpi fail to find eithernet connection at boot time

Post by mail2rst »

My Dietpi NUC is failed to connect to internet through Ethernet at bootup time. I have all default setting of dietpi upto yesterday, I have using same nuc with dietpi installed pihole, unbound, plex & wireguard & was working everything fine. Yesterday, I have installed docker & docker compose through dietpi-software. & installed adguard, unbound, plex & wireguard through docker compose. Also removed pervious installed software through dietpi software. In backend this time through dietpi only PROFTPD, Docker, Docker-compose installed. After this my dietpi nuc not able to detect eithernet connection. I am able to use system as standalone. After login in dietpi-config I try to change static to dhcp & vice versa connection & also change Debian mirror from global to US, Australia, UK many time but even then system is not able to detect Ethernet connection. As now my machine is not able to sync time & connect Debian mirror. I know I have last resort to reinstall everything again but I prefer if I can reuse my system with same operating system as I know within it everything is working as my containers are up. Please suggest me any solution for this, my nuc not detecting eithernet connection at boot time. Thanks
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Re: Dietpi fail to find eithernet connection at boot time

Post by maya95 »

See my post here. It might help.

Static IP makes network unusable
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi fail to find eithernet connection at boot time

Post by Joulinar »

@maya95

Pls don't mix the topics. Your issue was/is completely different and more related to your environment. As well don't make such generic statements. As well STATIC IP was working on your network, there was just a challenge with DNS resolution
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Re: Dietpi fail to find eithernet connection at boot time

Post by maya95 »

@Joulinar

OK.
mail2rst
Posts: 103
Joined: Fri Apr 13, 2018 4:53 pm

Re: Dietpi fail to find eithernet connection at boot time

Post by mail2rst »

Hello @Joulinar
please guide me how i can correct my broken dietpi nuc. thanks
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi fail to find eithernet connection at boot time

Post by Joulinar »

Sure, currently I'm out and online with my mobile only. Will have a look in the evening.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mail2rst
Posts: 103
Joined: Fri Apr 13, 2018 4:53 pm

Re: Dietpi fail to find eithernet connection at boot time

Post by mail2rst »

I have tried ip a command not installed, /etc/network/interfaces shows me dhcp & all values 0, resolv.conf 1.1.1.1 1.0.0.1

i think something wrong with name "eth0" , as in past it was something else surely not "eth0". as my nuc is connected to different DDWRT repeater bridge router & that allotted in past some other name (i think name was like enp2s0f2). as my system reset with default values yesterday & come back to eth0. which never exist. please guide me how i am able to find that old network adapter name & we have to put that number instead of eth0 to make system workable. or we can override the old name with default value with "eth0" (preferable). this is my guess please guide me. i will do any of below provided option only after dietpi experts advice.

some where it is written available options

"You basically have three options:

You disable the assignment of fixed names, so that the unpredictable kernel names are used again. For this, simply mask udev's .link file for the default policy: ln -s /dev/null /etc/systemd/network/99-default.link
You create your own manual naming scheme, for example by naming your interfaces "internet0", "dmz0" or "lan0". For that create your own .link files in /etc/systemd/network/, that choose an explicit name or a better naming scheme for one, some, or all of your interfaces. See systemd.link(5) for more information.
You pass the net.ifnames=0 on the kernel command line
"
sudo nano /etc/default/grub

GRUB_CMDLINE_LINUX=""
Change to
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

In past I have installed debian first on my nuc. after that run script dietpi installation to convert debian into dietpi system.
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi fail to find eithernet connection at boot time

Post by Joulinar »

ok can you check following

Code: Select all

journalctl -u ifup*
dmesg -l emerg,alert,crit.err
ip a
as well, did you created a backup somewhere in the past?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mail2rst
Posts: 103
Joined: Fri Apr 13, 2018 4:53 pm

Re: Dietpi fail to find eithernet connection at boot time

Post by mail2rst »

response of commands

ip a > -bash :ip command not found
dmesg > unknown level 'crit.err'
journalctl > failed to add filter for units: no data available
User avatar
Joulinar
Posts: 4536
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi fail to find eithernet connection at boot time

Post by Joulinar »

there was a typo on the dmesg command

Code: Select all

dmesg -l emerg,alert,crit,err
But not having ip command being available worries me. As well journalctl is not returning something. Does ifup eth0 at least do anything?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply