← Back to issue list

Error when installing snaps

View original Github issue

Metadata

Project
fetch-service
Number
#129
Type
issue
State
closed
Author
tigarmo
Labels
—
Created
Updated
Closed

Current evaluation

Snap installation rejection was fixed by merged PR #145, correcting validation of successful Snap Store refresh responses.

Resolution: closed resolved

Reason: The maintainer confirmed the report was addressed in PR #145. That PR merged as commit b12730c and fixed the snap refresh inspector so valid Snap Store responses are not falsely rejected.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description When integrating with sourcecraft, a project with `build-snaps: [go]` fails during the snap installation - the fetch-service explicitly rejects one of the responses. One extra detail here is that if I shell into the session after the failure, running `snap install go --classic` manually then succeeds. Here's the session report: [snap-install-failure.json](https://github.com/user-attachments/files/16028684/snap-install-failure.json) ### To Reproduce fetch-service is started in the same way as described in #128 . `sourcecraft.yaml` has a part with `build-snaps: [go]`. ### Relevant log output ```shell 2024/06/27 08:59:26.512805 INFO : [b130d957d6164a70a99b84063fe9d54c] POST https://api.snapcraft.io:443/v2/snaps/refresh: 200 OK (application/json) 2024/06/27 08:59:26.840092 INFO : default: response opinion set to 0 2024/06/27 08:59:26.840126 INFO : [b130d957d6164a70a99b84063fe9d54c] artefact rejected: e4457fa000b98e1f469866ed93b8a9a428e3d944a67605e53ef30a5554a749da 1888 (application/json) 2024/06/27 08:59:26.840152 INFO : e4457fa000b98e1f469866ed93b8a9a428e3d944a67605e53ef30a5554a749da: artefact rejected by inspectors ***** LOG OF SUCCESSFUL EXECUTION AFTERWARDS, SHELLED INTO THE SESSION: ***** 2024/06/27 09:02:25.156300 INFO : request to api.snapcraft.io 2024/06/27 09:02:25.156367 INFO : default: request opinion set to 0 2024/06/27 09:02:25.156379 INFO : [b130d957d6164a70a99b84063fe9d54c] request approved: POST https://api.snapcraft.io:443/v2/snaps/refresh 2024/06/27 09:02:26.085986 INFO : request to api.snapcraft.io:443: IP address 185.125.188.54 2024/06/27 09:02:26.086020 INFO : Access to 185.125.188.54 allowed 2024/06/27 09:02:26.086351 INFO : [b130d957d6164a70a99b84063fe9d54c] POST https://api.snapcraft.io:443/v2/snaps/refresh: 200 OK (application/json) 2024/06/27 09:02:26.086371 INFO : artefact e4457fa000b98e1f469866ed93b8a9a428e3d944a67605e53ef30a5554a749da already downloaded ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Snap installation rejection was fixed by merged PR #145, correcting validation of successful Snap Store refresh responses.
stealth/space-bunny-alpha — closed resolved Fixed in fetch-service PR #145 (commit b12730c), correcting snap-refresh validation so successful Snap Store responses are no longer falsely rejected during build-snaps installation.
qwen/qwen3.6-35b-a3b — — Resolved fetch-service response rejection causing snapcraft installation failures. Fix merged in pull request #145.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/fetch-service#145 (confidence 100%)

    Merged snap refresh inspector fix referenced by the issue's closing comment.

Related issues

Issue Project State Summary Similarity
#3502 snaps: do not validate snaps before install/refresh (Fixes LP#1901733) snapcraft merged Merged #3502 (commit 7ab76e084), removing redundant pre-install/refresh validation because store API branch checks already cover it; fixes LP#1901733.
75%