Snapcraft getting stuck at 99% during pull stage

This setup has been working previously and continues to works on multiple other machines.
However on one machine snapcraft now broke and it is getting stacked at
99% [Working] during pull stage.

Build machine has multiple architectures enabled, however even when I removed alien architectures snapcraft is still getting stacked at pull stage. Again this set was working and stopped working without apparent reason and is still working on other machine with identical setup.

Running: snapcraft pull --enable-geoip does complete successfully without any error,

Get:101 xenial-updates/main Translation-en [325 kB] Get:102 xenial-updates/restricted amd64 Packages [7560 B] Get:103 xenial-updates/restricted i386 Packages [7520 B] Get:104 xenial-updates/restricted Translation-en [2272 B] Get:105 xenial-updates/universe amd64 Packages [633 kB] Get:106 xenial-updates/universe i386 Packages [579 kB] Get:107 xenial-updates/universe Translation-en [254 kB] Get:108 xenial-updates/multiverse amd64 Packages [16.4 kB] Get:109 xenial-updates/multiverse i386 Packages [15.5 kB] Get:110 xenial-updates/multiverse Translation-en [8344 B] 99% [Working] ^CError in function stop Sorry, Snapcraft ran into an error when trying to running through its lifecycle that generated the following traceback: Traceback (most recent call last): File "/snap/snapcraft/1631/lib/python3.5/site-packages/apt/progress/", line 233, in stop def stop(self): KeyboardInterrupt

Can you try and delete ~/.cache/snapcraft?

1 Like

Yes I did try that as first measure when problem occurred, but it made no difference

@sergiusens any update what to do?

@sergiusens anybody here?

Yes, but I have no specific answers for you aside from saying that the work we are doing on build VMs should prevent this from happening in any future.

Can we get more details about your environment? This might also get better traction as a bug report to not into some void as you are seeing it is.

it’s fairly standard setup:
Ubuntu 16.04 server install

  • amd64 arch
  • this has been working machine for past couple of months, I can’t really pin point when it broke and what preceded it

I have now removed everything from sources to the point that snapcraft started to work again. Interestingly when I started to add sources one by one back, it broken on docker sources

Error is now also more descriptive, rather than pending on ‘working’

Failed to update the package cache: Some files could not be downloaded:

E:The method driver /snap/snapcraft/1651/usr/lib/apt/methods/https could not be found.
W:Is the package apt-transport-https installed?
E:Failed to fetch  
E:Some index files failed to download. They have been ignored
or old ones used instead.

Check that the sources on your host are configured correctly.

removing docket.list again fixes it
For reference docker.list
deb [arch=amd64,i386] ubuntu-xenial main

Why not just install this package as the error message indicates?

Ah, this can be fixed for the time being. That you were running using edge could have been anticipated in the initial post :wink: