Why do I have to restart NetworkManager.service all the time?

2018-06-24 18:29:41

After switching to systemd, I started to use NetworkManager.service, I got connected to WIFI automatically at boot, but I got the following message when I run nmcli con:

** (process:4433): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist

Error: nmcli (0.9.6.4) and NetworkManager (unknown) versions don't match. Force execution using --nocheck, but the results are unpredictable.

And from systemctl:

NetworkManager.service loaded active running Network Manager

Now if I restart NetworkManager.service, it works. Why is that?

This is a known issue and several bug reports have been submitted.

There is also a workaround for ubuntu, but I don't think it will work for Arch users because they no longer use init scripts. I bet their fix can be ported but I don't know enough about systemd to do it.

Here is a solution

  • This is a known issue and several bug reports have been submitted.

    There is also a workaround for ubuntu, but I don't think it will work for Arch users because they no longer use init scripts. I bet their fix can be ported but I don't know enough about systemd to do it.

    Here is a solution from the Fedora forums that looks like it works:

    Right-click on the NetworkManager applet.

    Edit Connections.

    Click the Wireless tab (if that's what you're using)

    Select your connection and click the Edit button

    Go to the IPv4 Settings tab

    Click the Routes button

    check "Use this connection only for resources on its network."

    Press OK

    Uncheck "Available to all users"

    Press Save

    2018-06-24 19:11:47
  • I had that issue on CentOS 7 and I did this as root:

    systemctl mask network

    That command blocks network.service. That is because network.service and NetworkManager.service do the same thing and sometimes, one service does not allow the other to work fine.

    2018-06-24 20:05:53