netplan try fails with 'Error: NetworkManager is not running.'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Triaged
|
Medium
|
Unassigned | ||
One Hundred Papercuts |
Triaged
|
Medium
|
Unassigned |
Bug Description
```
$ sudo netplan try
Error: NetworkManager is not running.
An error occurred: Command '['nmcli', 'general', 'status']' returned non-zero exit status 8.
Reverting.
$ nmcli general status
STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
connected full enabled enabled enabled enabled
$ sudo netplan try
Error: NetworkManager is not running.
An error occurred: Command '['nmcli', 'general', 'status']' returned non-zero exit status 8.
Reverting.
```
It appears that netplan doesn't wait for NetworkManager to come back up after restarting it. In particular at https:/
description: | updated |
description: | updated |
description: | updated |
Changed in hundredpapercuts: | |
status: | New → Triaged |
importance: | Undecided → Medium |
I'm unable to reproduce locally, which isn't surprising given the nature of the issue.
The nmcli code is really unclear as to what the conditions are for the exit code 8 ("NM is not running"). Let's note that the NM service file specifically waits for the NetworkManager DBus name to be acquired before exiting, so at least on the main branch the nmcli calls should occur after that.
Could you please provide us with the netplan and OS version you're running?