← Back to issue list

Snapcraft errors when releasing a snap

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1627865
Type
issue
State
open
Author
~thomir-deactivatedaccount
Labels
Created
Updated
Closed

Current evaluation

Snapcraft push --release hangs in 'Processing...' after a JSONDecodeError from the store status endpoint (storeapi._update_status). No maintainer activity in ~10 years; the storeapi module no longer exists in the codebase.

Suggested action: close stale

Reason: Filed ~10 years ago (3626 days) with zero comments and no maintainer interaction. The traceback references snapcraft/storeapi/__init__.py, which no longer exists — the current repo has snapcraft/store/ instead, and grep shows _update_status only in linters.py, confirming the entire store API client was rewritten. The specific failure mode (unhandled JSONDecodeError in a background thread during release) is tied to code that has been replaced, so the issue is no longer reproducible in its original form.

Impact: 30 Quick Win: 18.0 Staleness: 95 Complexity: 40 Confidence: 75 Support Request: 10

Issue body

I've been releasing lots of snaps to the staging store by running: snapcraft push <snap> --release <channel> ... and they've all gone fine, but one upload I got this: ``` Uploading ./thomir-says_0.0.1a_amd64.snap [===========================================================================================================================================] 100% Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/usr/lib/python3.5/threading.py", line 862, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3/dist-packages/snapcraft/storeapi/__init__.py", line 442, in _update_status for content in self._get_status(): File "/usr/lib/python3/dist-packages/snapcraft/storeapi/__init__.py", line 452, in _get_status content = requests.get(self.__status_details_url).json() File "/usr/lib/python3/dist-packages/requests/models.py", line 808, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 516, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ``` This is when snapcraft is in the 'processing' phase, which I believe is when it's actually relasing the snap, rather than pushing it. Snapcraft is then stuck in the 'Processing...' stage, and never exits. The store should never send bad data (I'll try and find something in the staging store logs and report a bug there as well), but snapcraft should handle it better.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 18.0
Staleness: 95
Complexity: 40
Confidence: 75
Support Request: 10
close stale Snapcraft push --release hangs in 'Processing...' after a JSONDecodeError from the store status endpoint (storeapi._update_status). No maintainer activity in ~10 years; the storeapi module no longer exists in the codebase.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 10
close stale Unhandled JSONDecodeError during snap release causes snapcraft to hang. Reported ~10 years ago using Python 3.5 with no maintainer response. Clearly obsolete due to age and API changes.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 10
close stale Unhandled JSONDecodeError during snap release causes snapcraft to hang. Issue is nearly 10 years old with no maintainer interaction or updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 5
close stale Unhandled JSONDecodeError during snap release causes snapcraft to hang. Reported ~10 years ago using Python 3.5, with zero comments and no maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 100
Complexity: 25
Confidence: 95
Support Request: 10
close stale snapcraft push --release fails with a JSON decode error during processing, leaving the command stuck. The tool should handle malformed store responses gracefully. Currently open, unassigned, and inactive for over 3550 days, awaiting triage.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft (launchpad)#1761488 (confidence 55%)

    Another storeapi release failure (StoreReleaseError) from the same era; closed without resolution. Same legacy storeapi code path that has since been rewritten.

Related issues

Issue Project State Summary Similarity
#1761488 snapcraft 2.39.2 failed to release a snap: snapcraft.storeapi.errors.StoreReleaseError: <exception str() failed> snapcraft (launchpad) closed Closed without resolution. The report details a StoreReleaseError during snapcraft 2.39.2 release attempts. With zero maintainer comments and significant age, the issue was likely abandoned. No fix or workaround was provided.
75%
#6299 Snapcraft upload+release not capturing review error snapcraft open snapcraft upload --release reports success despite store review failures due to incorrect status handling in notify_upload. Issue is unlabelled and inactive for 74 days.
71%