[Bug 297329] Re: Presence server crashes if no interface is configure
mungewell
simon at mungewell.org
Fri Nov 14 04:24:10 GMT 2008
Checked and still crashes. It seems to do it when the default interface
is up but not connected.
Method: remove ethernet cable and 'sudo /etc/init.d/networking restart', watch the dhclient timeout.
--
simon at destiny:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces... RTNETLINK answers: No such process
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:d0:59:b7:80:76
Sending on LPF/eth0/00:d0:59:b7:80:76
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.32.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:d0:59:b7:80:76
Sending on LPF/eth0/00:d0:59:b7:80:76
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
[ OK ]
simon at destiny:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 1000 0 0 eth0
--
It does not crash (testing after each command) if I do:
1) 'sudo ifdown eth0'
2) 'sudo ifconfig eth0 up' with no parameters
3) 'sudo ifconfig eth0 up 192.168.1.123 netmask 255.255.255.0'
4) 'sudo route add -net default gw 192.168.1.123'
I did try 'sudo route add -net default gw 0.0.0.0', but apparently this
is illegal.
After the crash presence server is not running.
Mungewell.
** Attachment added: "presenceservice.log"
http://launchpadlibrarian.net/19633574/presenceservice.log
--
Presence server crashes if no interface is configure
https://bugs.launchpad.net/bugs/297329
You received this bug notification because you are a member of Sugar
Team, which is subscribed to sugar in ubuntu.
Status in “sugar” source package in Ubuntu: New
Bug description:
Binary package hint: sugar
It looks like Sugar (and Sugar-Emulator) will fail to start if there is not an ethx(??) interface configured.
--
1226490893.407684 ERROR dbus.proxies: Introspect error on org.laptop.Sugar.Presence:/org/laptop/Sugar/Presence: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
1226490893.946251 WARNING sugar.presence.presenceservice: Unable to retrieve local user/owner
from presence service: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Traceback (most recent call last):
File "/usr/bin/sugar-shell", line 32, in <module>
main()
File "/usr/share/sugar/shell/main.py", line 153, in main
view.Shell.get_instance()
File "/usr/share/sugar/shell/view/Shell.py", line 259, in get_instance
_instance = Shell()
File "/usr/share/sugar/shell/view/Shell.py", line 55, in __init__
self._model = shellmodel.get_instance()
File "/usr/share/sugar/shell/model/shellmodel.py", line 102, in get_instance
_instance = ShellModel()
File "/usr/share/sugar/shell/model/shellmodel.py", line 48, in __init__
self._owner = ShellOwner()
File "/usr/share/sugar/shell/model/Owner.py", line 76, in __init__
self._invites = Invites()
File "/usr/share/sugar/shell/model/Invites.py", line 78, in __init__
owner = ps.get_owner()
File "/usr/lib/python2.5/site-packages/sugar/presence/presenceservice.py", line 452, in get_owner
raise RuntimeError("Could not get owner object.")
RuntimeError: Could not get owner object.
--
Doing 'sudo ifconfig eth0 192.168.1.20 netmask 255.255.255.0' allow the boot to continue and start Sugar interface.
Simon.
More information about the Ubuntu-sugarteam
mailing list