TypeError when the delta service failed to apply delta within 60s

Bug #1720369 reported by Jonas Gröger
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Fix Released
Sergio Schvezov

Bug Description

Here is the stacktrace:

$ snapcraft push --release beta intellij-idea-community_2017.2.5_amd64.snap
Pushing intellij-idea-community_2017.2.5_amd64.snap
After pushing, an attempt to release to ['beta'] will be made
Preparing to push '/home/jonas/Code/snap-intellij-idea-community/intellij-idea-community_2017.2.5_amd64.snap' to the store.
Found cached source snap /home/jonas/.cache/snapcraft/projects/intellij-idea-community/snap_hashes/amd64/69d716d63b5f4e26ce13769fa3f60e57fc1bdb3815183c0c0b26fa78e3d44a23ae32bda9b5926a1887638f276182fb21.
Generating xdelta3 delta for intellij-idea-community_2017.2.5_amd64.snap.
Pushing delta /home/jonas/Code/snap-intellij-idea-community/intellij-idea-community_2017.2.5_amd64.snap.xdelta3.
Pushing intellij-idea-community_2017.2.5_amd64.snap.xdelta3 [==================================================] 100%
Error while processing delta...
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/snapcraft/_store.py", line 478, in _push_delta
  File "/usr/lib/python3/dist-packages/snapcraft/storeapi/__init__.py", line 828, in raise_for_code
    raise errors.StoreReviewError(self.__content)
snapcraft.storeapi.errors.StoreReviewError: There has been a problem while processing a snap delta.
  - Delta service failed to apply delta within 60s

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 11, in <module>
    load_entry_point('snapcraft==2.34+17.4', 'console_scripts', 'snapcraft')()
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 570, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2751, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2405, in load
    return self.resolve()
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2411, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/__main__.py", line 19, in <module>
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/store.py", line 118, in push
    snapcraft.push(snap_file, channel_list)
  File "/usr/lib/python3/dist-packages/snapcraft/_store.py", line 410, in push
    result = _push_delta(snap_name, snap_filename, source_snap)
  File "/usr/lib/python3/dist-packages/snapcraft/_store.py", line 481, in _push_delta
    raise storeapi.errors.StoreDeltaApplicationError
TypeError: __init__() missing 1 required positional argument: 'message'

Revision history for this message
Jonas Gröger (jonas-groeger) wrote :

Calls the constructor with str(e)

Changed in snapcraft:
status: New → Confirmed
Revision history for this message
Tony Espy (awe) wrote :

I hit this too with snapcraft 2.35 and upload of the second version of a very large snap (~600M), the patch in comment #1 worked for me too.

Revision history for this message
Olivier Tilloy (osomon) wrote :

The attached patch fixes the issue for me too. Had been hitting the error quite a few times when uploading deltas for the libreoffice snap, which weighs ~400MB.

Changed in snapcraft:
status: Confirmed → Triaged
assignee: nobody → Sergio Schvezov (sergiusens)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: Triaged → In Progress
importance: Undecided → Medium
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.