[Bug 1328285] Re: can not find hardware address

Steve Langasek steve.langasek at canonical.com
Tue Jun 10 00:43:30 UTC 2014


The above more directly addresses the root cause here, which is that
whoopsie is starting up and trying to find a mac address before the
interface is up, and SIOCGIFCONF only returns the list of interfaces
that are up and have ipv4 addresses associated with them.  The system
identifier generation should not give different results depending on
whether the network is up, especially as whoopsie will run quite early
in boot relative to network configuration (when using NM).  Probing via
/sys/class/net will more reliably get us an answer based on the ethernet
(incl. wifi) interfaces, which is evidently the first choice anyway - so
for most devices, no need to fall back to IMEI at all.

Also, note that even with this change, it's very possible for boot-time
races to cause different system identifiers to be chosen at each boot.
Whatever identifier whoopsie chooses, I think it should really be
recorded on the filesystem, so that it persists across boots rather than
bouncing back and forth between interfaces.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to whoopsie in Ubuntu.
https://bugs.launchpad.net/bugs/1328285

Title:
  can not find hardware address

Status in “whoopsie” package in Ubuntu:
  Triaged

Bug description:
  Working with popey, trying to figure out why his crashes weren't
  reported.

  Jun  9 22:24:28 ubuntu-phablet whoopsie[1934]: whoopsie 0.2.30 starting up.
  Jun  9 22:24:28 ubuntu-phablet whoopsie[1934]: Unable to find a hardware address
  Jun  9 22:24:28 ubuntu-phablet whoopsie[1934]: Using lock path: /var/lock/whoopsie/lock
  Jun  9 22:24:29 ubuntu-phablet whoopsie[1953]: offline
  Jun  9 22:24:33 ubuntu-phablet whoopsie[1953]: message repeated 3 times: [ offline]
  Jun  9 22:24:33 ubuntu-phablet whoopsie[1953]: online
  Jun  9 22:24:34 ubuntu-phablet whoopsie[1953]: online
  Jun  9 22:25:10 ubuntu-phablet whoopsie[1953]: offline
  Jun  9 22:25:13 ubuntu-phablet whoopsie[1953]: message repeated 2 times: [ offline]
  Jun  9 22:25:13 ubuntu-phablet whoopsie[1953]: online

  Notice the "unable to find a hardware address".  Ted suggests:

  14:51 < tedg> bdmurray, I imagine that is because it can't 
                find oFono. Perhaps the upstart jobs need to 
                be adjusted so it doesn't start until after 
                oFono is up.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1328285/+subscriptions



More information about the foundations-bugs mailing list