error uploading snap: package scan took too long
Metadata
Current evaluation
Upload polling was hardened in canonical/snapcraft#480 (commit 2cae24aa5) to ignore transient scan-timeout errors; the report later went stale and was auto-closed.
Resolution: closed stale
Reason: PR #480 addressed transient scan timeouts by continuing to poll, but the maintainer requested a new occurrence and the issue was later auto-closed after 60 days without activity.
Evaluated by: mr-cal-bot
No scores available.
Issue body
I was testing the upload using my keepassx-elopio snap and the staging server.
Two out of four of the uploads failed saying:
Checking package status... |
Upload did not complete.
Some errors were detected:
Package scan took too long.
There are some things to improve in here.
First, I ended up with four versions uploaded into the store, so despite this error, the upload succeeded. Maybe we can ignore this error?
Second, the command exits with 0. This is an error and should exit != 0.
Third, the message is printed in green. This is an error and should be printed in red. Take a look at the screenshot.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Upload polling was hardened in canonical/snapcraft#480 (commit 2cae24aa5) to ignore transient scan-timeout errors; the report later went stale and was auto-closed. | |
| stealth/space-bunny-alpha | — | closed stale | Reported 2016 store upload failures ("Package scan took too long") on staging; elopio noted no recurrence in 2017, marked incomplete, and ~janitor expired it for 60 days of inactivity in May 2017. | |
| stealth/space-bunny-alpha | — | closed resolved | Upload polling was hardened by canonical/snapcraft#480 (commit 2cae24aa5), ignoring transient scan-timeout errors while continuing to report persistent failures. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #480 (commit 2cae24aa5) made upload polling ignore spurious scan-status errors and report persistent failures. | |
| stealth/space-bunny-alpha | — | closed stale | Closed with no recorded fix after staging uploads reported scan timeouts despite succeeding, exit code 0, and green error output. | |
| qwen/qwen3.6-35b-a3b | — | — | Snap upload timeouts, incorrect exit codes, and green error text were reported. The ticket closed without comments or resolution, indicating the bugs were abandoned or never addressed. | |
| qwen/qwen3.6-35b-a3b | — | — | Snap upload failures caused by package scan timeouts, incorrect exit codes, and green error formatting were reported but closed without resolution or comments, indicating the report was abandoned. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#480
(confidence 85%)
Commit 2cae24aa5 hardened upload polling against transient package-scan timeout errors.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1572963 snapcraft upload can fail while monitoring scan status | snapcraft (launchpad) | closed | Fixed by ubuntu-core/snapcraft PR #480 (commit 2cae24aa5), which made upload polling ignore spurious scan-status errors; verified in Snapcraft 2.8.8b. |