Problem: 5 minute delay on startup
Device: UP board (small x86 board), running 18.04, with a Panda PAU05 wireless USB adapter, connected via HDMI to a monitor
Network configuration: using netplan and systemd-networkd. NetworkManager is not installed.
When the Ethernet is connected, the device boots up quickly. I can unplug the Ethernet and rely on wifi. SSH works, etc.
When the Ethernet is not connected, there's a 5 minute delay. The console says A start job is running for Raise network interfaces (Xmin Ys / 5min 2s)
and slowly counts up to 5min 2s. I can ping the device, but ssh is refused: ssh: connect to host rodeobot.local port 22: Connection refused
. After 5 minutes the boot completes fine.
I tinkered with my netplan to make both ethernet and wifi interfaces optional, but this doesn't help. I also tried removing the ethernet interface, but that didn't help. Here's the /etc/netplan/config.yaml
I'm running now:
network:
version: 2
renderer: networkd
ethernets:
enp1s0:
optional: true # Don't wait for Ethernet
dhcp4: true
wifis:
wlx9cefd5fcb328:
optional: true # Don't wait for Wifi
dhcp4: true
access-points:
"xxx":
password: "yyy"
Edit: I see several similar questions, but I don't see an answer that uses netplan. Is this a bug / missing feature in netplan?
Edit: fixed indentation and commenting in config.yaml. (I copied and pasted, then edited the ssid and pw.)
Edit: here's the result of sudo netplan --debug generate
:
** (generate:965): DEBUG: 18:35:38.361: Processing input file /etc/netplan/config.yaml..
** (generate:965): DEBUG: 18:35:38.362: starting new processing pass
** (generate:965): DEBUG: 18:35:38.362: wlx9cefd5fcb328: adding wifi AP 'Beckett'
** (generate:965): DEBUG: 18:35:38.362: wlx9cefd5fcb328: setting default backend to 1
** (generate:965): DEBUG: 18:35:38.362: Configuration is valid
** (generate:965): DEBUG: 18:35:38.362: enp1s0: setting default backend to 1
** (generate:965): DEBUG: 18:35:38.362: Configuration is valid
** (generate:965): DEBUG: 18:35:38.363: Generating output files..
** (generate:965): DEBUG: 18:35:38.363: NetworkManager: definition enp1s0 is not for us (backend 1)
** (generate:965): DEBUG: 18:35:38.363: wlx9cefd5fcb328: Creating wpa_supplicant configuration file run/netplan/wpa-wlx9cefd5fcb328.conf
** (generate:965): DEBUG: 18:35:38.363: Creating wpa_supplicant service enablement link /run/systemd/system/systemd-networkd.service.wants/netplan-wpa@wlx9cefd5fcb328.service
** (generate:965): DEBUG: 18:35:38.364: NetworkManager: definition wlx9cefd5fcb328 is not for us (backend 1)
Thanks.