Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: [systemd] Is this a NetworkManager bug?
Date: Thu, 16 Oct 2014 23:34:33
Message-Id: CADPrc81zxrJHzC9KTE7p6=7TXeBdpQ=87fvqrLJ3wQg6bgewDw@mail.gmail.com
In Reply to: [gentoo-user] Re: [systemd] Is this a NetworkManager bug? by walt
1 On Thu, Oct 16, 2014 at 3:53 PM, walt <w41ter@×××××.com> wrote:
2 > On 10/15/2014 08:23 PM, Tom H wrote:
3 >> On Mon, Oct 13, 2014 at 7:39 PM, walt <w41ter@×××××.com> wrote:
4 >>>
5 >>> I just switched my home LAN from wired to all wifi and I'm having trouble
6 >>> with NetworkManager at boot time.
7 >>>
8 >>> I have systemd start NetworkManager at boot because I need the internet
9 >>> for ntpdate and to start the nfs server for the LAN. Before I switched
10 >>> to all-wireless this method worked perfectly, but no longer.
11 >>>
12 >>> After bootup I see that NetworkManager started wpa_supplicant in the
13 >>> background, but apparently does *not* run dhcpcd. (The wlan0 is up
14 >>> but it has no IP address and the routing table is empty.)
15 >>>
16 >>> As an alternative to NetworkManager I can have systemd start dhcpcd
17 >>> at boot, which almost (but not quite) works well enough. This
18 >>> causes a race condition because wlan0 takes several seconds to come
19 >>> up properly and by then both ntpdate and nfs-server have already
20 >>> run and failed.
21 >>>
22 >>> So, I asked myself, why not have systemd start dhcpcd at boot in
23 >>> addition to NetworkManager?
24 >>>
25 >>> The reason that fails is that they both start wpa_supplicant in
26 >>> the background and the two instances interfere with each other.
27 >>>
28 >>> Anyone see a way around this catch22?
29 >>
30 >> Do you have "All users may connect" unticked in the NM applet or
31 >> "permissions=user:walt:;" in the NM connection's config?
32 >
33 > After studying the logs I'm beginning to think that NM is actually
34 > trying to start wlan0 at boot time but failing with this message:
35 > 'no secrets', which I assume means no password, maybe?
36 >
37 > Yes, I do have the all-users box ticked. Question: I've set up the
38 > wlan0 connection (as root) several times using nmtui, including the
39 > SSID password, yet each time I start nmtui the password field is blank
40 > again. Is this normal behavior? How can I tell if the password is
41 > actually being stored somewhere?
42
43 As I said some messages ago, check:
44
45 /etc/NetworkManager/system-connections
46
47 In that directory should be all the system-wide network
48 configurations. Also, check
49
50 /etc/NetworkManager/NetworkManager.conf
51
52 and make sure you have "plugins=keyfile" in the "[main]" section. At
53 some point NM had integration with the OpenRC network configuration,
54 and (AFAIR) sometimes it made a mess inside /etc/conf.d. I don't know
55 if such integration exists anymore; nowadays I don't even have
56 /etc/{conf,init}.d, and everything works so much better.
57
58 Regards.
59 --
60 Canek Peláez Valdés
61 Profesor de asignatura, Facultad de Ciencias
62 Universidad Nacional Autónoma de México

Replies

Subject Author
[gentoo-user] Re: [systemd] Is this a NetworkManager bug? walt <w41ter@×××××.com>