hash check fails after download (no retry)? with misleading error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Michael Nelson |
Bug Description
We got this kind of errored install sequence. I thought (also from once inspecting the code) that failed delta would end up with a full download, not an error? is something changed/off here?
ErrorMessage
download-snap: Undoing
validate-snap: Done
mount-snap: Undo
copy-snap-data: Undo
setup-profiles: Undo
link-snap: Undo
INFO Requested daemon restart.
set-auto-aliases: Undo
setup-aliases: Undo
start-snap-
run-hook: Done
download-snap: Error
ERROR sha3-384 mismatch after patching "libreoffice": got e575a177de30352
validate-snap: Hold
mount-snap: Hold
copy-snap-data: Hold
setup-profiles: Hold
link-snap: Hold
set-auto-aliases: Hold
setup-aliases: Hold
start-snap-
run-hook: Hold
ProblemType
Snap
Snap
core
Changed in snapd: | |
assignee: | nobody → Michael Nelson (michael.nelson) |
description: | updated |
summary: |
- applying delta fails and whole download errors + hash check fails after download (no retry)? with misleading error |
Indeed - there is even a test-case that ensures if any error is raised during the delta download and application, that a the normal download continues.
I don't suppose it's possible to get log output (I'll start now trying to reproduce locally to confirm), but it looks to me like the HashError always uses the error 'sha3-384 mismatch after patching...', even though it's used in contexts outside of deltas - see store.go:1290, which is for the normal download.
That is, it could be that the above error is a sha3-384 mismatch on the full download from line 1290, and has nothing to do with patching? Anyway, I won't assume that and will try to reproduce locally to see the full logs.