Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use parallel installations of snapcraft if a non-aliased version is not installed #4683

Closed
mr-cal opened this issue Mar 20, 2024 · 6 comments · Fixed by #5085
Closed
Labels
bug Actual bad behavior that don't fall into maintenance or documentation

Comments

@mr-cal
Copy link
Collaborator

mr-cal commented Mar 20, 2024

Bug Description

Snapcraft used to support parallel installations but @dilyn-corner recently found this is not working with the following error:

lxc exec [...] -- snap ack /tmp/snapcraft.assert'
* Command exit code: 1
* Command standard error output: b'error: cannot assert: cannot decode request body into assertions: parsing assertion headers: header entry missing \':\' separator: ""\n'

Most likely, this line in craft-providers needs to use snap_name.split('_')[0] but I haven't tested this yet. If this solves the problem, I prefer we conclude the investigation by looking at snapd to determine why this started failing.

To Reproduce

sudo snap set system experimental.parallel-instances=true
sudo shutdown -r now
sudo snap install snapcraft_8 --classic --channel=latest/stable
mkdir my-snap
cd my-snap/
snapcraft_8 init
lxd init --auto
snapcraft_8 --use-lxd

Environment

multipass launch 22.04

snapcraft.yaml

n/a

Relevant log output

2024-03-20 12:52:12.449 Starting Snapcraft 8.0.5
2024-03-20 12:52:12.450 lifecycle command: 'pack', arguments: Namespace(destructive_mode=False, use_lxd=True, debug=False, enable_manifest=False, manifest_image_information=None, bind_ssh=False, build_for=None, http_proxy=None, https_proxy=None, ua_token=None, enable_experimental_ua_services=False, enable_experimental_plugins=False, enable_experimental_extensions=False, enable_developer_debug=False, enable_experimental_target_arch=False, target_arch=None, provider=None, directory=None, output=None)
2024-03-20 12:52:12.450 command: pack, arguments: Namespace(destructive_mode=False, use_lxd=True, debug=False, enable_manifest=False, manifest_image_information=None, bind_ssh=False, build_for=None, http_proxy=None, https_proxy=None, ua_token=None, enable_experimental_ua_services=False, enable_experimental_plugins=False, enable_experimental_extensions=False, enable_developer_debug=False, enable_experimental_target_arch=False, target_arch=None, provider=None, directory=None, output=None)
2024-03-20 12:52:12.455 CPU count (from process affinity): 1
2024-03-20 12:52:12.455 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT ''
2024-03-20 12:52:12.455 Running on amd64 for amd64
2024-03-20 12:52:12.456 Checking build provider availability
2024-03-20 12:52:12.460 Retrieved snap config: {}
2024-03-20 12:52:12.460 Using provider 'lxd' passed as an argument.
2024-03-20 12:52:12.560 Executing on host: lxc --project default profile show local:default
2024-03-20 12:52:12.991 Using hostname 'snapcraft-my-snap-name-on-amd64-for-amd64-258170'
2024-03-20 12:52:12.991 Launching instance...
2024-03-20 12:52:12.992 Executing on host: lxc remote list --format=yaml
2024-03-20 12:52:13.038 Executing on host: lxc remote add craft-com.ubuntu.cloud-buildd https://cloud-images.ubuntu.com/buildd/releases --protocol=simplestreams
2024-03-20 12:52:13.075 Remote 'craft-com.ubuntu.cloud-buildd' was successfully added.
2024-03-20 12:52:13.075 Executing on host: lxc project list local: --format=yaml
2024-03-20 12:52:13.118 Executing on host: lxc --project snapcraft project create local:snapcraft
2024-03-20 12:52:13.176 Executing on host: lxc --project default profile show local:default
2024-03-20 12:52:13.230 Executing on host: lxc --project snapcraft profile edit local:default
2024-03-20 12:52:13.280 Set LXD instance name to 'snapcraft-my-snap-name-on-amd64-for-amd64-258170'
2024-03-20 12:52:13.280 Checking for instance 'snapcraft-my-snap-name-on-amd64-for-amd64-258170' in project 'snapcraft' in remote 'local'
2024-03-20 12:52:13.280 Executing on host: lxc --project snapcraft list local: --format=yaml
2024-03-20 12:52:13.319 Instance 'snapcraft-my-snap-name-on-amd64-for-amd64-258170' does not exist.
2024-03-20 12:52:13.320 Set LXD instance name to 'base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f'
2024-03-20 12:52:13.320 Checking for base instance 'base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f' in project 'snapcraft' in remote 'local'
2024-03-20 12:52:13.320 Executing on host: lxc --project snapcraft list local: --format=yaml
2024-03-20 12:52:13.358 Base instance 'base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f' does not exist.
2024-03-20 12:52:13.358 Creating new instance from remote
2024-03-20 12:52:13.359 Creating new base instance from remote
2024-03-20 12:52:13.359 Creating new base instance from image 'core22' from remote 'craft-com.ubuntu.cloud-buildd'
2024-03-20 12:52:13.359 Executing on host: lxc --project snapcraft info local:
2024-03-20 12:52:13.448 Executing on host: lxc --project snapcraft launch craft-com.ubuntu.cloud-buildd:core22 local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f --config 'raw.idmap=both 1000 0' --config security.syscalls.intercept.mknod=true --config user.craft_providers.status=STARTING --config user.craft_providers.timer=2024-03-20T17:52:13.447944+00:00 --config user.craft_providers.pid=1507
2024-03-20 12:52:29.074 Successfully launched instance base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f.
2024-03-20 12:52:29.089 Executing on host: lxc --project snapcraft config get local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.status
2024-03-20 12:52:30.054 Setting up base instance 'base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f'
2024-03-20 12:52:30.055 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.status PREPARING
2024-03-20 12:52:30.170 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:52:30.170374+00:00
2024-03-20 12:52:30.171 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -f /etc/craft-instance.conf
2024-03-20 12:52:30.604 Set instance timer to '2024-03-20T17:52:30.170374+00:00'
2024-03-20 12:52:30.664 Executing on host: lxc --project snapcraft file push /tmp/tmp75xw1f9a local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/craft-instance.conf --mode=0644
2024-03-20 12:52:30.803 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/craft-instance.conf
2024-03-20 12:52:30.978 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical cat /etc/os-release
2024-03-20 12:52:31.059 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -f /etc/craft-instance.conf
2024-03-20 12:52:31.175 Executing on host: lxc --project snapcraft file pull local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/craft-instance.conf /home/ubuntu/tmp_r6y_4pj.tmp-craft/tmpoyt0yt4q
2024-03-20 12:52:31.255 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -f /etc/craft-instance.conf
2024-03-20 12:52:31.370 Executing on host: lxc --project snapcraft file pull local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/craft-instance.conf /home/ubuntu/tmpg7mfhj2u.tmp-craft/tmp3m2ufg38
2024-03-20 12:52:31.417 Executing on host: lxc --project snapcraft file push /tmp/tmp43cqwhm6 local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/craft-instance.conf --mode=0644
2024-03-20 12:52:31.468 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/craft-instance.conf
2024-03-20 12:52:31.534 Executing on host: lxc --project snapcraft file push /tmp/tmpz_ov1w27 local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/environment --mode=0644
2024-03-20 12:52:31.582 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/environment
2024-03-20 12:52:31.651 Executing on host: lxc --project snapcraft file push /tmp/tmptk2li90o local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/apt/apt.conf.d/20auto-upgrades --mode=0644
2024-03-20 12:52:31.695 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/apt/apt.conf.d/20auto-upgrades
2024-03-20 12:52:31.761 Waiting for environment to be ready...
2024-03-20 12:52:31.761 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl is-system-running
2024-03-20 12:52:31.844 Executing on host: lxc --project snapcraft file push /tmp/tmp79a97drt local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/hostname --mode=0644
2024-03-20 12:52:31.887 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/hostname
2024-03-20 12:52:31.961 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical hostname -F /etc/hostname
2024-03-20 12:52:32.035 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
2024-03-20 12:52:32.119 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl enable systemd-resolved
2024-03-20 12:52:32.311 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl restart systemd-resolved
2024-03-20 12:52:32.420 Executing on host: lxc --project snapcraft file push /tmp/tmpxk43m4k9 local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/systemd/network/10-eth0.network --mode=0644
2024-03-20 12:52:32.468 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/systemd/network/10-eth0.network
2024-03-20 12:52:32.568 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl enable systemd-networkd
2024-03-20 12:52:32.801 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl restart systemd-networkd
2024-03-20 12:52:32.909 Waiting for networking to be ready...
2024-03-20 12:52:32.909 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical getent hosts snapcraft.io
2024-03-20 12:52:33.172 Executing on host: lxc --project snapcraft file push /tmp/tmp6j7ctb64 local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/apt/apt.conf.d/00no-recommends --mode=0644
2024-03-20 12:52:33.239 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/apt/apt.conf.d/00no-recommends
2024-03-20 12:52:33.326 Executing on host: lxc --project snapcraft file push /tmp/tmpm4qnzy79 local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/apt/apt.conf.d/00update-errors --mode=0644
2024-03-20 12:52:33.387 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/apt/apt.conf.d/00update-errors
2024-03-20 12:52:33.477 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical apt-get update
2024-03-20 12:52:33.630 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:52:33.608182+00:00
2024-03-20 12:52:33.863 Set instance timer to '2024-03-20T17:52:33.608182+00:00'
2024-03-20 12:52:36.864 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:52:36.864055+00:00
2024-03-20 12:52:37.825 Set instance timer to '2024-03-20T17:52:36.864055+00:00'
2024-03-20 12:52:40.231 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical apt-get install -y apt-utils build-essential curl fuse udev python3 python3-dev python3-pip python3-wheel python3-setuptools gnupg dirmngr git
2024-03-20 12:52:40.828 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:52:40.828071+00:00
2024-03-20 12:52:40.962 Set instance timer to '2024-03-20T17:52:40.828071+00:00'
2024-03-20 12:52:43.964 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:52:43.964168+00:00
2024-03-20 12:52:44.348 Set instance timer to '2024-03-20T17:52:43.964168+00:00'
2024-03-20 12:52:47.352 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:52:47.351772+00:00
2024-03-20 12:52:47.487 Set instance timer to '2024-03-20T17:52:47.351772+00:00'
2024-03-20 12:52:50.491 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:52:50.491154+00:00
2024-03-20 12:52:50.799 Set instance timer to '2024-03-20T17:52:50.491154+00:00'
2024-03-20 12:52:53.800 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:52:53.800039+00:00
2024-03-20 12:52:53.912 Set instance timer to '2024-03-20T17:52:53.800039+00:00'
2024-03-20 12:52:56.916 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:52:56.915922+00:00
2024-03-20 12:52:57.363 Set instance timer to '2024-03-20T17:52:56.915922+00:00'
2024-03-20 12:53:00.364 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:00.364100+00:00
2024-03-20 12:53:00.630 Set instance timer to '2024-03-20T17:53:00.364100+00:00'
2024-03-20 12:53:03.632 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:03.632185+00:00
2024-03-20 12:53:03.854 Set instance timer to '2024-03-20T17:53:03.632185+00:00'
2024-03-20 12:53:05.267 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl is-active systemd-udevd
2024-03-20 12:53:05.847 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl enable systemd-udevd
2024-03-20 12:53:06.075 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl start systemd-udevd
2024-03-20 12:53:06.239 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical apt-get install -y snapd
2024-03-20 12:53:06.856 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:06.856073+00:00
2024-03-20 12:53:07.540 Set instance timer to '2024-03-20T17:53:06.856073+00:00'
2024-03-20 12:53:10.556 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:10.543504+00:00
2024-03-20 12:53:11.619 Set instance timer to '2024-03-20T17:53:10.543504+00:00'
2024-03-20 12:53:14.620 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:14.620196+00:00
2024-03-20 12:53:14.971 Set instance timer to '2024-03-20T17:53:14.620196+00:00'
2024-03-20 12:53:17.973 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:17.972969+00:00
2024-03-20 12:53:18.210 Set instance timer to '2024-03-20T17:53:17.972969+00:00'
2024-03-20 12:53:20.612 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical ln -sf /var/lib/snapd/snap /snap
2024-03-20 12:53:20.956 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl enable --now snapd.socket
2024-03-20 12:53:21.152 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl restart snapd.service
2024-03-20 12:53:21.212 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:21.212018+00:00
2024-03-20 12:53:21.328 Set instance timer to '2024-03-20T17:53:21.212018+00:00'
2024-03-20 12:53:21.766 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical snap wait system seed.loaded
2024-03-20 12:53:23.903 Holding refreshes for snaps.
2024-03-20 12:53:23.903 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical snap refresh --hold
2024-03-20 12:53:24.072 Waiting for pending snap refreshes to complete.
2024-03-20 12:53:24.100 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical snap watch '--last=auto-refresh?'
2024-03-20 12:53:24.178 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical snap unset system proxy.http
2024-03-20 12:53:24.332 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:24.331682+00:00
2024-03-20 12:53:24.377 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical snap unset system proxy.https
2024-03-20 12:53:24.485 Set instance timer to '2024-03-20T17:53:24.331682+00:00'
2024-03-20 12:53:24.565 Installing snap 'snapcraft_8' with channel=None and classic=True
2024-03-20 12:53:24.565 Installing snap 'snapcraft_8' from host as 'snapcraft' in instance (classic=True).
2024-03-20 12:53:24.961 Installing base snap 'core22' for 'snapcraft_8' from host
2024-03-20 12:53:24.961 Installing snap 'core22' from host (classic=False)
2024-03-20 12:53:24.968 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -f /etc/craft-instance.conf
2024-03-20 12:53:25.086 Executing on host: lxc --project snapcraft file pull local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/craft-instance.conf /home/ubuntu/tmps12luu8_.tmp-craft/tmprlliyc2q
2024-03-20 12:53:25.761 Revisions found: host='1122', target=None
2024-03-20 12:53:25.763 Creating an assert file for snap 'core22'
2024-03-20 12:53:25.764 Executing command on host: ['snap', 'known', 'account-key', 'public-key-sha3-384=BWDEoaqyr25nF5SNCvEv2v7QnM9QsfCc0PBMYD_i2NGSQ32EF2d4D0hqUel3m8ul']
2024-03-20 12:53:25.809 Executing command on host: ['snap', 'known', 'snap-declaration', 'snap-name=core22']
2024-03-20 12:53:25.844 Executing command on host: ['snap', 'known', 'snap-revision', 'snap-revision=1122', 'snap-id=amcUKQILKXHHTlmSa7NMdnXSx02dNeeT']
2024-03-20 12:53:25.868 Executing command on host: ['snap', 'known', 'account', 'account-id=canonical']
2024-03-20 12:53:25.884 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -d /tmp
2024-03-20 12:53:25.949 Executing on host: lxc --project snapcraft file push /home/ubuntu/tmpzlfczl75.tmp-craft/tmpgtqdjy73 local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/tmp/core22.assert --gid=0 --uid=0
2024-03-20 12:53:26.023 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical snap ack /tmp/core22.assert
2024-03-20 12:53:26.562 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -d /tmp
2024-03-20 12:53:27.209 Executing on host: lxc --project snapcraft file push /home/ubuntu/tmp36q1llla.tmp-craft/core22.snap local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/tmp/core22.snap --gid=0 --uid=0
2024-03-20 12:53:27.488 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:27.488009+00:00
2024-03-20 12:53:27.635 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical snap install /tmp/core22.snap
2024-03-20 12:53:27.876 Set instance timer to '2024-03-20T17:53:27.488009+00:00'
2024-03-20 12:53:30.772 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -f /etc/craft-instance.conf
2024-03-20 12:53:30.880 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f user.craft_providers.timer 2024-03-20T17:53:30.880030+00:00
2024-03-20 12:53:31.167 Set instance timer to '2024-03-20T17:53:30.880030+00:00'
2024-03-20 12:53:31.198 Executing on host: lxc --project snapcraft file pull local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/craft-instance.conf /home/ubuntu/tmpx3t0rwl1.tmp-craft/tmpdcdy7xjl
2024-03-20 12:53:31.317 Executing on host: lxc --project snapcraft file push /tmp/tmpijhp9vnj local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/craft-instance.conf --mode=0644
2024-03-20 12:53:31.370 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/craft-instance.conf
2024-03-20 12:53:31.438 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -f /etc/craft-instance.conf
2024-03-20 12:53:31.503 Executing on host: lxc --project snapcraft file pull local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/etc/craft-instance.conf /home/ubuntu/tmp8t3x88tn.tmp-craft/tmps71d9zw6
2024-03-20 12:53:31.587 Revisions found: host='11040', target=None
2024-03-20 12:53:31.668 Creating an assert file for snap 'snapcraft_8'
2024-03-20 12:53:31.669 Executing command on host: ['snap', 'known', 'account-key', 'public-key-sha3-384=BWDEoaqyr25nF5SNCvEv2v7QnM9QsfCc0PBMYD_i2NGSQ32EF2d4D0hqUel3m8ul']
2024-03-20 12:53:31.717 Executing command on host: ['snap', 'known', 'snap-declaration', 'snap-name=snapcraft_8']
2024-03-20 12:53:31.738 Executing command on host: ['snap', 'known', 'snap-revision', 'snap-revision=11040', 'snap-id=vMTKRaLjnOJQetI78HjntT37VuoyssFE']
2024-03-20 12:53:31.758 Executing command on host: ['snap', 'known', 'account', 'account-id=canonical']
2024-03-20 12:53:31.777 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -d /tmp
2024-03-20 12:53:31.896 Executing on host: lxc --project snapcraft file push /home/ubuntu/tmpi_o496zr.tmp-craft/tmps7jsrcog local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f/tmp/snapcraft.assert --gid=0 --uid=0
2024-03-20 12:53:31.975 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical snap ack /tmp/snapcraft.assert
2024-03-20 12:53:32.095 craft-providers error: failed to inject host's snap 'snapcraft_8' into target environment.
* Command that failed: 'lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v70--b255e13f20c5f8adfb3f -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical snap ack /tmp/snapcraft.assert'
* Command exit code: 1
* Command standard error output: b'error: cannot assert: cannot decode request body into assertions: parsing assertion headers: header entry missing \':\' separator: ""\n'
2024-03-20 12:53:32.096 Full execution log: '/home/ubuntu/.local/state/snapcraft/log/snapcraft-20240320-125212.449288.log'

