Post

System Misc Note - Vol4

System Misc Note - Vol4

Use journalctl to inspect daemon log

After restarting my dae service, I suddenly found that my network was corrupted. Even ping 8.8.8.8 would fail with “ping: connect: Network is unreachable”.

Test with:

1
2
$ ip -4 route get 8.8.8.8
RTNETLINK answers: Network is unreachable

Use nmcli device show to inspect current net status. It is stranged that I dont have IP4.ADDRESS here:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$ nmcli device show
GENERAL.DEVICE:                         wlp0s20f3
GENERAL.TYPE:                           wifi
GENERAL.HWADDR:                         5C:B4:7E:8D:69:FE
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     Tsinghua-IPv4
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveC>
IP4.GATEWAY:                            --
IP6.ADDRESS[1]:                         2402:f000:5:7801:49e7:7d3f:635a:a9e2/64
IP6.ADDRESS[2]:                         2402:f000:5:7801:a3ff:72f2:d328:45b2/64
IP6.ADDRESS[3]:                         fe80::8a1f:d204:3f0a:efeb/64
IP6.GATEWAY:                            fe80::9e74:6fff:fe9f:d001
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 1024
IP6.ROUTE[2]:                           dst = 2402:f000:5:7801::/64, nh = ::, m>
IP6.ROUTE[3]:                           dst = ::/0, nh = fe80::9e74:6fff:fe9f:d>
IP6.DNS[1]:                             2402:f000:1:801::8:28
IP6.DNS[2]:                             2402:f000:1:801::8:29

GENERAL.DEVICE:                         lo
GENERAL.TYPE:                           loopback
GENERAL.HWADDR:                         00:00:00:00:00:00
GENERAL.MTU:                            65536
GENERAL.STATE:                          100 (connected (externally))
GENERAL.CONNECTION:                     lo
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveC>
IP4.ADDRESS[1]:                         127.0.0.1/8
IP4.GATEWAY:                            --
IP6.ADDRESS[1]:                         ::1/128
IP6.GATEWAY:                            --

......

GENERAL.DEVICE:                         dae0

Well, althougn still confused, I strongly suepect it was caused by dae service. Then use journalctl -b -u dae --no-pager | less to check log:

1
2
3
4
5
6
7
...
Jul 27 00:12:04 nixos dae[2858]: level=fatal msg="duplicated outbound name: common_proxy"
Jul 27 00:12:04 nixos systemd[1]: dae.service: Main process exited, code=exited, status=1/FAILURE
Jul 27 00:12:04 nixos systemd[1]: dae.service: Failed with result 'exit-code'.
Jul 27 00:12:04 nixos systemd[1]: Failed to start dae Service.
Jul 27 00:12:04 nixos systemd[1]: dae.service: Consumed 582ms CPU time, 153.8M memory peak, 31.6M read from disk, 2.5K incoming IP traffic, 1.1K outgoing IP traffic.
...

journalctl command

-f , follow new logs live

-b , only see logs during this boot

-u <name> , view logs for specific service

–since <time> , filter by time. like: since today, since "1 hour ago", --since "2026-06-01 00:00:00" --until "2026-06-01 12:00:00"

Ah… it is just because wrong config file. After fixing it and rebooting, everything is back to normal.

This post is licensed under CC BY 4.0 by the author.