You are not logged in.

#1 2014-04-09 09:43:07

cdrjameson
Member
Registered: 2013-05-19
Posts: 46

[Solved]Stopping dhcpcd and starting Network Manager fails

Stock Arch with cinnamon desktop. I normally use dhcpcd to connect to a wired connection. I am trying to use the nm-applet to manage connections.

I have followed the wiki and plethora of forum posts and external blogs on this issue, but nothing  is working for me.

I have installed network-manager-applet and networkmanager. The only network service I have running is the dhcpcd service:

cdr ~ $ systemctl --type=service
UNIT                         LOAD   ACTIVE SUB     DESCRIPTION
accounts-daemon.service      loaded active running Accounts Service
colord.service               loaded active running Manage, Install and Generate 
cups.service                 loaded active running CUPS Printing Service
dbus.service                 loaded active running D-Bus System Message Bus
dhcpcd.service               loaded active running dhcpcd on all interfaces
getty@tty1.service           loaded active running Getty on tty1
kmod-static-nodes.service    loaded active exited  Create list of required stati
polkit.service               loaded active running Authorization Manager
rtkit-daemon.service         loaded active running RealtimeKit Scheduling Policy
systemd-backlight@backlight:acpi_video0.service loaded active exited  Load/Save 
systemd-binfmt.service       loaded active exited  Set Up Additional Binary Form
systemd-fsck@dev-disk-by\x2duuid-1841f08b\x2d9874\x2d45a8\x2daa62\x2d706078d594e
systemd-fsck@dev-disk-by\x2duuid-7edf0f88\x2d5f67\x2d4a68\x2d89ce\x2dd6eb9057272
systemd-fsck@dev-disk-by\x2duuid-d53f3c93\x2d8782\x2d4ae0\x2d9f51\x2d57db9de5f87
systemd-fsck@dev-disk-by\x2duuid-FD1D\x2d011F.service loaded active exited  File
systemd-fsck@dev-disk-by\x2duuid-ff38cc37\x2d1e1f\x2d44e4\x2d9680\x2d1346c4a4a85
systemd-journald.service     loaded active running Journal Service
systemd-logind.service       loaded active running Login Service
systemd-random-seed.service  loaded active exited  Load/Save Random Seed
systemd-remount-fs.service   loaded active exited  Remount Root and Kernel File 
systemd-sysctl.service       loaded active exited  Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited  Create Static Device No
systemd-tmpfiles-setup.service loaded active exited  Create Volatile Files and D
systemd-udev-trigger.service loaded active exited  udev Coldplug all Devices
systemd-udevd.service        loaded active running udev Kernel Device Manager
systemd-update-utmp.service  loaded active exited  Update UTMP about System Boot
systemd-user-sessions.service loaded active exited  Permit User Sessions
systemd-vconsole-setup.service loaded active exited  Setup Virtual Console
udisks2.service              loaded active running Disk Manager
upower.service               loaded active running Daemon for power management
user@1000.service            loaded active running User Manager for UID 1000

To my knowledge there aren't any more network services running that could interfere with network manager. I stop and disable dhcpcd:

cdr ~ $ sudo systemctl stop dhcpcd
[sudo] password for cdr: 

cdr ~ $ sudo systemctl disable dhcpcd
rm '/etc/systemd/system/multi-user.target.wants/dhcpcd.service'

I am a member of the wheel group which according to the wiki(Network Manager) should give me the necessary permission to set up a session.


cdr ~ $ sudo systemctl enable NetworkManager
ln -s '/usr/lib/systemd/system/NetworkManager.service' '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service'
ln -s '/usr/lib/systemd/system/NetworkManager.service' '/etc/systemd/system/multi-user.target.wants/NetworkManager.service'
ln -s '/usr/lib/systemd/system/NetworkManager-dispatcher.service' '/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service'

cdr ~ $ sudo systemctl start NetworkManager

I have manually added the applet to the tray, (dont think I should need to do this but it wasn't showing up) and it recognises my interfaces. It still shows as disconnected, after I

cdr ~ $ sudo ip link set enp4s0 up

when I toggle the switch on the app to 'on' it automatically reverts to 'off' with a notification that connection failed.

If I use the launch nm-applet from a terminal I receive

** (nm-applet:1313): WARNING **: Could not initialize NMActiveConnection /org/freedesktop/NetworkManager/ActiveConnection/17: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist
(nm-applet:1313): nm-applet-CRITICAL **: applet_get_connection_for_active: assertion 'path != NULL' failed

** (nm-applet:1313): WARNING **: async_got_type: could not read properties for /org/freedesktop/NetworkManager/ActiveConnection/17: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

** (nm-applet:1313): WARNING **: Could not create object for /org/freedesktop/NetworkManager/ActiveConnection/17: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist

My NetworkManager.conf:

[main]
plugins=keyfile
managed=true
dhcp=dhcpd
no-auto-default=BC:5F:F4:B9:EE:5A,

and the output from ip addr:

...
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether bc:5f:f4:b9:ee:5a brd ff:ff:ff:ff:ff:ff
    inet6 fe80::be5f:f4ff:feb9:ee5a/64 scope link 
       valid_lft forever preferred_lft forever
...

Really trying to not be a help vampire, but I do need help.

Last edited by cdrjameson (2014-04-09 15:01:18)

Offline

#2 2014-04-09 13:32:21

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: [Solved]Stopping dhcpcd and starting Network Manager fails

You have a typo in NetworkManager.conf. It should be "dhcp=dhcpcd". I'm not sure about the comma after the MAC address in it either.

Offline

#3 2014-04-09 13:54:45

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 449

Re: [Solved]Stopping dhcpcd and starting Network Manager fails

It is the typo Strike0 has mentionned. 100% sure. And the comma too. You only need the comma, if you want to separate multiple MAC addresses with it.

Last edited by scar (2014-04-09 13:55:40)


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#4 2014-04-09 15:00:56

cdrjameson
Member
Registered: 2013-05-19
Posts: 46

Re: [Solved]Stopping dhcpcd and starting Network Manager fails

Thanks working now, simple typo.

Offline

Board footer

Powered by FluxBB