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

Failed to get active connections: No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager #48

Open
RagnarCrypto opened this issue Jan 27, 2025 · 1 comment

Comments

@RagnarCrypto
Copy link

Got an error when trying to get active connections. With nmcli works correctly:

nmcli con show --active
NAME UUID TYPE DEVICE
enp1s0 8__________________ac ethernet enp1s0

func CreateNmInstance() (gonetworkmanager.NetworkManager, error) {
nm, err := gonetworkmanager.NewNetworkManager()
if err != nil {
log.Errorf("failed to create nmci instance: %v", err)
return nil, err
}

return nm, nil

}

func CheckForExistingConnection(nm gonetworkmanager.NetworkManager) error {
connections, err := nm.GetPropertyActiveConnections()
if err != nil {
log.Fatalf("Failed to get active connections: %v", err)
}
.....

@mullerch
Copy link
Member

Doesn't look like an issue from this lib on first look.

Please do proper reporting, code (formatted), what you expect, what you've tested,.... This will not be investigated otherwise.

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