Opened at 2013-11-12T01:45:59Z
Last modified at 2021-03-30T18:40:19Z
#2101 new defect
improve error messages from failed uploads
Reported by: | zooko | Owned by: | daira |
---|---|---|---|
Priority: | normal | Milestone: | soon |
Component: | code-peerselection | Version: | 1.10.0 |
Keywords: | upload error servers-of-happiness transparency | Cc: | |
Launchpad Bug: |
Description
The error message when an upload fails is a "wall of text". It is hard to read. It looks like this:
[Failure instance: Traceback: <class 'allmydata.interfaces.UploadUnhappinessError'>: server selection failed for <Tahoe2ServerSelector for upload dglev>: shares could be placed or found on only 0 server(s). We were asked to place shares on at least 4 server(s) such that any 3 of them have enough shares to recover the file. (placed 0 shares out of 10 total (10 homeless), want to place shares on at least 4 servers such that any 3 of them have enough shares to recover the file, sent 5 queries to 5 servers, 5 queries asked about existing shares (of which 0 failed due to an error), 0 queries placed some shares, 0 placed none (of which 0 placed none due to the server being full and 0 placed none due to an error))
Daira pointed out that even though the current error message is too long, it still lacks the most important information that you might want to use in your response to this error, which is the identities of which servers failed and which succeeded.
A possible improvement to this would be to return a data structure instead of a string, similar to the CheckResults.
There is probably a related data structure already being produced and displayed over on the "Recent Uploads and Downloads" page for the failed upload.
Change History (11)
comment:1 Changed at 2013-11-12T01:47:23Z by zooko
comment:2 Changed at 2013-11-12T01:50:05Z by zooko
comment:3 Changed at 2013-11-14T23:53:15Z by daira
- Component changed from unknown to code-peerselection
- Milestone changed from undecided to 1.12.0
comment:4 Changed at 2013-12-05T16:56:55Z by zooko
comment:5 Changed at 2014-12-11T22:34:09Z by zooko
The best solution would be for it to just show, visually, a complete map of which shares went to which servers, and which shares failed when it attempted to send them to which servers, and how each one failed.
comment:6 Changed at 2014-12-11T22:40:31Z by zooko
User complaining about this on the mailing list: https://tahoe-lafs.org/pipermail/tahoe-dev/2014-December/009279.html
comment:7 Changed at 2014-12-11T23:24:52Z by daira
#1941 was a duplicate. Its description was:
I heard that the volunteergrid2 project has shut down. The participants, in explaining why they gave up on it, said that they often got "unhappiness errors" when they tried to upload files, so therefore they never trusted the grid with their backups.
There are two problems here that this ticket attempts to address:
- They didn't trust the grid. Why? Not because the upload failed, but because they didn't know why the upload had failed. They interpreted this as evidence that Tahoe-LAFS was buggy or unreliable. If they had seen a clear, understandable explanation that said "This upload failed because you specified you required at least 15 servers, and of the 20 servers on your grid, 10 of them are currently unreachable.", then they would have continued to trust the Tahoe-LAFS software and they would have known what changes to make (to their grid or their happiness parameter) to get what they wanted. (Note that information was actually already in those "unhappiness errors", but they didn't read or understand it. See below.)
- We (the tahoe-lafs developers) don't know why their uploads failed. Perhaps Tahoe-LAFS was harboring some previously-unknown bug. Perhaps too many of their servers were on flaky home DSL that timed-out most requests. Perhaps it was something else. We can't improve the software without a working feedback loop whereby we can learn the details of failures.
This ticket is to make it so that when an upload fails, you can read an understandable story of what happened that led to the failure, specifying which servers your client tried to use and what each server did.
Note that the basic information of how many servers were reachable, etc., is encoded into the error message that users currently see, but users do not read that error message, because it contains a Python traceback, so they just gloss over it. So this ticket is to make two changes to that:
- Add more information. Not just the number of servers that failed, but which specific servers (identifiers, nicknames, IP addresses) and when.
- Make it a human-oriented HTML page, not a Python traceback. Most users will not read anything that contains a Python traceback.
comment:8 Changed at 2016-03-22T05:02:25Z by warner
- Milestone changed from 1.12.0 to 1.13.0
Milestone renamed
comment:9 Changed at 2016-06-28T18:17:14Z by warner
- Milestone changed from 1.13.0 to 1.14.0
renaming milestone
comment:10 Changed at 2020-06-30T14:45:13Z by exarkun
- Milestone changed from 1.14.0 to 1.15.0
Moving open issues out of closed milestones.
comment:11 Changed at 2021-03-30T18:40:19Z by meejah
- Milestone changed from 1.15.0 to soon
Ticket retargeted after milestone closed
Mark pointed out that this is a bad error message, too: