I installed the armV8 image for Raspberry Pi on my Raspberry Pi 3. Installation was easy, and the PI is running. Now, I tried to run a Podman container rootless, and I get no network access. After much inspection, I discovered that network-online.target needs to be active for this, but it's not. I checked the dependencies, and the direct dependencies systemd-networkd-wait-online.service is also inactive. systemd-networkd-wait-online.service has 2 direct depencies (system.slice & systemd-networkd.service), both are active.
How can I determine why systemd-networkd-wait-online.service is inactive.
Niels
Here are the commands I tested right now:
[root@pi ~]# systemctl status network-online.target
○ network-online.target - Network is Online
Loaded: loaded (/usr/lib/systemd/system/network-online.target; static)
Active: inactive (dead)
Docs: man:systemd.special(7)
make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://systemd.io/NETWORK_ONLINE', '', ' class="postlink"')
[root@pi ~]# systemctl list-dependencies network-online.target --all
network-online.target
○ └─systemd-networkd-wait-online.service
● ├─system.slice
● │ └─-.slice
● └─systemd-networkd.service
● ├─system.slice
● │ └─-.slice
● ├─systemd-networkd-persistent-storage.service
● │ ├─system.slice
● │ │ └─-.slice
│ └─...
● ├─systemd-networkd.socket
● │ └─system.slice
● │ └─-.slice
● └─network.target
[root@pi ~]# systemctl status systemd-networkd-wait-online.service
○ systemd-networkd-wait-online.service - Wait for Network to be Configured
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd-wait-online.service; enabled; preset: enabled)
Active: inactive (dead)
Docs: man:systemd-networkd-wait-online.service(8)
[root@pi ~]# systemctl status system.slice
● system.slice - System Slice
Loaded: loaded
Active: active since Tue 2025-01-07 19:41:12 CET; 3h 10min ago
Docs: man:systemd.special(7)
Tasks: 12
[root@pi ~]# systemctl status systemd-networkd.service
● systemd-networkd.service - Network Configuration
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; preset: enabled)
Active: active (running) since Tue 2025-01-07 19:41:15 CET; 3h 11min ago
Invocation: d9f6e5f75d8e4636a2d88ab59465d4fc
TriggeredBy: ● systemd-networkd.socket
[root@pi ~]# systemctl restart systemd-networkd-wait-online.service
Job for systemd-networkd-wait-online.service failed because the control process exited with error code.
See "systemctl status systemd-networkd-wait-online.service" and "journalctl -xeu systemd-networkd-wait-online.service" fo r details.
[root@pi ~]## journalctl -xeu systemd-networkd-wait-online.service
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
Jan 07 23:08:40 pi systemd[1]: Starting Wait for Network to be Configured...
░░ Subject: A start job for unit systemd-networkd-wait-online.service has begun execution
░░ Defined-By: systemd
░░ Support:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel', '', ' class="postlink"')
░░
░░ A start job for unit systemd-networkd-wait-online.service has begun execution.
░░
░░ The job identifier is 618.
Jan 07 23:10:40 pi systemd-networkd-wait-online[1304]: Timeout occurred while waiting for network connectivity.
Jan 07 23:10:40 pi systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel', '', ' class="postlink"')
░░
░░ An ExecStart= process belonging to unit systemd-networkd-wait-online.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jan 07 23:10:40 pi systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel', '', ' class="postlink"')
░░
░░ The unit systemd-networkd-wait-online.service has entered the 'failed' state with result 'exit-code'.
Jan 07 23:10:40 pi systemd[1]: Failed to start Wait for Network to be Configured.
░░ Subject: A start job for unit systemd-networkd-wait-online.service has failed
░░ Defined-By: systemd
░░ Support:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel', '', ' class="postlink"')
░░
░░ A start job for unit systemd-networkd-wait-online.service has finished with a failure.
░░
░░ The job identifier is 618 and the job result is failed.