I’m trying to use a develop snapd locally, building the sources using snapcraft and installing the resulting snap (following the hacking.md snapcraft section).
At this point I was on my own:
https://github.com/snapcore/snapd/blob/master/HACKING.md#building-the-snap-with-snapcraft .
Running “#snapcraft” on snap/snapcraft.yml produced the following error:
launch failed: Unable to find an image matching "core". Please use `multipass find` for supported remotes and images.
An error occurred with the instance when trying to launch with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
That message was kinda deceiving since I was able to multipass find and launch “core”
Image Aliases Version Description
snapcraft:core18 18.04 20201111 Snapcraft builder for Core 18
snapcraft:core20 20.04 20210921 Snapcraft builder for Core 20
snapcraft:core22 22.04 20220426 Snapcraft builder for Core 22
snapcraft:devel 20221105 Snapcraft builder for the devel series
core core16 20200818 Ubuntu Core 16
core18 20211124 Ubuntu Core 18
18.04 bionic 20221014 Ubuntu 18.04 LTS
20.04 focal 20221018 Ubuntu 20.04 LTS
22.04 jammy,lts 20221101.1 Ubuntu 22.04 LTS
22.10 kinetic 20221101 Ubuntu 22.10
appliance:adguard-home 20200812 Ubuntu AdGuard Home Appliance
appliance:mosquitto 20200812 Ubuntu Mosquitto Appliance
appliance:nextcloud 20200812 Ubuntu Nextcloud Appliance
appliance:openhab 20200812 Ubuntu openHAB Home Appliance
appliance:plexmediaserver 20200812 Ubuntu Plex Media Server Appliance
anbox-cloud-appliance latest Anbox Cloud Appliance
charm-dev latest A development and testing environment for charmers
docker latest A Docker environment with Portainer and related tools
jellyfin latest Jellyfin is a Free Software Media System that puts you in control of managing and streaming your media.
minikube latest minikube is local Kubernetes
but more verbose logs show that it was actually trying to pull snapcraft:core (seems missing).
I’m not sure if this is an error, or I am missing some configuration, or the snapcraft.yml is just slightly outdated… anyway after a brief look on the forum I didn’t find similar issues.
Here’s the more verbose output:
# SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=1 snapcraft --debug
Starting snapcraft 4.8 from /snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli.
configure_requests_ca: using '/etc/ssl/certs/ca-certificates.crt' for certificate verification
snapcraft is running in a docker or podman (OCI) container
Parts dir /usr/local/src/snapd/build-aux/parts
Stage dir /usr/local/src/snapd/build-aux/stage
Prime dir /usr/local/src/snapd/build-aux/prime
ignoring or passing through unknown parts=OrderedDict([('snapd-deb', OrderedDict([('plugin', 'nil'), ('source', '.'), ('build-snaps', ['go/1.13/stable']), ('build-packages', ['git', 'dpkg-dev']), ('override-pull', 'snapcraftctl pull\n# set version, this needs dpkg-parsechangelog (from dpkg-dev) and git\nsnapcraftctl set-version "$(./mkversion.sh --output-only)"\n# Ensure that ./debian/ packaging which we are about to use\n# matches the current `build-base` release. I.e. ubuntu-16.04\n# for build-base:core, etc.\n./generate-packaging-dir\n# install build dependencies\nexport DEBIAN_FRONTEND=noninteractive\nexport DEBCONF_NONINTERACTIVE_SEEN=true\nsudo -E apt-get build-dep -y ./\n./get-deps.sh --skip-unused-check\n'), ('override-build', '# TODO: when something like "craftctl get-version" is ready, then we can\n# use that, but until then, we have to re-run mkversion.sh to check if the\n# version number was set as "dirty" from the override-pull step\nif sh -x ./mkversion.sh --output-only | grep "dirty"; then\n mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/snapd\n ( \n echo "dirty git tree during build detected:"\n git status\n git diff\n ) > $SNAPCRAFT_PART_INSTALL/usr/lib/snapd/dirty-git-tree-info.txt\nfi\n# unset the LD_FLAGS and LD_LIBRARY_PATH vars that snapcraft sets for us\n# as those will point to the $SNAPCRAFT_STAGE which on re-builds will \n# contain things like libc and friends that confuse the debian package\n# build system\n# TODO: should we unset $PATH to not include $SNAPCRAFT_STAGE too?\nunset LD_FLAGS\nunset LD_LIBRARY_PATH\n# if we are root, disable tests because a number of them fail when run as\n# root\nif [ "$(id -u)" = "0" ]; then\n DEB_BUILD_OPTIONS=nocheck\n export DEB_BUILD_OPTIONS\nfi\n# run the real build (but just build the binary package, and don\'t\n# bother compressing it too much)\ndpkg-buildpackage -b -Zgzip -zfast\ndpkg-deb -x $(pwd)/../snapd_*.deb $SNAPCRAFT_PART_INSTALL\n# not included in the deb as it\'s only used with UC20 preseeding.\ncp -a data/preseed.json $SNAPCRAFT_PART_INSTALL/usr/lib/snapd/\n')])), ('xdelta3', OrderedDict([('plugin', 'nil'), ('stage-packages', ['xdelta3']), ('stage', ['usr/bin/*', 'usr/lib/*', 'lib/*'])])), ('squashfs-tools', OrderedDict([('plugin', 'nil'), ('stage-packages', ['squashfs-tools']), ('stage', ['usr/bin/*', 'usr/lib/*', 'lib/*'])])), ('liblzma5', OrderedDict([('plugin', 'nil'), ('stage-packages', ['liblzma5']), ('stage', ['lib/*'])])), ('zlib', OrderedDict([('plugin', 'nil'), ('stage-packages', ['zlib1g']), ('stage', ['lib/*'])])), ('libc6', OrderedDict([('plugin', 'nil'), ('stage-packages', ['libc6', 'libc-bin', 'libgcc1']), ('stage', ['lib/*', 'usr/lib/*', 'lib64/*', 'etc/ld.so.conf', 'etc/ld.so.conf.d/*']), ('override-stage', 'snapcraftctl stage\n# fix symlinks of ld.so to be relative\nif [ "$(readlink -f lib64/ld-linux-x86-64.so.2)" = "/lib/x86_64-linux-gnu/ld-2.23.so" ]; then\n ln -f -s ../lib/x86_64-linux-gnu/ld-2.23.so lib64/ld-linux-x86-64.so.2\nfi\nif [ "$(readlink -f lib64/ld64.so.2)" = "/lib/powerpc64le-linux-gnu/ld-2.23.so" ]; then\n ln -f -s ../lib/powerpc64le-linux-gnu/ld-2.23.so lib64/ld64.so.2\nfi\n')])), ('fontconfig-xenial', OrderedDict([('plugin', 'nil'), ('build-packages', ['python3-apt']), ('source', 'https://github.com/snapcore/fc-cache-static-builder.git'), ('override-build', './build-from-security.py xenial\nmkdir -p $SNAPCRAFT_PART_INSTALL/bin\ncp -a fc-cache-xenial $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v6\n'), ('prime', ['bin/fc-cache-v6'])])), ('fontconfig-bionic', OrderedDict([('plugin', 'nil'), ('build-packages', ['python3-apt']), ('source', 'https://github.com/snapcore/fc-cache-static-builder.git'), ('override-build', './build-from-security.py bionic\nmkdir -p $SNAPCRAFT_PART_INSTALL/bin\ncp -a fc-cache-bionic $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v7\n'), ('prime', ['bin/fc-cache-v7'])]))])
snapcraft is running in a docker or podman (OCI) container
Parts dir /usr/local/src/snapd/build-aux/parts
Stage dir /usr/local/src/snapd/build-aux/stage
Prime dir /usr/local/src/snapd/build-aux/prime
ignoring or passing through unknown parts=OrderedDict([('snapd-deb', OrderedDict([('plugin', 'nil'), ('source', '.'), ('build-snaps', ['go/1.13/stable']), ('build-packages', ['git', 'dpkg-dev']), ('override-pull', 'snapcraftctl pull\n# set version, this needs dpkg-parsechangelog (from dpkg-dev) and git\nsnapcraftctl set-version "$(./mkversion.sh --output-only)"\n# Ensure that ./debian/ packaging which we are about to use\n# matches the current `build-base` release. I.e. ubuntu-16.04\n# for build-base:core, etc.\n./generate-packaging-dir\n# install build dependencies\nexport DEBIAN_FRONTEND=noninteractive\nexport DEBCONF_NONINTERACTIVE_SEEN=true\nsudo -E apt-get build-dep -y ./\n./get-deps.sh --skip-unused-check\n'), ('override-build', '# TODO: when something like "craftctl get-version" is ready, then we can\n# use that, but until then, we have to re-run mkversion.sh to check if the\n# version number was set as "dirty" from the override-pull step\nif sh -x ./mkversion.sh --output-only | grep "dirty"; then\n mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/snapd\n ( \n echo "dirty git tree during build detected:"\n git status\n git diff\n ) > $SNAPCRAFT_PART_INSTALL/usr/lib/snapd/dirty-git-tree-info.txt\nfi\n# unset the LD_FLAGS and LD_LIBRARY_PATH vars that snapcraft sets for us\n# as those will point to the $SNAPCRAFT_STAGE which on re-builds will \n# contain things like libc and friends that confuse the debian package\n# build system\n# TODO: should we unset $PATH to not include $SNAPCRAFT_STAGE too?\nunset LD_FLAGS\nunset LD_LIBRARY_PATH\n# if we are root, disable tests because a number of them fail when run as\n# root\nif [ "$(id -u)" = "0" ]; then\n DEB_BUILD_OPTIONS=nocheck\n export DEB_BUILD_OPTIONS\nfi\n# run the real build (but just build the binary package, and don\'t\n# bother compressing it too much)\ndpkg-buildpackage -b -Zgzip -zfast\ndpkg-deb -x $(pwd)/../snapd_*.deb $SNAPCRAFT_PART_INSTALL\n# not included in the deb as it\'s only used with UC20 preseeding.\ncp -a data/preseed.json $SNAPCRAFT_PART_INSTALL/usr/lib/snapd/\n')])), ('xdelta3', OrderedDict([('plugin', 'nil'), ('stage-packages', ['xdelta3']), ('stage', ['usr/bin/*', 'usr/lib/*', 'lib/*'])])), ('squashfs-tools', OrderedDict([('plugin', 'nil'), ('stage-packages', ['squashfs-tools']), ('stage', ['usr/bin/*', 'usr/lib/*', 'lib/*'])])), ('liblzma5', OrderedDict([('plugin', 'nil'), ('stage-packages', ['liblzma5']), ('stage', ['lib/*'])])), ('zlib', OrderedDict([('plugin', 'nil'), ('stage-packages', ['zlib1g']), ('stage', ['lib/*'])])), ('libc6', OrderedDict([('plugin', 'nil'), ('stage-packages', ['libc6', 'libc-bin', 'libgcc1']), ('stage', ['lib/*', 'usr/lib/*', 'lib64/*', 'etc/ld.so.conf', 'etc/ld.so.conf.d/*']), ('override-stage', 'snapcraftctl stage\n# fix symlinks of ld.so to be relative\nif [ "$(readlink -f lib64/ld-linux-x86-64.so.2)" = "/lib/x86_64-linux-gnu/ld-2.23.so" ]; then\n ln -f -s ../lib/x86_64-linux-gnu/ld-2.23.so lib64/ld-linux-x86-64.so.2\nfi\nif [ "$(readlink -f lib64/ld64.so.2)" = "/lib/powerpc64le-linux-gnu/ld-2.23.so" ]; then\n ln -f -s ../lib/powerpc64le-linux-gnu/ld-2.23.so lib64/ld64.so.2\nfi\n')])), ('fontconfig-xenial', OrderedDict([('plugin', 'nil'), ('build-packages', ['python3-apt']), ('source', 'https://github.com/snapcore/fc-cache-static-builder.git'), ('override-build', './build-from-security.py xenial\nmkdir -p $SNAPCRAFT_PART_INSTALL/bin\ncp -a fc-cache-xenial $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v6\n'), ('prime', ['bin/fc-cache-v6'])])), ('fontconfig-bionic', OrderedDict([('plugin', 'nil'), ('build-packages', ['python3-apt']), ('source', 'https://github.com/snapcore/fc-cache-static-builder.git'), ('override-build', './build-from-security.py bionic\nmkdir -p $SNAPCRAFT_PART_INSTALL/bin\ncp -a fc-cache-bionic $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v7\n'), ('prime', ['bin/fc-cache-v7'])]))])
Snapcraft is running in directory 'build-aux'. If this is the snap assets directory, please run snapcraft from /usr/local/src/snapd.
Launching a VM.
Build environment is in unknown state, cleaning first.
Running multipass info snapcraft-snapd
info failed: The following errors occurred:
instance "snapcraft-snapd" does not exist
Running multipass launch snapcraft:core --name snapcraft-snapd --cpus 2 --mem 2G --disk 256G
launch failed: Unable to find an image matching "core". Please use `multipass find` for supported remotes and images.
Sorry, an error occurred in Snapcraft:
An error occurred with the instance when trying to launch with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
Traceback (most recent call last):
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_multipass/_multipass.py", line 121, in _start
self._get_instance_info()
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_multipass/_multipass.py", line 238, in _get_instance_info
instance_name=self.instance_name, output_format="json"
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_multipass/_multipass_command.py", line 416, in info
stderr=stderr,
snapcraft.internal.build_providers.errors.ProviderInfoError: An error occurred when using 'multipass' to query the status of the instance: returned exit code 2: info failed: The following errors occurred:
instance "snapcraft-snapd" does not exist
.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_base_provider.py", line 234, in launch_instance
self._start()
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_multipass/_multipass.py", line 128, in _start
) from instance_error
snapcraft.internal.build_providers.errors.ProviderInstanceNotFoundError: Cannot find an instance named 'snapcraft-snapd'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_multipass/_multipass_command.py", line 175, in launch
_run(cmd)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_multipass/_multipass_command.py", line 44, in _run
subprocess.check_call(command, stdin=stdin)
File "/snap/snapcraft/6512/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['multipass', 'launch', 'snapcraft:core', '--name', 'snapcraft-snapd', '--cpus', '2', '--mem', '2G', '--disk', '256G']' returned non-zero exit status 2.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/snap/snapcraft/6512/bin/snapcraft", line 33, in <module>
sys.exit(load_entry_point('snapcraft==4.8', 'console_scripts', 'snapcraft')())
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 1236, in invoke
return Command.invoke(self, ctx)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli/_runner.py", line 132, in run
snap_command.invoke(ctx)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli/_command.py", line 81, in invoke
return super().invoke(ctx)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli/lifecycle.py", line 388, in snap
_execute(steps.PRIME, parts=tuple(), pack_project=True, output=output, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli/lifecycle.py", line 127, in _execute
project=project, echoer=echo, build_provider_flags=build_provider_flags
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_base_provider.py", line 87, in __enter__
self.create()
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_multipass/_multipass.py", line 161, in create
self.launch_instance()
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_base_provider.py", line 242, in launch_instance
self._launch()
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_multipass/_multipass.py", line 116, in _launch
image=image,
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_multipass/_multipass_command.py", line 179, in launch
) from process_error
snapcraft.internal.build_providers.errors.ProviderLaunchError: An error occurred with the instance when trying to launch with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
You can find the traceback in file '/tmp/tmpo7j20t0r/trace.txt'.
Also failing on --use-lxd:
# SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=1 snapcraft --debug --use-lxd
Starting snapcraft 4.8 from /snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli.
configure_requests_ca: using '/etc/ssl/certs/ca-certificates.crt' for certificate verification
snapcraft is running in a docker or podman (OCI) container
Parts dir /usr/local/src/snapd/build-aux/parts
Stage dir /usr/local/src/snapd/build-aux/stage
Prime dir /usr/local/src/snapd/build-aux/prime
ignoring or passing through unknown parts=OrderedDict([('snapd-deb', OrderedDict([('plugin', 'nil'), ('source', '.'), ('build-snaps', ['go/1.13/stable']), ('build-packages', ['git', 'dpkg-dev']), ('override-pull', 'snapcraftctl pull\n# set version, this needs dpkg-parsechangelog (from dpkg-dev) and git\nsnapcraftctl set-version "$(./mkversion.sh --output-only)"\n# Ensure that ./debian/ packaging which we are about to use\n# matches the current `build-base` release. I.e. ubuntu-16.04\n# for build-base:core, etc.\n./generate-packaging-dir\n# install build dependencies\nexport DEBIAN_FRONTEND=noninteractive\nexport DEBCONF_NONINTERACTIVE_SEEN=true\nsudo -E apt-get build-dep -y ./\n./get-deps.sh --skip-unused-check\n'), ('override-build', '# TODO: when something like "craftctl get-version" is ready, then we can\n# use that, but until then, we have to re-run mkversion.sh to check if the\n# version number was set as "dirty" from the override-pull step\nif sh -x ./mkversion.sh --output-only | grep "dirty"; then\n mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/snapd\n ( \n echo "dirty git tree during build detected:"\n git status\n git diff\n ) > $SNAPCRAFT_PART_INSTALL/usr/lib/snapd/dirty-git-tree-info.txt\nfi\n# unset the LD_FLAGS and LD_LIBRARY_PATH vars that snapcraft sets for us\n# as those will point to the $SNAPCRAFT_STAGE which on re-builds will \n# contain things like libc and friends that confuse the debian package\n# build system\n# TODO: should we unset $PATH to not include $SNAPCRAFT_STAGE too?\nunset LD_FLAGS\nunset LD_LIBRARY_PATH\n# if we are root, disable tests because a number of them fail when run as\n# root\nif [ "$(id -u)" = "0" ]; then\n DEB_BUILD_OPTIONS=nocheck\n export DEB_BUILD_OPTIONS\nfi\n# run the real build (but just build the binary package, and don\'t\n# bother compressing it too much)\ndpkg-buildpackage -b -Zgzip -zfast\ndpkg-deb -x $(pwd)/../snapd_*.deb $SNAPCRAFT_PART_INSTALL\n# not included in the deb as it\'s only used with UC20 preseeding.\ncp -a data/preseed.json $SNAPCRAFT_PART_INSTALL/usr/lib/snapd/\n')])), ('xdelta3', OrderedDict([('plugin', 'nil'), ('stage-packages', ['xdelta3']), ('stage', ['usr/bin/*', 'usr/lib/*', 'lib/*'])])), ('squashfs-tools', OrderedDict([('plugin', 'nil'), ('stage-packages', ['squashfs-tools']), ('stage', ['usr/bin/*', 'usr/lib/*', 'lib/*'])])), ('liblzma5', OrderedDict([('plugin', 'nil'), ('stage-packages', ['liblzma5']), ('stage', ['lib/*'])])), ('zlib', OrderedDict([('plugin', 'nil'), ('stage-packages', ['zlib1g']), ('stage', ['lib/*'])])), ('libc6', OrderedDict([('plugin', 'nil'), ('stage-packages', ['libc6', 'libc-bin', 'libgcc1']), ('stage', ['lib/*', 'usr/lib/*', 'lib64/*', 'etc/ld.so.conf', 'etc/ld.so.conf.d/*']), ('override-stage', 'snapcraftctl stage\n# fix symlinks of ld.so to be relative\nif [ "$(readlink -f lib64/ld-linux-x86-64.so.2)" = "/lib/x86_64-linux-gnu/ld-2.23.so" ]; then\n ln -f -s ../lib/x86_64-linux-gnu/ld-2.23.so lib64/ld-linux-x86-64.so.2\nfi\nif [ "$(readlink -f lib64/ld64.so.2)" = "/lib/powerpc64le-linux-gnu/ld-2.23.so" ]; then\n ln -f -s ../lib/powerpc64le-linux-gnu/ld-2.23.so lib64/ld64.so.2\nfi\n')])), ('fontconfig-xenial', OrderedDict([('plugin', 'nil'), ('build-packages', ['python3-apt']), ('source', 'https://github.com/snapcore/fc-cache-static-builder.git'), ('override-build', './build-from-security.py xenial\nmkdir -p $SNAPCRAFT_PART_INSTALL/bin\ncp -a fc-cache-xenial $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v6\n'), ('prime', ['bin/fc-cache-v6'])])), ('fontconfig-bionic', OrderedDict([('plugin', 'nil'), ('build-packages', ['python3-apt']), ('source', 'https://github.com/snapcore/fc-cache-static-builder.git'), ('override-build', './build-from-security.py bionic\nmkdir -p $SNAPCRAFT_PART_INSTALL/bin\ncp -a fc-cache-bionic $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v7\n'), ('prime', ['bin/fc-cache-v7'])]))])
Parts dir /usr/local/src/snapd/build-aux/parts
Stage dir /usr/local/src/snapd/build-aux/stage
Prime dir /usr/local/src/snapd/build-aux/prime
ignoring or passing through unknown parts=OrderedDict([('snapd-deb', OrderedDict([('plugin', 'nil'), ('source', '.'), ('build-snaps', ['go/1.13/stable']), ('build-packages', ['git', 'dpkg-dev']), ('override-pull', 'snapcraftctl pull\n# set version, this needs dpkg-parsechangelog (from dpkg-dev) and git\nsnapcraftctl set-version "$(./mkversion.sh --output-only)"\n# Ensure that ./debian/ packaging which we are about to use\n# matches the current `build-base` release. I.e. ubuntu-16.04\n# for build-base:core, etc.\n./generate-packaging-dir\n# install build dependencies\nexport DEBIAN_FRONTEND=noninteractive\nexport DEBCONF_NONINTERACTIVE_SEEN=true\nsudo -E apt-get build-dep -y ./\n./get-deps.sh --skip-unused-check\n'), ('override-build', '# TODO: when something like "craftctl get-version" is ready, then we can\n# use that, but until then, we have to re-run mkversion.sh to check if the\n# version number was set as "dirty" from the override-pull step\nif sh -x ./mkversion.sh --output-only | grep "dirty"; then\n mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/snapd\n ( \n echo "dirty git tree during build detected:"\n git status\n git diff\n ) > $SNAPCRAFT_PART_INSTALL/usr/lib/snapd/dirty-git-tree-info.txt\nfi\n# unset the LD_FLAGS and LD_LIBRARY_PATH vars that snapcraft sets for us\n# as those will point to the $SNAPCRAFT_STAGE which on re-builds will \n# contain things like libc and friends that confuse the debian package\n# build system\n# TODO: should we unset $PATH to not include $SNAPCRAFT_STAGE too?\nunset LD_FLAGS\nunset LD_LIBRARY_PATH\n# if we are root, disable tests because a number of them fail when run as\n# root\nif [ "$(id -u)" = "0" ]; then\n DEB_BUILD_OPTIONS=nocheck\n export DEB_BUILD_OPTIONS\nfi\n# run the real build (but just build the binary package, and don\'t\n# bother compressing it too much)\ndpkg-buildpackage -b -Zgzip -zfast\ndpkg-deb -x $(pwd)/../snapd_*.deb $SNAPCRAFT_PART_INSTALL\n# not included in the deb as it\'s only used with UC20 preseeding.\ncp -a data/preseed.json $SNAPCRAFT_PART_INSTALL/usr/lib/snapd/\n')])), ('xdelta3', OrderedDict([('plugin', 'nil'), ('stage-packages', ['xdelta3']), ('stage', ['usr/bin/*', 'usr/lib/*', 'lib/*'])])), ('squashfs-tools', OrderedDict([('plugin', 'nil'), ('stage-packages', ['squashfs-tools']), ('stage', ['usr/bin/*', 'usr/lib/*', 'lib/*'])])), ('liblzma5', OrderedDict([('plugin', 'nil'), ('stage-packages', ['liblzma5']), ('stage', ['lib/*'])])), ('zlib', OrderedDict([('plugin', 'nil'), ('stage-packages', ['zlib1g']), ('stage', ['lib/*'])])), ('libc6', OrderedDict([('plugin', 'nil'), ('stage-packages', ['libc6', 'libc-bin', 'libgcc1']), ('stage', ['lib/*', 'usr/lib/*', 'lib64/*', 'etc/ld.so.conf', 'etc/ld.so.conf.d/*']), ('override-stage', 'snapcraftctl stage\n# fix symlinks of ld.so to be relative\nif [ "$(readlink -f lib64/ld-linux-x86-64.so.2)" = "/lib/x86_64-linux-gnu/ld-2.23.so" ]; then\n ln -f -s ../lib/x86_64-linux-gnu/ld-2.23.so lib64/ld-linux-x86-64.so.2\nfi\nif [ "$(readlink -f lib64/ld64.so.2)" = "/lib/powerpc64le-linux-gnu/ld-2.23.so" ]; then\n ln -f -s ../lib/powerpc64le-linux-gnu/ld-2.23.so lib64/ld64.so.2\nfi\n')])), ('fontconfig-xenial', OrderedDict([('plugin', 'nil'), ('build-packages', ['python3-apt']), ('source', 'https://github.com/snapcore/fc-cache-static-builder.git'), ('override-build', './build-from-security.py xenial\nmkdir -p $SNAPCRAFT_PART_INSTALL/bin\ncp -a fc-cache-xenial $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v6\n'), ('prime', ['bin/fc-cache-v6'])])), ('fontconfig-bionic', OrderedDict([('plugin', 'nil'), ('build-packages', ['python3-apt']), ('source', 'https://github.com/snapcore/fc-cache-static-builder.git'), ('override-build', './build-from-security.py bionic\nmkdir -p $SNAPCRAFT_PART_INSTALL/bin\ncp -a fc-cache-bionic $SNAPCRAFT_PART_INSTALL/bin/fc-cache-v7\n'), ('prime', ['bin/fc-cache-v7'])]))])
Snapcraft is running in directory 'build-aux'. If this is the snap assets directory, please run snapcraft from /usr/local/src/snapd.
Launching a container.
Build environment is in unknown state, cleaning first.
Waiting for container to be ready
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True mv /var/tmp/L3Jvb3QvLmJhc2hyYw== /root/.bashrc
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chown root:root /root/.bashrc
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chmod 0600 /root/.bashrc
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True mv /var/tmp/L2Jpbi9fc25hcGNyYWZ0X3Byb21wdA== /bin/_snapcraft_prompt
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chown root:root /bin/_snapcraft_prompt
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chmod 0755 /bin/_snapcraft_prompt
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True mv /var/tmp/L2V0Yy9hcHQvc291cmNlcy5saXN0 /etc/apt/sources.list
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chown root:root /etc/apt/sources.list
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chmod 0644 /etc/apt/sources.list
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True mv /var/tmp/L2V0Yy9hcHQvc291cmNlcy5saXN0LmQvZGVmYXVsdC5zb3VyY2Vz /etc/apt/sources.list.d/default.sources
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chown root:root /etc/apt/sources.list.d/default.sources
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chmod 0644 /etc/apt/sources.list.d/default.sources
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True mv /var/tmp/L2V0Yy9hcHQvc291cmNlcy5saXN0LmQvZGVmYXVsdC1zZWN1cml0eS5zb3VyY2Vz /etc/apt/sources.list.d/default-security.sources
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chown root:root /etc/apt/sources.list.d/default-security.sources
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chmod 0644 /etc/apt/sources.list.d/default-security.sources
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True mv /var/tmp/L2V0Yy9hcHQvYXB0LmNvbmYuZC8wMC1zbmFwY3JhZnQ= /etc/apt/apt.conf.d/00-snapcraft
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chown root:root /etc/apt/apt.conf.d/00-snapcraft
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chmod 0644 /etc/apt/apt.conf.d/00-snapcraft
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True mv /var/tmp/L2V0Yy9zeXN0ZW1kL25ldHdvcmsvMTAtZXRoMC5uZXR3b3Jr /etc/systemd/network/10-eth0.network
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chown root:root /etc/systemd/network/10-eth0.network
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chmod 0644 /etc/systemd/network/10-eth0.network
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True mv /var/tmp/L2V0Yy9ob3N0bmFtZQ== /etc/hostname
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chown root:root /etc/hostname
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True chmod 0644 /etc/hostname
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True hostname -F /etc/hostname
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl is-system-running
systemctl is-system-running: 'offline'
Timed out waiting for systemd to be ready...
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl enable systemd-resolved
Created symlink /etc/systemd/system/multi-user.target.wants/systemd-resolved.service, pointing to /lib/systemd/system/systemd-resolved.service.
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl enable systemd-networkd
Created symlink /etc/systemd/system/multi-user.target.wants/systemd-networkd.service, pointing to /lib/systemd/system/systemd-networkd.service.
Created symlink /etc/systemd/system/sockets.target.wants/systemd-networkd.socket, pointing to /lib/systemd/system/systemd-networkd.socket.
Running: /snap/bin/lxc exec snapcraft-snapd -- env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=False SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True systemctl restart systemd-resolved
Failed to connect to bus: No such file or directory
Sorry, an error occurred in Snapcraft:
An error occurred when trying to execute 'systemctl restart systemd-resolved' with 'LXD': returned exit code 1.
Traceback (most recent call last):
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_base_provider.py", line 234, in launch_instance
self._start()
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_lxd/_lxd.py", line 218, in _start
raise errors.ProviderInstanceNotFoundError(instance_name=self.instance_name)
snapcraft.internal.build_providers.errors.ProviderInstanceNotFoundError: Cannot find an instance named 'snapcraft-snapd'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_lxd/_lxd.py", line 175, in _run
output = subprocess.check_output(cmd)
File "/snap/snapcraft/6512/usr/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/snap/snapcraft/6512/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/snap/bin/lxc', 'exec', 'snapcraft-snapd', '--', 'env', 'SNAPCRAFT_BUILD_ENVIRONMENT=managed-host', 'HOME=/root', 'SNAPCRAFT_HAS_TTY=False', 'SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True', 'systemctl', 'restart', 'systemd-resolved']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/snap/snapcraft/6512/bin/snapcraft", line 33, in <module>
sys.exit(load_entry_point('snapcraft==4.8', 'console_scripts', 'snapcraft')())
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 1236, in invoke
return Command.invoke(self, ctx)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli/_runner.py", line 132, in run
snap_command.invoke(ctx)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli/_command.py", line 81, in invoke
return super().invoke(ctx)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli/lifecycle.py", line 388, in snap
_execute(steps.PRIME, parts=tuple(), pack_project=True, output=output, **kwargs)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/cli/lifecycle.py", line 127, in _execute
project=project, echoer=echo, build_provider_flags=build_provider_flags
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_base_provider.py", line 87, in __enter__
self.create()
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_lxd/_lxd.py", line 284, in create
self.launch_instance()
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_base_provider.py", line 245, in launch_instance
self._setup_environment()
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_lxd/_lxd.py", line 455, in _setup_environment
self._run(["systemctl", "restart", "systemd-resolved"], hide_output=True)
File "/snap/snapcraft/6512/lib/python3.6/site-packages/snapcraft/internal/build_providers/_lxd/_lxd.py", line 184, in _run
) from process_error
snapcraft.internal.build_providers.errors.ProviderExecError: An error occurred when trying to execute 'systemctl restart systemd-resolved' with 'LXD': returned exit code 1.
You can find the traceback in file '/tmp/tmpy1xj0kom/trace.txt'.