On Thu, 27 Aug 2009 15:53:22 +0200, Michael Biebl <[email protected]> wrote:
> Sorry, was to quick with closing this bug report. There is indeed code to
> update /etc/hosts if the hostname is not found in /etc/hosts
> 
> Could you send me the output of "hostname", "ifconfig" and /etc/hostname.

Thanks for the quick response!

Here is the information you requested:

st...@heffalump:~% hostname
heffalump.sk2.org
st...@heffalump:~% /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:6e:d7:0a:b1  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fed7:ab1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4420900 errors:0 dropped:0 overruns:0 frame:0
          TX packets:990084 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1125135528 (1.0 GiB)  TX bytes:126026694 (120.1 MiB)
          Interrupt:22 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2694538 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2694538 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4238997839 (3.9 GiB)  TX bytes:4238997839 (3.9 GiB)

st...@heffalump:~% cat /etc/hostname
heffalump.sk2.org


I may have an idea of what caused the problem, given the behaviour you
mention. When I installed network-manager, it dropped eth0 and didn’t bring
it back up (I’m attaching the logs); if it then tried to determine
whether /etc/hosts contained a valid definition for the hostname, it might
have decided that heffalump.sk2.org didn’t correspond to anything it knew
about... I haven’t looked at the code so this speculation may be completely
useless!

Regards,

