LAN IP - Error directly after boot Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
TBirth
Posts: 8
Joined: Sat Aug 28, 2021 12:39 pm

LAN IP - Error directly after boot

Post by TBirth »

I noticed that i receive the following error, directly after boot:

Code: Select all

mawk: cannot open /run/dietpi/.network (No such file or directory)
curl: (23) Failure writing output to destination
also my dietpi says that i have no ethernet Hardware, but my connection test is okay and i can connect via ssh etc.
Attachments
Bildschirmfoto 2021-08-31 um 22.32.58.png
Bildschirmfoto 2021-08-31 um 22.28.24.png
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: LAN IP - Error directly after boot

Post by Joulinar »

Hi,

pls can you share following

Code: Select all

/boot/dietpi/func/obtain_network_details
ls -la /run/dietpi/
cat /run/dietpi/.network
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TBirth
Posts: 8
Joined: Sat Aug 28, 2021 12:39 pm

Re: LAN IP - Error directly after boot

Post by TBirth »

Code: Select all

root@dietpi:~# /boot/dietpi/func/obtain_network_details
/boot/dietpi/func/obtain_network_details: Zeile 143: /run/dietpi/.network: Datei oder Verzeichnis nicht gefunden
root@dietpi:~# ls -la /run/dietpi/
ls: Zugriff auf '/run/dietpi/' nicht möglich: Datei oder Verzeichnis nicht gefunden
root@dietpi:~# cat /run/dietpi/.network
cat: /run/dietpi/.network: Datei oder Verzeichnis nicht gefunden
root@dietpi:~# 
Attachments
Bildschirmfoto 2021-08-31 um 22.52.16.png
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: LAN IP - Error directly after boot

Post by Joulinar »

first, there is no need to post screen shots in addition. SSH output is totally fine and preferred.

Basically you are missing temporary file system /run/dietpi which usually should be created during boot. Can you check following.

Code: Select all

journalctl -u systemd-tmpfiles-setup
systemctl status systemd-tmpfiles-setup
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TBirth
Posts: 8
Joined: Sat Aug 28, 2021 12:39 pm

Re: LAN IP - Error directly after boot

Post by TBirth »

Thanks for you Tipps:

Code: Select all

root@dietpi:~# journalctl -u systemd-tmpfiles-setup
-- Journal begins at Tue 2021-08-31 22:54:56 CEST, ends at Wed 2021-09-01 05:08:51 CEST. --
Aug 31 22:54:57 dietpi systemd[1]: Starting Create Volatile Files and Directories...
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/lib.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/lock.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/log.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/cache.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/cache/lighttpd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/cache/lighttpd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/sudo.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/lib.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/lib/systemd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd/netif.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd/netif.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/systemd/netif.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/lib/systemd.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/lib.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/log.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/cache.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/log.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/log.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var/log.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /var during canonicalization of /var.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/log/journal.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/log/journal.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/log/journal/00f10adf4b6348ed98053ec9b5c55b97.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/log/journal/00f10adf4b6348ed98053ec9b5c55b97/system.journal.
Aug 31 22:54:57 dietpi systemd[1]: Finished Create Volatile Files and Directories.
root@dietpi:~# systemctl status systemd-tmpfiles-setup
● systemd-tmpfiles-setup.service - Create Volatile Files and Directories
     Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static)
     Active: active (exited) since Tue 2021-08-31 22:54:57 CEST; 6h ago
       Docs: man:tmpfiles.d(5)
             man:systemd-tmpfiles(8)
    Process: 282 ExecStart=systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=73)
   Main PID: 282 (code=exited, status=73)
        CPU: 36ms

Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /tmp during canonicalization of /tmp.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/log/journal.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/log/journal.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/log/journal/00f10adf4b6348ed98053ec9b5c55b97.
Aug 31 22:54:57 dietpi systemd-tmpfiles[282]: Detected unsafe path transition / → /run during canonicalization of /run/log/journal/00f10adf4b6348ed98053ec9b5c55b97/system.journal.
Aug 31 22:54:57 dietpi systemd[1]: Finished Create Volatile Files and Directories.
root@dietpi:~# 
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: LAN IP - Error directly after boot

