← Back to issue list

Snapcraft 7.1.1 gives vague error when it can't process package

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1983826
Type
issue
State
open
Author
~koen-vervloesem
Labels
—
Created
Updated
Closed
—

Current evaluation

Vague 'Service unavailable' on snapcraft upload. The text originates from the store's processing pipeline, not Snapcraft; Snapcraft already relays store error messages verbatim. Self-resolved for the reporter after `snapcraft clean`; root cause never diagnosed.

Suggested action: close not a bug

Reason: "Service unavailable. Please try again later (d510601fa...)" is emitted by the store's processing backend, not Snapcraft — the string appears nowhere in the Snapcraft codebase. `notify_upload` (snapcraft/store/client.py ~line 661) already surfaces the store's `status["errors"]` messages verbatim via `SnapcraftError(f"Issues while processing snap:\n{error_string}")`, confirmed by the passing test `test_notify_upload_error`, so there is no vague Snapcraft-side message to improve. The reporter's own follow-up concedes resolution ("After a `snapcraft clean`, the build now is processed correctly") and the root cause was never identified, making this a transient store-side failure rather than a Snapcraft defect.

Evaluated by: mr-cal-bot

Impact: 15 Quick Win: 2 Complexity: 30 Confidence: 78 Actionability: 20

Issue body

