Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: failed to reload connections: NetworkManager is not running. #100

Closed
cebtenzzre opened this issue Aug 12, 2021 · 3 comments
Closed

Comments

@cebtenzzre
Copy link

cebtenzzre commented Aug 12, 2021

I have NetworkManger installed (as a roundabout dependency of cinnamon-screensaver), but at the moment I use systemd-networkd to manage network connections. vopono exec fails:

$ vopono exec --provider PrivateInternetAccess --server us_new_york true
 2021-08-12T02:10:19.814Z INFO  vopono::util > Calling sudo for elevated privileges, current user will be used as default user
 2021-08-12T02:10:20.126Z INFO  vopono::util > Chosen config: /home/cebtenzzre/.config/vopono/pia/openvpn/us_new_york.ovpn
 2021-08-12T02:10:20.128Z INFO  vopono::netns > Created new network namespace: vopono_pia_us_new_york
Error: failed to reload connections: NetworkManager is not running.
 2021-08-12T02:10:20.136Z INFO  vopono::netns > Shutting down vopono namespace - as there are no processes left running inside
Error: Failed to reload NetworkManager configuration

Caused by:
    Command failed: nmcli connection reload

It would be convenient if vopono checked the result of nmcli general status (which exits with status 8 if NetworkManager is not running) before trying to communicate with it.

@jamesmcm
Copy link
Owner

Thanks, I'll also change it to be a warning.

FWIW atm it checks for the existence of the config directory, so you could remove that for now if you aren't using it.

@jamesmcm
Copy link
Owner

Should be fixed in #101

@jamesmcm
Copy link
Owner

Closing as this should be fixed, please re-open if it is still present in 0.8.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants