Since you say this happens from a shell too, please provide the output of the following:
SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/systemd-networkd-wait-online
Since you say this happens from a shell too, please provide the output of the following:
SYSTEMD_ LOG_LEVEL= debug /usr/lib/ systemd/ systemd- networkd- wait-online