Snapcraft 7.1.1 gives me a vague error about "Service unavailable. Please try again later" when uploading a snap package. I first thought the Snapcraft Store was down, as the message suggested it had something to do with the service, but I have been getting this error now for more than three days, and I just tried to upload a previous version of the package and this worked. Command used: ``` snapcraft upload --release=latest/candidate theengs-gateway_0.4.0_amd64.snap Issues while processing snap:g - Service unavailable. Please try again later (d510601fa56b4b2cbc13e60d768e2eca). Full execution log: '/home/koan/.cache/snapcraft/log/snapcraft-20220808-104616.994183.log' ``` Full execution log: ``` 2022-08-08 10:46:16.994 Starting Snapcraft 7.1.1 2022-08-08 10:46:17.078 Retrieving credentials for 'snapcraft' on 'dashboard.snapcraft.io' from keyring 'SecretService Keyring'. 2022-08-08 10:46:17.110 HTTP 'POST' for 'https://dashboard.snapcraft.io/dev/api/snap-push/' with params None and headers {'Accept': 'application/json', 'Authorization': '<macaroon>', 'User-Agent': 'snapcraft/7.1.1 ubuntu/20.04 (x86_64)'} 2022-08-08 10:46:17.350 Uploading... (--->) 2022-08-08 10:46:17.351 Uploading... (<---) 2022-08-08 10:46:17.351 HTTP 'POST' for 'https://storage.snapcraftcontent.com/unscanned-upload/' with params None and headers {'Content-Type': 'multipart/form-data; boundary=61c11bd4790d4d61b455b2dc8e5a28e8', 'Accept': 'application/json', 'User-Agent': 'snapcraft/7.1.1 ubuntu/20.04 (x86_64)'} 2022-08-08 10:46:19.454 Uploading bytes for 'theengs-gateway_0.4.0_amd64.snap' ended, id 'f0e26408-392c-4e4f-830b-d1e24868a2a9' 2022-08-08 10:46:19.454 Retrieving credentials for 'snapcraft' on 'dashboard.snapcraft.io' from keyring 'SecretService Keyring'. 2022-08-08 10:46:19.514 HTTP 'POST' for 'https://dashboard.snapcraft.io/dev/api/snap-push/' with params None and headers {'Accept': 'application/json', 'Authorization': '<macaroon>', 'User-Agent': 'snapcraft/7.1.1 ubuntu/20.04 (x86_64)'} 2022-08-08 10:46:19.662 Retrieving credentials for 'snapcraft' on 'dashboard.snapcraft.io' from keyring 'SecretService Keyring'. 2022-08-08 10:46:19.719 HTTP 'GET' for 'https://dashboard.snapcraft.io/dev/api/snaps/WDvYyYNnf1p9CYuMa9uGYCXB6ZqH1EZp/builds/f0e26408-392c-4e4f-830b-d1e24868a2a9/status' with params None and headers {'Authorization': '<macaroon>', 'User-Agent': 'snapcraft/7.1.1 ubuntu/20.04 (x86_64)'} 2022-08-08 10:46:21.325 Status: processing 2022-08-08 10:46:22.326 Retrieving credentials for 'snapcraft' on 'dashboard.snapcraft.io' from keyring 'SecretService Keyring'. 2022-08-08 10:46:22.367 HTTP 'GET' for 'https://dashboard.snapcraft.io/dev/api/snaps/WDvYyYNnf1p9CYuMa9uGYCXB6ZqH1EZp/builds/f0e26408-392c-4e4f-830b-d1e24868a2a9/status' with params None and headers {'Authorization': '<macaroon>', 'User-Agent': 'snapcraft/7.1.1 ubuntu/20.04 (x86_64)'} 2022-08-08 10:46:23.563 Status: processing 2022-08-08 10:46:24.565 Retrieving credentials for 'snapcraft' on 'dashboard.snapcraft.io' from keyring 'SecretService Keyring'. 2022-08-08 10:46:24.591 HTTP 'GET' for 'https://dashboard.snapcraft.io/dev/api/snaps/WDvYyYNnf1p9CYuMa9uGYCXB6ZqH1EZp/builds/f0e26408-392c-4e4f-830b-d1e24868a2a9/status' with params None and headers {'Authorization': '<macaroon>', 'User-Agent': 'snapcraft/7.1.1 ubuntu/20.04 (x86_64)'} 2022-08-08 10:46:25.669 Status: error while processing 2022-08-08 10:46:25.670 Issues while processing snap: - Service unavailable. Please try again later (d510601fa56b4b2cbc13e60d768e2eca). 2022-08-08 10:46:25.670 Full execution log: '/home/koan/.cache/snapcraft/log/snapcraft-20220808-104616.994183.log' ``` I see the message that the snap is being uploaded, but then the processing fails. Snap-review says "pass" for both versions of the snap. I'd like to know what causes this, so a more concrete error message why this fails would help me. The snap is created from https://github.com/theengs/gateway-snap with `snapcraft --enable-manifest` (without `--enable-manifest` has the same behavior).

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 15
Quick Win: 2
Complexity: 30
Confidence: 78
Actionability: 20
close not a bug Vague 'Service unavailable' on snapcraft upload. The text originates from the store's processing pipeline, not Snapcraft; Snapcraft already relays store error messages verbatim. Self-resolved for the reporter after `snapcraft clean`; root cause never diagnosed.
stealth/space-bunny-alpha
Impact: 28
Quick Win: 8
Complexity: 38
Confidence: 58
Actionability: 45
needs triage Snapcraft 7.1.1 upload shows only 'Service unavailable. Please try again later' when the store rejects a snap; author wants a more descriptive error. Resolved for them by `snapcraft clean`, root cause never diagnosed.
stealth/space-bunny-alpha
Impact: 40
Quick Win: 13
Complexity: 45
Confidence: 87
Actionability: 58
needs triage Snapcraft 7.1.1 reports only a generic service error when uploaded snap processing fails. Current code still extracts only the server message, and the report has no maintainer triage.
qwen/qwen3.8-27b
Impact: 35
Quick Win: 24
Staleness: 95
Complexity: 30
Confidence: 55
Support Request: 20
close stale Snapcraft 7.1.1 returns a vague 'Service unavailable' error when snap upload processing fails, making it hard for users to diagnose the root cause. No maintainer response or labels; issue is 4 years old.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 90
Support Request: 25
close stale Reports vague 'Service unavailable' error during snap upload in Snapcraft 7.1.1 and requests better error messaging. Unlabelled and inactive for over 4 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 20
close stale Report of vague upload error in Snapcraft 7.1.1 requesting better error messages. Unlabelled, zero maintainer comments, and inactive for over four years. Likely outdated given current Snapcraft versions.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
close stale User reports a vague Service unavailable error during snap upload in version 7.1.1, requesting more concrete error messages. Issue has seen no maintainer interaction in nearly four years.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.