Network | DHCP fails after too short timeout
I'll try to install dietpi on my rasperry pi 5 Now its 3. Time its does the same Flashing sdcard with raspberry maneger and downloaded the iso from diet pi homepage Then it boots up and I can see it on fing with 198.168.1.107 Then I SSH in to it to get the setup part done Then it come to the survey part and here the issue is when i click yes to share my data anonymous its instant dropping the SSH connection and now I can't reach it again and ping it Eny know what i does wrong
Its connected with a original PSU and a eth cable
Can you share the last output lines? More likely than the dietpi-survey output is probably the service starts to cause something like that. They are done right after the survey upload.
Probably a powering issue. You say official PSU, but what peripherals do you have attached, what kind of system drive/card do you use? Which software did you install (if any)?
And what do the LEDs do after the SSH connection is lost?
powersupply is a https://www.raspberrypi.com/products/27w-power-supply/ buyed from a reseller from my contry have the orginal package from it
il just flashed the micro sd card and put it in the rasperry pi the "only" thing i have changed is in the dietpi.txt i changed this to dk as its my contry
Keyboard layout e.g.: "gb" / "us" / "de" / "fr"
AUTO_SETUP_KEYBOARD_LAYOUT=dk and saved it nothing else i have done
This is the last code from vs code
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
linux-image-6.12.62+rpt-rpi-2712
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
busybox
The following NEW packages will be installed:
busybox udhcpc
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 464 kB of archives.
After this operation, 1015 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian trixie/main arm64 busybox arm64 1:1.37.0-6+b7 [455 kB]
Get:2 https://deb.debian.org/debian trixie/main arm64 udhcpc all 1:1.37.0-6 [8840 B]
Fetched 464 kB in 0s (3712 kB/s)
Selecting previously unselected package busybox.
(Reading database ... 18642 files and directories currently installed.)
Preparing to unpack .../busybox_1%3a1.37.0-6+b7_arm64.deb ...
Unpacking busybox (1:1.37.0-6+b7) ...
Selecting previously unselected package udhcpc.
Preparing to unpack .../udhcpc_1%3a1.37.0-6_all.deb ...
Unpacking udhcpc (1:1.37.0-6) ...
Setting up busybox (1:1.37.0-6+b7) ...
Setting up udhcpc (1:1.37.0-6) ...
Processing triggers for initramfs-tools (0.148.3+rpt2) ...
[ OK ] DietPi-Patch | APT install udhcpc
[ OK ] DietPi-Patch | apt-mark auto isc-dhcp-client
[ INFO ] DietPi-Patch | Removing old dietpi-benchmark script: It lives now at /boot/dietpi/dietpi-benchmark and is accessible via "dietpi-benchmark" console command.
[ OK ] DietPi-Patch | rm -f /boot/dietpi/func/dietpi-benchmark
[ INFO ] DietPi-Patch | Adjustments due to script name change: dietpi-arr_to_RAM => dietpi-servarr_to_ram
[ OK ] DietPi-Patch | rm -f /etc/systemd/system/dietpi-arr_to_RAM.service /boot/dietpi/misc/dietpi-arr_to_RAM /boot/dietpi/misc/dietpi-servarr_to_ram /var/tmp/dietpi/logs/dietpi-arr_to_RAM.log
[ INFO ] DietPi-Patch | Purging obsolete "chromium-browser" package and leftovers
[ OK ] DietPi-Patch | rm -f /root/.chromium-browser.init /root/Desktop/chromium-browser.desktop /home/*/.chromium-browser.init /home/*/Desktop/chromium-browser.desktop
[ INFO ] DietPi-Patch | Removing obsolete dietpi.txt entry
[ OK ] DietPi-Patch | sed --follow-symlinks -i /^[[:blank:]#]*AUTO_SETUP_DESKTOP_INDEX=/d /boot/dietpi.txt
[ OK ] DietPi-Patch | Patched to DietPi v10.2
[ INFO ] DietPi-Update | APT autopurge, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
isc-dhcp-client* linux-image-6.12.62+rpt-rpi-2712*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 39.7 MB disk space will be freed.
(Reading database ... 18660 files and directories currently installed.)
Removing isc-dhcp-client (4.4.3-P1-8) ...
Removing linux-image-6.12.62+rpt-rpi-2712 (1:6.12.62-1+rpt1) ...
W: Removing the running kernel
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.12.62+rpt-rpi-2712
(Reading database ... 15931 files and directories currently installed.)
Purging configuration files for linux-image-6.12.62+rpt-rpi-2712 (1:6.12.62-1+rpt1) ...
Purging configuration files for isc-dhcp-client (4.4.3-P1-8) ...
[ OK ] DietPi-Update | APT autopurge
[ OK ] DietPi-Update | systemctl daemon-reload
[ OK ] DietPi-Update | Incremental patching to v10.2.3 completed
[ INFO ] DietPi-Update | Checking for new available live patches
[ OK ] DietPi-Update | eval echo 1 > /boot/dietpi/.install_stage
DietPi-Update
─────────────────────────────────────────────────────
Phase: Completed
[ INFO ] DietPi-Update | Current version : v10.2.3
[ INFO ] DietPi-Update | Latest version : v10.2.3
[ OK ] DietPi-Survey | Setting in /boot/dietpi.txt adjusted: SURVEY_OPTED_IN=1
[ OK ] DietPi-Survey | Sending survey data
[ OK ] DietPi-Update | sync
[ INFO ] DietPi-Update | A reboot is done to finalise the kernel upgrade
Connection to 192.168.1.107 closed by remote host.
Connection to 192.168.1.107 closed.
[ INFO ] DietPi-Update | A reboot is done to finalise the kernel upgrade
SSH connection is closed due to the required reboot.
Did you tried to power cycle? Something the RPi5 is not rebooting correctly after kernel update
its light up green so i shuld just take the power and then try to plug it in u mean?
Yes unplug power and replug it afterwards
No dont help enything. but have to get out of the door have a cord to plug in to see if its say somthing i can try that when i get home
SSH connection failed due to reboot
Connect a screen to see what it does during boot.
Seems its my own fault did put the cable in and it come up with a login screen as it shuld think my try to install it headless failed but let me me finish it and see when I cone further when im home sorry about it if its me there not did what I shuld before i did begin
Ah it was survey + reboot after the dietpi-update, needed due to the kernel upgrade, so far so expected. That it does not come back up online, or maybe hang at shutdown, is of course not expected. A headless setup is supposed to work just fine.
Network access was there after you attached a screen? I remember there were some weird rare cases where network really only came up after a screen was connected, like it if remained in some offline power savings mode until that.
There is also an isc-dhcp-client to udhcpc transition included, but at least on my tests this worked flawlessly.
New images are currently built after DietPi v10.2 release, hence the kernel upgrade on first boot and DHCP client transition won't be needed anymore. But still makes sense to check whether the issue can be replicated with the old image. Will test it later today.
I have the same issue with Pi4
Redownload DietPi_RPi234-ARMv8-Trixie (https://dietpi.com/downloads/images/ the date is from 2026-02-22 not from today...)
balenaEtcher > dietpi.txt changed to my region and hostname
# Keyboard layout e.g.: "gb" / "us" / "de" / "fr"
AUTO_SETUP_KEYBOARD_LAYOUT=us
# Time zone e.g.: "Europe/London" / "America/New_York" | Full list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
AUTO_SETUP_TIMEZONE=Europe/Amsterdam
##### Network options #####
# Enable Ethernet or WiFi adapter: 1=enable | 0=disable
# - If both Ethernet and WiFi are enabled, WiFi will take priority and Ethernet will be disabled.
# - If using WiFi, please edit dietpi-wifi.txt to pre-enter credentials.
AUTO_SETUP_NET_ETHERNET_ENABLED=1
AUTO_SETUP_NET_WIFI_ENABLED=0
# WiFi country code: 2 capital letter value (e.g. GB US DE JP): https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
# - NB: This choice may be overridden if the WiFi access point sends a country code.
AUTO_SETUP_NET_WIFI_COUNTRY_CODE=NL
# Enter your static network details below, if applicable.
AUTO_SETUP_NET_USESTATIC=0
AUTO_SETUP_NET_STATIC_IP=192.168.0.100
AUTO_SETUP_NET_STATIC_MASK=255.255.255.0
AUTO_SETUP_NET_STATIC_GATEWAY=192.168.0.1
AUTO_SETUP_NET_STATIC_DNS=9.9.9.9 149.112.112.112
# Set to "1" to convert DHCP leased network settings into static settings automatically on first boot.
AUTO_SETUP_DHCP_TO_STATIC=0
# Hostname
AUTO_SETUP_NET_HOSTNAME=ripe-atlas-probe-0ab2
Save and microsd into Pi4. Connected the stuff. SSH the systeem is booting version 10.1 upgrading 10.2, reboot and nothing works can't connect.
Flash again, i can connect. booting version 10.1 upgrading 10.2, reboot and nothing works can connect.
I already had 3 Pi's4 running the upgrade on a running system no problems.
reboot and nothing works can connect.
Where does it hang exactly: shutdown, early boot/kernel error, or just network? What about a power cycle?
Check the movie. Start from de first connection with SSH https://youtu.be/Z0MtvLpVVrQ
On the end, survey question and the System will reboot, connection disconnected.
Can't reconnect Unplugged the power still can't connect.
Put the microsd in the pc got the message it is damaged.
Il take a look at it tomorrow so let me test the things and turn back And ty for the video
and the System will reboot, connection disconnected.
What do the LEDs show, and any output on HDMI if you can attach a screen?
Put the microsd in the pc got the message it is damaged.
Is it a Linux PC? Else it is expected since no other OS can read ext4. EDIT: Ah, RPis have an additional FAT partition. So that FAT partition is shown as damaged? A kernel upgrade implies quite some writes, but it should not break the partition, of course.
What do the LEDs show
Green flash and orange burns
and any output on HDMI if you can attach a screen? Good idea! I attchet an screen.
Starts with IPv4 adres. SSH to run the install, on the end reboot.
When it is reboot gets ipv6.... that why i can't connect anymore.
Very strange never had that before. Normal it gets ipv4 from DHCP, reboot and still normal the same IPv4 adres.
An IPv6 address is automatically assigned. This is the LLA, no DHCP needed for this. So the DHCP client does not seem to do its job. Can you show the output of this:
journalctl -u ifup@eth0
When i log in as root
I type your command
So the DHCP client does not get an answer from the router. The question is whether this is related to the DHCP client change (dhclient => udhcpc) or the RPi kernel upgrade, or the combination of both. I'm currently trying to replicate on an RPi 5.
FYI DietPi.txt i try a static ip that works. When it is by default DHCP (if you dont make changes in dietpi.txt) there i an issue.
Good luck to solve the problem.