Spoke to @sergiusens who suggested I track it here for him and @kalikiana to look at.
Here’s the pertinent bit of the log, but the full log is on pastebin.
Installing /run/snapcraft_433.snap
error: cannot perform the following tasks:
- Mount snap "snapcraft" (433) (internal error: could not unmarshal state entry "snap-type": invalid snap type: "")
- Setup snap "snapcraft" (433) security profiles (cannot find installed snap "snapcraft" at revision 433)
Stopping colossus:snapcraft-loverly-cenotaphic-altha
Traceback (most recent call last):
File "/snap/snapcraft/433/bin/snapcraft", line 11, in <module>
load_entry_point('snapcraft==2.33', 'console_scripts', 'snapcraft')()
File "/snap/snapcraft/433/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/snap/snapcraft/433/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/snap/snapcraft/433/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/snap/snapcraft/433/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/snap/snapcraft/433/lib/python3.6/site-packages/snapcraft/cli/__main__.py", line 19, in <module>
run(prog_name='snapcraft')
File "/snap/snapcraft/433/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/snap/snapcraft/433/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/433/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/snap/snapcraft/433/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/433/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/433/lib/python3.6/site-packages/snapcraft/cli/lifecycle.py", line 188, in cleanbuild
lifecycle.cleanbuild(project_options, remote)
File "/snap/snapcraft/433/lib/python3.6/site-packages/snapcraft/internal/lifecycle.py", line 357, in cleanbuild
metadata=config.get_metadata(), remote=remote).execute()
File "/snap/snapcraft/433/lib/python3.6/site-packages/snapcraft/internal/lxd.py", line 140, in execute
self._inject_snapcraft()
File "/snap/snapcraft/433/lib/python3.6/site-packages/snapcraft/internal/lxd.py", line 185, in _inject_snapcraft
self._inject_snap('snapcraft')
File "/snap/snapcraft/433/lib/python3.6/site-packages/snapcraft/internal/lxd.py", line 240, in _inject_snap
self._container_run(cmd)
File "/snap/snapcraft/433/lib/python3.6/site-packages/snapcraft/internal/lxd.py", line 104, in _container_run
check_call(['lxc', 'exec', self._container_name, '--'] + cmd)
File "/snap/snapcraft/433/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['lxc', 'exec', 'colossus:snapcraft-loverly-cenotaphic-altha', '--', 'snap', 'install', '/run/snapcraft_433.snap', '--classic']' returned non-zero exit status 1.
I’m doing a snapcraft cleanbuild --remote colossus
where colossus
is a server on my lan which has lxd installed as a deb.
alan@colossus:~$ apt-cache policy lxd
lxd:
Installed: 2.0.10-0ubuntu1~16.04.1
Candidate: 2.0.10-0ubuntu1~16.04.1
Version table:
2.16-0ubuntu2~ubuntu16.04.1 100
100 http://gb.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
*** 2.0.10-0ubuntu1~16.04.1 500
500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.0.2-0ubuntu1~16.04.1 500
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
2.0.0-0ubuntu4 500
500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages