NetworkManager does not get DNS servers

Bug #511583 reported by Uno Staver
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: network-manager

# lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10

# apt-cache policy network-manager
network-manager:
  Installed: 0.8~a~git.20091013t193206.679d548-0ubuntu1
  Candidate: 0.8~a~git.20091013t193206.679d548-0ubuntu1
  Version table:
 *** 0.8~a~git.20091013t193206.679d548-0ubuntu1 0
        500 http://se.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

No DNS servers into /etc/resolv.conf for Mobile Broadband.
This is evident from the debugging output that follows further down: Right after the line
         remote IP address 10.64.64.64
there should have been two lines with DNS server info:
         primary DNS address 195.67.199.18
         secondary DNS address 105.67.199.19

Otuput from commands
# NM_SERIAL_DEBUG=1 NetworkManager --no-daemon 2>&1 | tee /tmp/nm-serial.txt
# cat /tmp/nm-serial.txt
NetworkManager: <info> starting...
NetworkManager: <info> Trying to start the modem-manager...
NetworkManager: SCPlugin-Ifupdown: init!
NetworkManager: SCPlugin-Ifupdown: update_system_hostname
NetworkManager: SCPluginIfupdown: management mode: unmanaged
NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/net/eth0, iface: eth0)
NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/net/eth0, iface: eth0): no ifupdown configuration found.
NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1e.0/0000:01:03.0/net/eth1, iface: eth1)
NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1e.0/0000:01:03.0/net/eth1, iface: eth1): no ifupdown configuration found.
NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
NetworkManager: SCPlugin-Ifupdown: end _init.
NetworkManager: Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list.
NetworkManager: Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
NetworkManager: <info> Wireless now enabled by radio killswitch
NetworkManager: SCPlugin-Ifupdown: (163626224) ... get_connections.
NetworkManager: SCPlugin-Ifupdown: (163626224) ... get_connections (managed=false): return empty list.
NetworkManager: Tried to set deprecated property gsm/band
NetworkManager: Tried to set deprecated property gsm/band
NetworkManager: Tried to set deprecated property gsm/band
NetworkManager: Tried to set deprecated property gsm/band
NetworkManager: Ifupdown: get unmanaged devices count: 0
NetworkManager: <info> (eth0): carrier is OFF
NetworkManager: <info> (eth0): new Ethernet device (driver: 'tg3')
NetworkManager: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
NetworkManager: <info> (eth0): now managed
NetworkManager: <info> (eth0): device state change: 1 -> 2 (reason 2)
NetworkManager: <info> (eth0): bringing up device.
NetworkManager: <info> (eth0): preparing device.
NetworkManager: <info> (eth0): deactivating device (reason: 2).
NetworkManager: Added default wired connection 'Auto eth0' for /sys/devices/pci0000:00/0000:00:1e.0/0000:01:00.0/net/eth0
NetworkManager: <info> (eth1): driver supports SSID scans (scan_capa 0x21).
NetworkManager: <info> (eth1): new 802.11 WiFi device (driver: 'ipw2200')
NetworkManager: <info> (eth1): exported as /org/freedesktop/NetworkManager/Devices/1
NetworkManager: <info> (eth1): now managed
NetworkManager: <info> (eth1): device state change: 1 -> 2 (reason 2)
NetworkManager: <info> (eth1): bringing up device.
NetworkManager: <info> (eth1): preparing device.
NetworkManager: <info> (eth1): deactivating device (reason: 2).
NetworkManager: <info> modem-manager is now available
NetworkManager: <WARN> default_adapter_cb(): bluez error getting default adapter: The name org.bluez was not provided by any .service files
NetworkManager: <info> (eth1): supplicant interface state: starting -> ready
NetworkManager: <info> (eth1): device state change: 2 -> 3 (reason 42)
NetworkManager: Tried to set deprecated property gsm/band
NetworkManager: Tried to set deprecated property gsm/band
NetworkManager: Tried to set deprecated property gsm/band
NetworkManager: Tried to set deprecated property gsm/band
NetworkManager: <info> (ttyUSB0): new GSM device (driver: 'option1')
NetworkManager: <info> (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/2
NetworkManager: <info> (ttyUSB0): now managed
NetworkManager: <info> (ttyUSB0): device state change: 1 -> 2 (reason 2)
NetworkManager: <info> (ttyUSB0): deactivating device (reason: 2).
NetworkManager: flush_routes: assertion `iface_idx >= 0' failed
NetworkManager: flush_addresses: assertion `iface_idx >= 0' failed
NetworkManager: <info> (ttyUSB0): device state change: 2 -> 3 (reason 0)
NetworkManager: <info> Activation (ttyUSB0) starting connection 'Telia'
NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4 (reason 0)
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) scheduled...
NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) starting...
NetworkManager: <info> (ttyUSB0): device state change: 4 -> 5 (reason 0)
NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) successful.
NetworkManager: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) scheduled.
NetworkManager: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) complete.
NetworkManager: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) started...
NetworkManager: <info> (ttyUSB0): device state change: 5 -> 7 (reason 0)
NetworkManager: <info> Starting pppd connection
NetworkManager: <debug> [1264257147.710954] nm_ppp_manager_start(): Command line: /usr/sbin/pppd nodetach lock nodefaultroute ttyUSB0 noipdefault noauth usepeerdns lcp-echo-failure 0 lcp-echo-interval 0 ipparam /org/freedesktop/NetworkManager/PPP/0 plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so
Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.
** Message: nm-ppp-plugin: (plugin_init): initializing
NetworkManager: <debug> [1264257147.726381] nm_ppp_manager_start(): ppp started with pid 30154
NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) scheduled...
NetworkManager: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) complete.
NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) started...
NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) complete.
** Message: nm-ppp-plugin: (nm_phasechange): status 3 / phase 'serial connection'
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
** Message: nm-ppp-plugin: (nm_phasechange): status 5 / phase 'establish'
** Message: nm-ppp-plugin: (nm_phasechange): status 6 / phase 'authenticate'
NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
** Message: nm-ppp-plugin: (get_credentials): passwd-hook, requesting credentials...
** Message: nm-ppp-plugin: (get_credentials): got credentials from NetworkManager
CHAP authentication succeeded
CHAP authentication succeeded
** Message: nm-ppp-plugin: (nm_phasechange): status 8 / phase 'network'
Could not determine remote IP address: defaulting to 10.64.64.64
Cannot determine ethernet address for proxy ARP
local IP address 90.233.161.111
remote IP address 10.64.64.64
** Message: nm-ppp-plugin: (nm_phasechange): status 9 / phase 'running'
** Message: nm-ppp-plugin: (nm_ip_up): ip-up event
** Message: nm-ppp-plugin: (nm_ip_up): sending Ip4Config to NetworkManager...
NetworkManager: <info> PPP manager(IP Config Get) reply received.
NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP4 Configure Get) scheduled...
NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP4 Configure Get) started...
NetworkManager: <info> Activation (ttyUSB0) Stage 5 of 5 (IP Configure Commit) scheduled...
NetworkManager: <info> Activation (ttyUSB0) Stage 4 of 5 (IP4 Configure Get) complete.
NetworkManager: <info> Activation (ttyUSB0) Stage 5 of 5 (IP Configure Commit) started...
NetworkManager: <info> (ttyUSB0): device state change: 7 -> 8 (reason 0)
NetworkManager: <info> Policy set 'Telia' (ppp0) as default for routing and DNS.
NetworkManager: <info> Activation (ttyUSB0) successful, device activated.
NetworkManager: <info> Activation (ttyUSB0) Stage 5 of 5 (IP Configure Commit) complete.

ProblemType: Bug
Architecture: i386
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Date: Sat Jan 23 15:44:08 2010
DistroRelease: Ubuntu 9.10
IfupdownConfig:
 auto lo
 iface lo inet loopback
IpRoute:
 10.64.64.64 dev ppp0 proto kernel scope link src 90.233.129.167
 169.254.0.0/16 dev ppp0 scope link metric 1000
 default via 10.64.64.64 dev ppp0 proto static
Package: network-manager 0.8~a~git.20091013t193206.679d548-0ubuntu1
ProcEnviron:
 LC_TIME=en_DK.utf8
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
RfKill:

SourcePackage: network-manager
Uname: Linux 2.6.31-17-generic i686
WpaSupplicantLog:

Revision history for this message
Uno Staver (lnx-staver) wrote :
Revision history for this message
Bob Wanamaker (rlw-nycap) wrote :

Found this bug in Jaunty network-manager_0.7.1~rc4.1.cf199a964-0ubuntu2 source

NetworkManager.c, line 55
#define NM_DEFAULT_PID_FILE LOCALSTATEDIR"/run/NetworkManager.pid"
/etc/init.d/NetworkManager, line 28
PIDDIR=${localstatedir}/run/NetworkManager

That puts the .pid file in /var/run/NetworkManager rather than /var/run and locks up any start/restart

Modify the init.d file to:
PIDDIR=${localstatedir}/run

A quick fix, at least in Jaunty.

Revision history for this message
Uno Staver (lnx-staver) wrote : Re: [Bug 511583] Re: NetworkManager does not get DNS servers

Thanks for the hint! I will look into it.

But my experience from 4 computers is that in Jaunty (9.04) it works
perfectly right out of the box, but in Karmic (9.10) it does not work.

It is sad to have, for the first time since I started with Linux in
1995, machines without Internet connection :-(

/Uno

Bob Wanamaker wrote:
> Found this bug in Jaunty network-manager_0.7.1~rc4.1.cf199a964-0ubuntu2
> source
>
> NetworkManager.c, line 55
> #define NM_DEFAULT_PID_FILE LOCALSTATEDIR"/run/NetworkManager.pid"
> /etc/init.d/NetworkManager, line 28
> PIDDIR=${localstatedir}/run/NetworkManager
>
> That puts the .pid file in /var/run/NetworkManager rather than /var/run
> and locks up any start/restart
>
> Modify the init.d file to:
> PIDDIR=${localstatedir}/run
>
> A quick fix, at least in Jaunty.
>

Revision history for this message
Thomas Hood (jdthood) wrote :

Should be fixed in Precise.

Changed in network-manager (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.