Additional context

No response

@mr-cal mr-cal added the bug Actual bad behavior that don't fall into maintenance or documentation label Mar 20, 2024
@dilyn-corner
Copy link

Has something changed in recent times since this report? I'm attempting to use my reproducer case right now (parallel install of snapcraft 7.x as snapcraft_7) and I can't seem to reproduce this for any of the snaps I've tested thus far.

@mr-cal
Copy link
Collaborator Author

mr-cal commented Aug 14, 2024

@dilyn-corner, this error only occurs when there is not a non-aliased version of snapcraft installed.

The bug is that the non-aliased version of snapcraft is injected into the build environment:

  • If you have a non-aliased version of snapcraft installed, that version will get injected into the build environment.
  • If you do not have a non-aliased version of snapcraft installed, it will fail to inject snapcraft into the build environment.

@mr-cal
Copy link
Collaborator Author

mr-cal commented Aug 14, 2024

Upstream bug: canonical/craft-application#411

@mr-cal mr-cal changed the title Cannot use parallel installations of snapcraft Cannot use parallel installations of snapcraft if a non-aliased version is not installed Aug 14, 2024
@mr-cal
Copy link
Collaborator Author

mr-cal commented Sep 11, 2024

Testing the reproducer on each base and across 2 versions of snapcraft:

version base works notes
7 core18 snap ack fails to parse assertion
7 core20 snap ack fails to parse assertion
7 core22 snap ack fails to parse assertion
8 core20 snap ack fails to parse assertion
8 core22 snap ack fails to parse assertion
8 core24 attempts to inject non-aliased version of snapcraft

@mr-cal
Copy link
Collaborator Author

mr-cal commented Oct 4, 2024

Fixed via #5085 and #5087

@mr-cal mr-cal closed this as completed Oct 4, 2024
@dilyn-corner
Copy link

Appreciate the work including fixing 7.5! Nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Actual bad behavior that don't fall into maintenance or documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants