← Back to team overview

touch-packages team mailing list archive

[Bug 1340604] Re: [phone] crash files are only uploaded on boot

 

In the past there were issues with how whoopsie logged (LP: #1245524),
when I run whoopsie in the foreground on a Nexus 4 that is not connected
to a wireless network, but is connected to a cell network I saw the
following in my terminal.

sudo CRASH_DB_URL=https://daisy.ubuntu.com APPORT_REPORT_DIR=/var/crash/
whoopsie -f

Using lock path: /var/crash/whoopsie_lock
Network connection found that may be a paid data plan.offline

However, when I did not run whoopsie in the foreground and ran it as a
service I saw the following in syslog.

Jul 22 12:38:31 ubuntu-phablet whoopsie[2434]: whoopsie 0.2.34 starting up.
Jul 22 12:38:31 ubuntu-phablet whoopsie[2434]: Using lock path: /var/lock/whoopsie/lock

This leads me to believe it is a problem with the some part of this:

    if (!foreground) {
        close_log ();
        daemonize ();
        open_log();
    }

However, it would be good if someone could confirm my experience.  I
don't think you'd need to be connected to a cell network, rather just
not connected to wifi to see an offline message in the log file.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to whoopsie in Ubuntu.
https://bugs.launchpad.net/bugs/1340604

Title:
  [phone] crash files are only uploaded on boot

Status in “whoopsie” package in Ubuntu:
  New

Bug description:
  On the phone (mako utopic #125) it seems that crash files are only
  uploaded on boot and not when the crash occurs. whoopsie is running
  but doesn't seem to detect that a crash file is ready for upload.

  = Test Case =
  1. In a shell run:
      $ bash -c 'kill -SEGV $$'
  2. Wait until the file _bin_bash.32011.uploaded is created

  -> Check that after a moment whoopsie-upload-all is running
  -> Check the progress of the upload in /var/log/upstart/apport-noui.log
  -> Upon upload, check that /var/log/syslog contains a OOPS entry from whoopsie

  = Actual Result =
  whoopsie-upload-all times out and the crash file is not uploaded. If the device is rebooted, the crash is uploaded immediately.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: whoopsie 0.2.34
  Uname: Linux 3.4.0-5-mako armv7l
  ApportVersion: 2.14.4-0ubuntu2
  Architecture: armhf
  CrashReports:
   640:32011:114:63916:2014-07-11 10:44:24.101108181 +0200:2014-07-11 10:44:07.613514715 +0200:/var/crash/_bin_bash.32011.crash
   644:32011:114:0:2014-07-11 10:44:24.101108181 +0200:2014-07-11 10:44:24.101108181 +0200:/var/crash/_bin_bash.32011.upload
  Date: Fri Jul 11 10:45:02 2014
  InstallationDate: Installed on 2014-07-11 (0 days ago)
  InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140711-020204)
  RelatedPackageVersions: apport-noui 2.14.4-0ubuntu2
  SourcePackage: whoopsie
  UpgradeStatus: No upgrade log present (probably fresh install)

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


References