Stephen
Aug 24 08:46:49 heffalump NetworkManager: <info>  starting...
Aug 24 08:46:49 heffalump dbus-daemon: Reloaded configuration
Aug 24 08:46:49 heffalump NetworkManager: <info>  (eth0): new Ethernet device (driver: 'skge')
Aug 24 08:46:49 heffalump NetworkManager: <info>  (eth0): exported as /org/freedesktop/Hal/devices/net_00_0c_6e_d7_0a_b1
Aug 24 08:46:49 heffalump NetworkManager: <info>  (ttyS1): ignoring due to lack of mobile broadband capabilties
Aug 24 08:46:49 heffalump NetworkManager: <info>  (ttyS0): ignoring due to lack of mobile broadband capabilties
Aug 24 08:46:49 heffalump NetworkManager: <info>  Trying to start the supplicant...
Aug 24 08:46:49 heffalump NetworkManager: <info>  Trying to start the system settings daemon...
Aug 24 08:46:49 heffalump NetworkManager: <info>  (eth0): carrier now ON (device state 1)
Aug 24 08:46:49 heffalump dbus-daemon: Reloaded configuration
Aug 24 08:46:54 heffalump NetworkManager: <info>  (eth0): device state change: 1 -> 2
Aug 24 08:46:54 heffalump NetworkManager: <info>  (eth0): preparing device.
Aug 24 08:46:54 heffalump NetworkManager: <info>  (eth0): deactivating device (reason: 2).
Aug 24 08:46:54 heffalump NetworkManager: <info>  Setting system hostname to 'localhost.localdomain' (no default device)
Aug 24 08:46:54 heffalump NetworkManager: <WARN>  check_one_route(): (eth0) error -34 returned from rtnl_route_del(): Sucess#012
Aug 24 08:46:54 heffalump NetworkManager: <info>  (eth0): device state change: 2 -> 3
Aug 24 08:46:54 heffalump nm-dispatcher.action: nm_dispatcher_action: Invalid connection: '(null)' / 'connection setting not found' invalid: 1
Aug 24 08:46:54 heffalump nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1.
Aug 24 08:47:05 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:47:15 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:47:17 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:47:19 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:47:19 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:47:36 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:47:46 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:47:48 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:47:50 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:47:50 heffalump pdnsd[5517]: icmp ping: sendto() failed: Network is unreachable.
Aug 24 08:48:50 heffalump NetworkManager: <info>  Trying to start the system settings daemon...
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: init!
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: update_system_hostname
Aug 24 08:48:50 heffalump nm-system-settings:    SCPluginIfupdown: guessed connection type (eth0) = 802-3-ethernet
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:eth0, type:802-3-ethernet, autoconnect:0, id:Ifupdown (eth0), uuid: 681b428f-0000-0000-0000-000001040000
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: addresses count: 1
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: No dns-nameserver configured in /etc/network/interfaces
Aug 24 08:48:50 heffalump nm-system-settings:    SCPluginIfupdown: guessed connection type (ethx) = 802-3-ethernet
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:ethx, type:802-3-ethernet, autoconnect:0, id:Ifupdown (ethx), uuid: dab05595-0000-0000-0000-000021000000
Aug 24 08:48:50 heffalump nm-system-settings:    SCPluginIfupdown: guessed connection type (adsl) = 802-3-ethernet
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:adsl, type:802-3-ethernet, autoconnect:0, id:Ifupdown (adsl), uuid: cbac7bb5-0000-0000-0000-000019000000
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: addresses count: 1
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: No dns-nameserver configured in /etc/network/interfaces
Aug 24 08:48:50 heffalump nm-system-settings:    SCPluginIfupdown: guessed connection type (ppp0) = ppp
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:ppp0, type:ppp, autoconnect:0, id:Ifupdown (ppp0), uuid: ab095325-0000-0000-0000-000031000000
Aug 24 08:48:50 heffalump nm-system-settings: <WARN>  ifupdown_update_connection_from_if_block(): connection broken: type (3)
Aug 24 08:48:50 heffalump nm-system-settings:    SCPluginIfupdown: guessed connection type (eth9) = 802-3-ethernet
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:eth9, type:802-3-ethernet, autoconnect:0, id:Ifupdown (eth9), uuid: 208755cf-0000-0000-0000-000019000000
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: autoconnect
Aug 24 08:48:50 heffalump nm-system-settings:    SCPluginIfupdown: management mode: unmanaged
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: devices added (udi: /org/freedesktop/Hal/devices/net_00_0c_6e_d7_0a_b1, iface: eth0)
Aug 24 08:48:50 heffalump nm-system-settings:    Ifupdown: get unmanaged devices count: 1
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: (145427792) ... get_connections.
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: (145427792) connections count: 5
Aug 24 08:48:50 heffalump nm-system-settings:    Ifupdown: get unmanaged devices count: 1
Aug 24 08:48:50 heffalump nm-system-settings:    SCPlugin-Ifupdown: end _init.
Aug 24 08:48:50 heffalump nm-system-settings: Loaded plugin ifupdown: (C) 2008 Canonical Ltd.  To report bugs please use the NetworkManager mailing list.
Aug 24 08:48:50 heffalump nm-system-settings: Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
Aug 24 08:48:50 heffalump NetworkManager: <info>  (eth0): now unmanaged
Aug 24 08:48:50 heffalump NetworkManager: <info>  (eth0): device state change: 3 -> 1
Aug 24 08:48:50 heffalump NetworkManager: <info>  (eth0): cleaning up...
Aug 24 08:48:50 heffalump NetworkManager: <info>  (eth0): taking down device.
Aug 24 08:48:50 heffalump NetworkManager: <info>  (eth0): carrier now OFF (device state 1)
Aug 24 08:48:50 heffalump NetworkManager: <info>  Setting system hostname to 'heffalump.sk2.org' (from system configuration)
Aug 24 08:48:50 heffalump NetworkManager: <WARN>  connection_get_settings_cb(): connection_get_settings_cb: Invalid connection: 'NMSettingConnection' / 'type' invalid: 3
Aug 24 08:48:50 heffalump nm-dispatcher.action: nm_dispatcher_action: Invalid connection: '(null)' / 'connection setting not found' invalid: 1
Aug 24 08:48:50 heffalump nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1.
Aug 24 08:49:40 heffalump kernel: [53988.961352] ADDRCONF(NETDEV_UP): eth0: link is not ready
Aug 24 08:49:42 heffalump NetworkManager: <info>  (eth0): carrier now ON (device state 1)
Aug 24 08:51:22 heffalump NetworkManager: <WARN>  nm_signal_handler(): Caught signal 15, shutting down normally.
Aug 24 08:51:22 heffalump NetworkManager: <info>  exiting (success)
Aug 24 08:51:23 heffalump NetworkManager: <info>  starting...
Aug 24 08:51:23 heffalump NetworkManager: <info>  (eth0): new Ethernet device (driver: 'skge')
Aug 24 08:51:23 heffalump NetworkManager: <info>  (eth0): exported as /org/freedesktop/Hal/devices/net_00_0c_6e_d7_0a_b1
Aug 24 08:51:23 heffalump NetworkManager: <info>  (ttyS1): ignoring due to lack of mobile broadband capabilties
Aug 24 08:51:23 heffalump NetworkManager: <info>  (ttyS0): ignoring due to lack of mobile broadband capabilties
Aug 24 08:51:23 heffalump NetworkManager: <info>  (eth0): now unmanaged
Aug 24 08:51:23 heffalump NetworkManager: <info>  (eth0): carrier now ON (device state 1)
Aug 24 08:51:23 heffalump NetworkManager: <WARN>  connection_get_settings_cb(): connection_get_settings_cb: Invalid connection: 'NMSettingConnection' / 'type' invalid: 3

Reply via email to