I tried to change the DNS in dietpi-config on my RaspberryPi4 which I run headless over ethernet. I selected the new DNS and went to apply it, but it started hanging on:
“dropping connections please wait”
For more than 10 minutes. I powered it down but it won’t boot back up and I can’t SSH into it.
Is there something I should check or edit on the SD card to get it working again?
Hi,
many thanks for your report. Unfortunately as we don’t know what happen on your system, it would be goof if you could attach a screen to check for error messages (if available).
Yes, as I run it headless it’s a little difficult to get a screenshot.
I restored to a backup, but it’s a bit older and is missing some work, mostly just torrent files on qtorrent and a cron file.
I apologize if this is obvious, but where in the file structure are settings related to network configuration found?
/etc/network/interfaces is the location for network config’s
Here’s what I found in dietpi-boot.log
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Boot | [0m[90mSat Aug 8 10:17:20 CDT 2020 | Waiting for valid network connection before continuing boot | Mode=2
[0m
[J[0m[90m[[0m[32m OK [0m[90m][0m [90mDietPi-Boot | [0mSat Aug 8 10:17:20 CDT 2020 | Valid network connection found
[0m
[J[0m[90m[[0m[33m .... [0m[90m][0m [90mDietPi-Run_NTPD | [0msystemctl restart systemd-timesyncd[0m
[J[0m[90m[[0m[32m OK [0m[90m][0m [90mDietPi-Run_NTPD | [0msystemctl restart systemd-timesyncd
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (1/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (2/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (3/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (4/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (5/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (6/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (7/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (8/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (9/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (10/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (11/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (12/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (13/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (14/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (15/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (16/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (17/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (18/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (19/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (20/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (21/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (22/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (23/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (24/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (25/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (26/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (27/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (28/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (29/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (30/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (31/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (32/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (33/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (34/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (35/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (36/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (37/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (38/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (39/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (40/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (41/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (42/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (43/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (44/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (45/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (46/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (47/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (48/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (49/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (50/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (51/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (52/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (53/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (54/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (55/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (56/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (57/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (58/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (59/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mWaiting for completion of systemd-timesyncd (60/60)
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mTimed out waiting for systemd-timesyncd
[0m
[J[0m[90m[[0m[31mFAILED[0m[90m][0m Network time sync | An issue has occurred
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90mPlease check the service status for more information:
[0m
[J[0m[90m[[0m INFO [0m[90m][0m [90mDietPi-Run_NTPD | [0m[90m - systemctl -l status systemd-timesyncd
[0m
Ah looks good, looks like it got set to a static IP. I’ll fix that and see what happens.
yap looks like wrong network config if it switched to static. i guess you are using different subnet 
probably switching to dhcp will fix it.
Ok I’m dumb. I have the files from the main partition on my Windows laptop, as well as a .img of that partition. What’s the easiest way to edit that config file in ext4 and then get it on the pi that’s running a much older backup?
FTP the files over to an attached hard drive on the RPi, edit the network file then dietpi-backup from that to restore the system?
{EDIT: Pulled out my old linux laptop and edited there, popped it in and it appears to be up and running!}