NetworkManager can't find any interfaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Invalid
|
Undecided
|
Brian Murray |
Bug Description
Binary package hint: network-manager
Using Feisty
Upon installation, network manager (via knetworkmanager) worked fine. After doing the first major packages upgrade, it doesn't work anymore. I can see all of my network interfaces in the lshal output, eth1, wifi0, and ath0. But no interfaces are listed in knetworkmanager.
laughlin@
NetworkManager: <information> starting...
NetworkManager: <information> Updating allowed wireless network lists.
laughlin@
NetworkManager Tool
State: disconnected
print_devices(): didn't get a reply from NetworkManager.
There are no available network devices.
So it looks like the bug is probably in NetworkManager or something lower level and probably not knetworkmanager.
Brian Murray (brian-murray) wrote : [Bug 103532] NetworkManager can't find any interfaces | #1 |
Changed in network-manager: | |
assignee: | nobody → brian-murray |
status: | Unconfirmed → Needs Info |
n1ywb (jlaughlin) wrote : /etc/network/interfaces | #2 |
n1ywb (jlaughlin) wrote : For good measure | #3 |
n1ywb (jlaughlin) wrote : More good measure | #4 |
n1ywb (jlaughlin) wrote : And some more! | #5 |
Brian Murray (brian-murray) wrote : | #6 |
NetworkManager will not manage any interfaces that are configured in '/etc/network/
n1ywb (jlaughlin) wrote : | #7 |
Which interface are you referring to? NetworkManager cannot see either eth1 or ath0 as per the nm-tool output. I statically configured eth1 AFTER knetworkmanager stopped seeing it, not before, so that cannot be the cause of the issue. ath0 is not statically configured at all and already only has an iface line. So which lines specifically are you saying I should delete? I removed the static config lines and that did not help.
laughlin@
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
# The primary network interface
auto eth0
iface eth0 inet dhcp
iface ath0 inet dhcp
iface eth1 inet dhcp
laughlin@
* Restarting network connection manager NetworkManager [ OK ]
laughlin@
* Restarting network events dispatcher NetworkManagerD
laughlin@
NetworkManager Tool
State: disconnected
print_devices(): didn't get a reply from NetworkManager.
There are no available network devices.
Luis Alberto Pabón (copong) wrote : | #8 |
- NoNetworkDevices.png Edit (13.8 KiB, image/png)
Hum, I reported just now the same on another bug... I will copy and paste, since this bug seems newer than that one.
Having the same problem as Brian. Pretty much the same config as Brian as well - except that I already had all my network cards in /etc/interfaces. But it worked just fine until yesterday.
This is a copy & paste from bug #77557:
Yesterday's update (2007-04-11) borked the whole thing again. KNetworkManager says that it couldn't find any network devices (even when they are present and working - I am just connected through wireless). Please see screenshot (in spanish, sorry).
I don't know whether it is related or not, but when I start KNetworkManager from the command line, I get the following message:
** Message: another gnome-keyring-
If I check processes, I get this:
luis@ordenata:~$ ps aux|grep -i gnome-keyring
luis 8753 0.0 0.0 2752 988 ? S 09:00 0:00 gnome-keyring-
luis 24549 0.0 0.0 2756 1016 pts/1 S 13:12 0:00 gnome-keyring-
If I kill one of the processes, it doesn't complain anymore, but it still won't show any network devices. It will create a new gnome-keyring process so we have two processes again. If I kill both processes and start KNetworkManager, it won't complain either, create a new gnome-keyring process and again no network devices.
Luis Alberto Pabón (copong) wrote : | #9 |
Sorry, when I said "Brian" I meant "n1ywb"
nm-tool output:
luis@ordenata:~$ nm-tool
NetworkManager Tool
State: connected
print_devices(): didn't get a reply from NetworkManager.
There are no available network devices.
Luis Alberto Pabón (copong) wrote : | #10 |
I have renamed /etc/network/
Even when this seems to be fixed it is very strange that I always had my interfaces configured statically and NM stopped to see them suddenly on monday after an update. Why doesn't NM tolerate the interfaces configuration anymore?
n1ywb (jlaughlin) wrote : | #11 |
NabLa: Ditto that, when I remove /etc/network/
n1ywb (jlaughlin) wrote : | #12 |
It's also worth mentioning that, after deleting /etc/network/
Jeff McClure (jeff-mcclure) wrote : | #13 |
I'm seeing this problem as well. I have a single Ethernet interface that is configured with a static IP address, and network-manager reports that I have no network interfaces. I'm running Feisty (newly upgraded from Egdy, which was in turn newly upgraded from Dapper).
Brian Murray said:
"NetworkManager will not manage any interfaces that are configured in '/etc/network/
This confuses me. I assume "configured...as yours is" means that it has a static IP set up in /etc/network/
It's pretty clear I'm using the Ubuntu-intended applet for configuring the interface, but according to Brian Murray's info, that applet configures the interface in such a way that makes network-manager unhappy.
It doesn't really bother me too much that network-manager can't find the interface. Best I can tell, my setup doesn't even need network-manager (everything is static in my setup). However, a less savvy user is going to be disturbed by an icon on the desktop that says "No network connection".
This bug is marked "info needed". Is there something more that I can provide?
Luis Alberto Pabón (copong) wrote : | #14 |
This route thing is quite surprising, does that mean you lose connectivity if the static interface connection is no longer available?
Luis Alberto Pabón (copong) wrote : | #15 |
"By the way, I'm running Gnome, not KDE, so I don't have knetworkmanager."
I'd say this is a network-manager rather than an applet problem since nm-tool cannot report any working interfaces.
Brian Murray (brian-murray) wrote : | #16 |
It doesn't make network-manager "unhappy" rather it makes network-manager ignore the interface and not configure it. There is a new patch for network-manager that makes it now say "Manual connection" instead of "No network connection".
Jeff McClure (jeff-mcclure) wrote : | #17 |
"I'd say this is a network-manager rather than an applet problem since nm-tool cannot report any working interfaces."
Well, I guess it depends. The earlier comment seems to imply that the problem is not with network-manager, but with the contents of /etc/network/
I don't have knetworkmanager. My point is that for me it's the Gnome applet, not me, that's setting up /etc/network/
*shrug* I don't know which it is. I just wanted to chime in, because it was beginning to look like the bug was going to get set aside with the assumption that it only happens when somebody hand-edits /etc/network/
Jeff McClure (jeff-mcclure) wrote : | #18 |
Thanks, Brian. I didn't see your entry before I posted the last one. Sounds like my issue is taken care of.
Luis Alberto Pabón (copong) wrote : | #19 |
I've revised the config of several other K/Ubuntu machines of people around and they all have /etc/network/
As n1ywb, this is going to bite quite a lot of people.
Brian Murray (brian-murray) wrote : | #20 |
Could you elaborate as to what in particular is going to bite a lot of people?
n1ywb (jlaughlin) wrote : | #21 |
The affected group is the intersection of users who use NetworkManager, and those who want to configure a static interface. Everybody with a laptop uses NetworkManager. The number of people who set up a static interface is admittedly smaller, but not insignificant IMO.
n1ywb (jlaughlin) wrote : | #22 |
I'm not sure about Jeff's situation, but in my case the nm-tool output I posted indicates that network-manager isn't just ignoring the static interface but it is also ignoring the non-static interface. I suspect that it's not ignoring anything but rather that it's barfing. I haven't stepped the code in gdb but
print_devices(): didn't get a reply from NetworkManager.
doesn't look good to me.
None of this changes the fact that on my machine NetworkManager silently stopped working for no clear reason. Applications should not silently fail. Some debugging messages in the syslog would be EXTREMELY helpful.
Brian Murray said 3 hours ago: (permalink)
It doesn't make network-manager "unhappy" rather it makes network-manager ignore the interface and not configure it. There is a new patch for network-manager that makes it now say "Manual connection" instead of "No network connection".
n1ywb (jlaughlin) wrote : | #23 |
After some recent updates, if /etc/network/
laughlin@nibbler:~$ cat /etc/network/
iface ath0 inet dhcp
iface eth1 inet dhcp
If this file exists, nm-tool reports no interfaces and network-manager doesn't work.
Brian Murray (brian-murray) wrote : | #24 |
I believe you are missing 'auto ath0' and 'auto eth1' from your '/etc/network/
Niran Babalola (niran) wrote : | #25 |
I had a static wired interface and a dynamic wireless interface configured and working fine until the latest update. The wireless networks still work for me, but the static wired interface doesn't show up in nm-tool or the nm-applet menu as "Wired Network" like it used to. This makes me sad.
Moving the interfaces file out of the way makes NetworkManager see both interfaces and gets an IP for the wired one, but I had DNS issues when I tried to use it. Not sure if that's related. Putting the interfaces file back and using the wireless network works fine.
Martin Pitt (pitti) wrote : Re: [Bug 103532] Re: NetworkManager can't find any interfaces | #26 |
Hi,
Brian Murray [2007-04-16 22:31 -0000]:
> I believe you are missing 'auto ath0' and 'auto eth1' from your
> '/etc/network/
Confirmed. n-m will ignore non-auto interfaces on purpose, since not
doing so would act against your manual configuration.
Niran Babalola (niran) wrote : | #27 |
- my interfaces file Edit (260 bytes, text/plain)
All my interfaces are auto. I've attached my interfaces file.
Luis Alberto Pabón (copong) wrote : | #28 |
Same here. I'll paste mine instead:
luis@ordenata:
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.0.0
auto eth1
iface eth1 inet dhcp
wireless-essid MyWirelessAP
Martin Pitt (pitti) wrote : | #29 |
Niran, you have a static configuration for eth0. Is this your primary network interface? It should be ignored by network-manager, the other interfaces should be managed by it.
NabLa, you *only* have statically configured interfaces, so it is correct that network-manager ignores them all.
Niran Babalola (niran) wrote : | #30 |
The intention was that I'd be able to have a static IP address for my wired connection, but be able to switch between my wired and my wireless connections using NetworkManager. This worked perfectly until I updated earlier today.
Luis Alberto Pabón (copong) wrote : | #31 |
OK, so all I need to do is to take out the essid line and NM will show the
interface.
Something that puzzles me is why shouldn't NM allow re-configuring an
interface configured statically, as it used to do. I sometimes log in for a
quick task using BlacBox instead of KDE, so the reason I had my essid in
place is to avoid configuring it by hand. Now I cannot do that, unless I
load any of the applets that access NM - loading all gnome or kde libraries
with it.
On 17/04/07, Martin Pitt <email address hidden> wrote:
>
> Niran, you have a static configuration for eth0. Is this your primary
> network interface? It should be ignored by network-manager, the other
> interfaces should be managed by it.
>
> NabLa, you *only* have statically configured interfaces, so it is
> correct that network-manager ignores them all.
>
> --
> NetworkManager can't find any interfaces
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
--
Luis Pabón
Martin Pitt (pitti) wrote : | #32 |
NabLa [2007-04-17 9:17 -0000]:
> Something that puzzles me is why shouldn't NM allow re-configuring an
> interface configured statically, as it used to do.
It did that only for a very short period of time, and clobbering
static configurations with dynamic changes caused a *lot* of grief.
You can easily switch back to roaming mode by just using a few clicks
in the GUI.
Martin Pitt (pitti) wrote : | #33 |
Closing this one, since the last comments all indicate wanted behaviour of n-m. Thank you!
Changed in network-manager: | |
status: | Needs Info → Rejected |
Luis Alberto Pabón (copong) wrote : | #34 |
OK then! Thanks guys!
n1ywb (jlaughlin) wrote : | #35 |
Very well, this is a feature, not a bug.
I very strongly suggest that NetworkManager should be patched to produce some useful output in this case, something to syslog to the effect of "I see some interfaced but I am ignoring them because auto isn't set" would have been extraordinarily useful.
I also strongly suggest that this behavior should be documented somewhere, I would suggest the NetworkManager(1) and interfaces(5) man pages as appropriate places.
I also submit that the KDE Network Settings control panel the checkbox that controls the "auto" flag in the interfaces file is misleading. It's currently labeled "Activate when the computer starts". Clearly this button does more than that. It should perhaps be re-labeled and It's function should be documented.
Thank you for your time, everybody. Sorry to be such a squeaky wheel, I just want to see Ubuntu (and linux) succeed.
-Jeff
carlivar (e-launchpad-carlivar-com) wrote : | #36 |
This bug is now a year old but I was just bit by this.
Had a DHCP problem on my new Ubuntu install so like a good GUI-boy I went to the Network config and made sure dhcp was configured for eth0.
Big mistake. That modified /etc/network/
Frankly, this is unacceptable. Ubuntu is supposed to be easy to use and configure, yet my "easy GUI config" broke everything? Serious flaw. Logging has got to be improved at the very least (i.e. suggestions above).
Thanks for taking the time to report this bug and helping to make Ubuntu interfaces' file? Thanks in advance.
better. Could you please add the contents of your
'/etc/network/
status needsinfo
assignee <email address hidden>