Post by Joulinar »

interesting output :?

can you share as well following

Code: Select all

ls -la /
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TBirth
Posts: 8
Joined: Sat Aug 28, 2021 12:39 pm

Re: LAN IP - Error directly after boot

Post by TBirth »

Code: Select all

root@dietpi:~# ls -la /
insgesamt 68
drwxrwxrwx  18   99 users  4096 28. Aug 16:01 .
drwxrwxrwx  18   99 users  4096 28. Aug 16:01 ..
lrwxrwxrwx   1 root root      7 12. Aug 15:31 bin -> usr/bin
drwxr-xr-x   8 root root   3584  1. Jan 1970  boot
drwxr-xr-x  16 root root   3400  1. Sep 05:10 dev
drwxr-xr-x  76 root root   4096 31. Aug 22:45 etc
drwxr-xr-x   3 root root   4096 26. Aug 18:58 home
lrwxrwxrwx   1 root root      7 12. Aug 15:31 lib -> usr/lib
drwx------   2 root root  16384 12. Aug 15:29 lost+found
drwxr-xr-x   2 root root   4096 12. Aug 16:09 media
drwxr-xr-x   7 root root   4096 31. Aug 21:40 mnt
drwxr-xr-x   3 root root   4096 28. Aug 07:52 opt
dr-xr-xr-x 158 root root      0  1. Jan 1970  proc
drwx------   5 root root   4096  1. Sep 05:10 root
drwxr-xr-x  19 root root    600  1. Sep 14:32 run
lrwxrwxrwx   1 root root      8 12. Aug 15:31 sbin -> usr/sbin
drwxr-xr-x   3 root root   4096 26. Aug 23:26 srv
dr-xr-xr-x  12 root root      0  1. Jan 1970  sys
drwxrwxrwt   4 root root     80  1. Sep 14:17 tmp
drwxr-xr-x  11 root root   4096 12. Aug 15:31 usr
drwxr-xr-x  12 root root   4096 25. Aug 22:23 var
-rw-r--r--   1 root root   2067 25. Aug 22:15 webmin-setup.out
root@dietpi:~# 
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: LAN IP - Error directly after boot

Post by Joulinar »

somehow your root directory / is not owned by user root anymore

Code: Select all

drwxrwxrwx  18   99 users  4096 28. Aug 16:01 .
drwxrwxrwx  18   99 users  4096 28. Aug 16:01 ..
This usually should not be the case. Did you connect the disk to some other computer?

to change it

Code: Select all

chown root:root /
chmod 755 /
reboot
perform a check afterwards

Code: Select all

journalctl -u systemd-tmpfiles-setup
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TBirth
Posts: 8
Joined: Sat Aug 28, 2021 12:39 pm

Re: LAN IP - Error directly after boot

Post by TBirth »

I think this might have happened when I tried to back up my USB-Boot SSD on the computer with ApplePiBaker.

Code: Select all

root@dietpi:~# journalctl -u systemd-tmpfiles-setup
-- Journal begins at Wed 2021-09-01 19:36:51 CEST, ends at Wed 2021-09-01 19:38:47 CEST. --
Sep 01 19:36:52 dietpi systemd[1]: Starting Create Volatile Files and Directories...
Sep 01 19:36:52 dietpi systemd[1]: Finished Create Volatile Files and Directories.
root@dietpi:~# 
Thanks for your help, the command above did the trick and everything is working again !
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: LAN IP - Error directly after boot

Post by Joulinar »

I think this might have happened when I tried to back up my USB-Boot SSD on the computer with ApplePiBaker.
Probably. As I don't have a Apple device, I'm not able to check it. Keep an eye on it if you do similar in future. :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply