After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 672812 - "nmcli con" Error: Can't obtain connections: settings service is not running.
"nmcli con" Error: Can't obtain connections: settings service is not running.
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: nmcli
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2012-03-25 18:07 UTC by Michael Biebl
Modified: 2013-05-02 15:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Biebl 2012-03-25 18:07:50 UTC
Version: 0.9.4.0
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665752

Since version 0.9.4.0, nmcli con no longer lists the active connections. It only prints the error
Error: Can't obtain connections: settings service is not running.

nmcli dev and nm seem to work properly.
Comment 1 Robby Workman 2012-04-02 04:29:42 UTC
It's fixed in git, Michael -- probably this patch:

From dd0460697c4e281fe277b53916d5251332e1aafc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= <jklimes@redhat.com>
Date: Tue, 27 Mar 2012 22:36:55 +0200
Subject: [PATCH 5/9] libnm-glib: initialize NMRemoteSettings in
 nm_remote_settings_new() (rh #806664)

The object was not initialized after creation in nm_remote_settings_new(). This
was a regression caused by 762df85234e7a042a2a5d31053e6cc273ae3e2ec.
---
 libnm-glib/nm-remote-settings.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c
index 8f213f9..b6b6c18 100644
--- a/libnm-glib/nm-remote-settings.c
+++ b/libnm-glib/nm-remote-settings.c
@@ -728,7 +728,12 @@ properties_changed_cb (DBusGProxy *proxy,
 NMRemoteSettings *
 nm_remote_settings_new (DBusGConnection *bus)
 {
-       return g_object_new (NM_TYPE_REMOTE_SETTINGS, NM_REMOTE_SETTINGS_BUS, bus, NULL);
+       NMRemoteSettings *settings;
+
+       settings = g_object_new (NM_TYPE_REMOTE_SETTINGS, NM_REMOTE_SETTINGS_BUS, bus, NULL);
+
+       _nm_remote_settings_ensure_inited (settings);
+       return settings;
 }
 
 static void
Comment 2 Michael Biebl 2012-04-02 05:39:17 UTC
I can confirm that this patch fixes the issue (for me).

So I'm going to close the bug report.
Comment 3 Dan Winship 2013-05-02 15:59:33 UTC
NM bugzilla reorganization... sorry for the bug spam.