Unable to run netplan try on RPi4 after removing link local
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
After changing my config file from
```
network:
ethernets:
eth0:
dhcp4: false
dhcp6: true
wifis:
wlan0:
dhcp4: no
version: 2
```
to
```
network:
ethernets:
eth0:
dhcp4: false
dhcp6: true
wifis:
wlan0:
dhcp4: no
version: 2
```
When I run `sudo netplan try` I get the following errors:
```
ubuntu@
Job for netplan-
An error occurred: Command '['systemctl', 'stop', 'systemd-
Reverting.
Warning: Stopping systemd-
systemd-
```
This is built from GitHub 35548a4 as I was experiencing the daemon-reload issue in #1874494
I manully ran `sudo systemctl stop systemd-networkd netplan-wpa-wlan0` and now netplan try fails with another error:
ubuntu@ pi-01:~ /netplan$ sudo netplan try wpa-wlan0. service canceled.
Job for netplan-
An error occurred: Command '['systemctl', 'stop', 'systemd- networkd. service' , 'netplan- wpa-*.service' ]' returned non-zero exit status 1.
Reverting. wpa-wlan0. service canceled. netplan/ netplan/ cli/commands/ try_command. py", line 83, in command_try y.command_ apply(run_ generate= True, sync=True, exit_on_ error=False) netplan/ netplan/ cli/commands/ apply.py" , line 120, in command_apply systemctl_ networkd( 'stop', sync=sync, extra_services= wpa_services) netplan/ netplan/ cli/utils. py", line 86, in systemctl_networkd check_call( command) python3. 8/subprocess. py", line 364, in check_call ror(retcode, cmd) CalledProcessEr ror: Command '['systemctl', 'stop', 'systemd- networkd. service' , 'netplan- wpa-*.service' ]' returned non-zero exit status 1.
Job for netplan-
Traceback (most recent call last):
File "/usr/share/
NetplanAppl
File "/usr/share/
utils.
File "/usr/share/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): netplan" , line 23, in <module> netplan/ netplan/ cli/core. py", line 50, in main run_command( ) netplan/ netplan/ cli/utils. py", line 191, in run_command netplan/ netplan/ cli/commands/ try_command. py", line 66, in run run_command( ) netplan/ netplan/ cli/utils. py", line 191, in run_command netplan/ netplan/ cli/commands/ try_command. py", line 94, in command_try netplan/ netplan/ cli/commands/ try_command. py", line 117, in revert y.command_ apply(run_ generate= False, sync=True, exit_on_ error=False) netplan/ netplan/ cli/commands/ apply.py" , line 120, in command_apply systemctl_ networkd( 'stop', sync=sync, extra_services= wpa_services) netplan/ netplan/ cli/utils. py", line 86, in systemctl_networkd check_call( command) python3. 8/subprocess. py", line 364, in check_call ror(retcode, cmd) CalledProcessEr ror: Command '['systemctl', 'stop', 'systemd- networkd. service' , 'netplan- wpa-*.service' ]' returned non-zero exit status 1.
File "/usr/sbin/
netplan.main()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.
File "/usr/share/
self.func()
File "/usr/share/
self.revert()
File "/usr/share/
NetplanAppl
File "/usr/share/
utils.
File "/usr/share/
subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.