Snapcraft errors when releasing a snap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
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-
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
for content in self._get_status():
File "/usr/lib/
content = requests.
File "/usr/lib/
return complexjson.
File "/usr/lib/
return _default_
File "/usr/lib/
obj, end = self.raw_decode(s)
File "/usr/lib/
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.
```
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.
El 26/09/16 a las 18:53, Thomi Richards escribió: says_0. 0.1a_amd64. snap [====== ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ] 100% python3. 5/threading. py", line 914, in _bootstrap_inner python3. 5/threading. py", line 862, in run *self._ args, **self._kwargs) python3/ dist-packages/ snapcraft/ storeapi/ __init_ _.py", line 442, in _update_status python3/ dist-packages/ snapcraft/ storeapi/ __init_ _.py", line 452, in _get_status get(self. __status_ details_ url).json( ) python3/ dist-packages/ requests/ models. py", line 808, in json loads(self. text, **kwargs) python3/ dist-packages/ simplejson/ __init_ _.py", line 516, in loads decoder. decode( s) python3/ dist-packages/ simplejson/ decoder. py", line 370, in decode python3/ dist-packages/ simplejson/ decoder. py", line 400, in raw_decode scanner. JSONDecodeError : Expecting value: line 1 column 1 (char 0)
> Public bug reported:
>
> 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-
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/
> self.run()
> File "/usr/lib/
> self._target(
> File "/usr/lib/
> for content in self._get_status():
> File "/usr/lib/
> content = requests.
> File "/usr/lib/
> return complexjson.
> File "/usr/lib/
> return _default_
> File "/usr/lib/
> obj, end = self.raw_decode(s)
> File "/usr/lib/
> return self.scan_once(s, idx=_w(s, idx).end())
> simplejson.
> ```
>
>
> 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.
Did it actually finish processing on the store side? With the data
returned from the store (which is a state) all snapcraft can do is
timeout but that doesn't feel like a good idea if the store just happens
to be slow to process the snap.