whoopsie-upload-all waits for crash files to upload that have failed to upload

Bug #1319477 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Medium
Unassigned

Bug Description

whoopise logs information about failed uploads to syslog e.g.:

May 14 09:40:52 ubuntu-phablet whoopsie[1665]: Parsing /var/crash/_usr_bin_whoopsie-preferences.0.crash.
May 14 09:40:52 ubuntu-phablet whoopsie[1665]: Uploading /var/crash/_usr_bin_whoopsie-preferences.0.crash.
May 14 09:41:13 ubuntu-phablet whoopsie[1665]: Sent; server replied with: No error
May 14 09:41:13 ubuntu-phablet whoopsie[1665]: Response code: 503
May 14 09:41:13 ubuntu-phablet whoopsie[1665]: Server replied with:
May 14 09:41:13 ubuntu-phablet whoopsie[1665]: <html><body><h1>503 Service Unavailable</h1>#012No server is available to handle this request.#012</body></html>#012
May 14 09:41:13 ubuntu-phablet whoopsie[1665]: Could not upload; processing later (/var/crash/_usr_bin_whoopsie-preferences.0.crash).

Here the report was uploaded but the core dump upload failed. whoopsie does not write a .uploaded files in this case and whoopsie-upload-all waits the full timeout period of 1800s although whoopsie is not making any further attempts to upload that core dump and there are no others to process. This seems inefficient.

Changed in apport (Ubuntu):
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

whoopsie should create a flag file indicating whether or not is online or offline. In the event that whoopsie receives a 503 when trying to upload the core dump then the state should change to offline or a new flag file regarding the ability to upload the coredump. This should appear in /run/whoopsie or /run/lock.

Revision history for this message
Brian Murray (brian-murray) wrote :

Have whoopsie write a file to /var/crash indicating that the core dump failed to upload if that is the case, then modify whoopsie-upload-all to notice the !failed file.

Revision history for this message
Brian Murray (brian-murray) wrote :

I say !failed because the report was uploaded, but the core dump was not. So at least part of the crash was sent.

Revision history for this message
Brian Murray (brian-murray) wrote :

whoopsie-upload-all no longer has a default timeout of many minutes, so it will not wait for all reports to be uploaded. Subsequently, this seems less important.

Changed in apport (Ubuntu):
importance: High → Medium
status: New → Triaged
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in apport (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
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.