Job for systemd-resolved.service failed because the control process exited with error code
Metadata
Current evaluation
snapcraft pack --use-lxd fails on Ubuntu 26.04 when restarting systemd-resolved in the LXD container. Issue has no maintainer response.
Suggested action: needs triage
Reason: Valid bug report with clear reproduction steps and logs showing a crash in `craft-providers` during LXD container setup. No maintainer interaction yet. The issue involves a development release (Ubuntu 26.04), which may require investigation to distinguish between a devel-image quirk and a genuine regression in `snapcraft`/`craft-providers`.
Impact:
70
Quick Win:
35.0
Staleness:
40
Complexity:
50
Confidence:
75
Support Request:
10
Issue body
### Check existing issues
- [x] I've verified that this bug isn't described by any existing issues.
### Bug description
Running `snapcraft pack --use-lxd` fails with:
```
2026-06-09 13:27:35.115 * Command that failed: 'lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl restart systemd-resolved'
2026-06-09 13:27:35.115 * Command exit code: 1
2026-06-09 13:27:35.115 * Command standard error output: b'Job for systemd-resolved.service failed because the control process exited with error code.\nSee "systemctl status systemd-resolved.service" and "journalctl -xeu systemd-resolved.service" for details.\n'
```
### Steps to reproduce
```
mkdir mysnap
cd mysnap
mkdir snap
cat << EOF > snap/snapcraft.yaml
name: mysnap
base: core24
version: '0.1'
summary: My snap
description: |
This is my snap
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
my-part:
# See 'snapcraft plugins'
plugin: nil
EOF
snapcraft pack -v --use-lxd
```
### Environment
```
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 26.04 LTS
Release: 26.04
Codename: resolute
```
```
$ snap list
Name Version Rev Tracking Publisher Notes
[...]
lxd 6.8-5a1a287 39313 6/stable canonical✓ -
[...]
snapcraft 9.0.0 18124 latest/candidate canonical✓ classic
snapd 2.75.2 26865 latest/stable canonical✓ snapd
```
container created by snapcraft pack (deleting the container and re-running `pack` have no effect in the result)
```
$ lxc list --project snapcraft
+---------------------------------------------------------------+---------+------+------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------------------------------------------------------------+---------+------+------+-----------+-----------+
| base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 | RUNNING | | | CONTAINER | 0 |
+---------------------------------------------------------------+---------+------+------+-----------+-----------+
```
Image pulled in by snapcraft (deleting it and re-running `pack` have no effect in the result)
```
$ lxc image list --project snapcraft
+-------+--------------+--------+---------------------------------+--------------+-----------+-----------+-----------------------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE |
+-------+--------------+--------+---------------------------------+--------------+-----------+-----------+-----------------------------+
| | d0a0f828f0cf | no | ubuntu 24.04 LTS (buildd daily) | x86_64 | CONTAINER | 178.90MiB | Jun 9, 2026 at 5:15pm (UTC) |
+-------+--------------+--------+---------------------------------+--------------+-----------+-----------+-----------------------------+
```
### snapcraft.yaml
```yaml
name: mysnap
base: core24
version: '0.1'
summary: My snap
description: |
This is my snap
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
my-part:
# See 'snapcraft plugins'
plugin: nil
```
### Log output
```shell
2026-06-09 13:27:23.851 Starting snapcraft, version 9.0.0
2026-06-09 13:27:23.851 Logging execution to '/home/felipe.reyes@canonical.com/.local/state/snapcraft/log/snapcraft-20260609-132723.829147.log'
2026-06-09 13:27:23.851 Raw pre-parsed sysargs: args={'help': False, 'verbose': False, 'quiet': False, 'verbosity': <EmitterMode.TRACE: 5>, 'version': False} filtered=['pack', '--use-lxd']
2026-06-09 13:27:23.851 General parsed sysargs: command='pack' args=['--use-lxd']
2026-06-09 13:27:23.851 Configuring application...
2026-06-09 13:27:23.852 Command parsed sysargs: Namespace(destructive_mode=False, use_lxd=True, shell=False, shell_after=False, debug=False, platform=None, build_for=None, output=PosixPath('.'), fetch_service_policy=None, directory=None)
2026-06-09 13:27:23.878 Build plan: platform=None, build_for=None
2026-06-09 13:27:23.878 Loading project because a directory was not provided.
2026-06-09 13:27:23.878 Running snapcraft pack on host
2026-06-09 13:27:23.891 lifecycle command: 'pack', arguments: Namespace(destructive_mode=False, use_lxd=True, shell=False, shell_after=False, debug=False, platform=None, build_for=None, output=PosixPath('.'), fetch_service_policy=None, directory=None)
2026-06-09 13:27:23.935 Setting up Provider
2026-06-09 13:27:24.077 Setting snapcraft to be injected from the host into the build environment.
2026-06-09 13:27:24.378 Running managed snapcraft in managed ubuntu@24.04 instance for platform 'amd64'
2026-06-09 13:27:24.378 active_fetch_service=False
2026-06-09 13:27:24.379 Created project variables {'version': {'value': '0.1', 'updated': False, 'part-name': None}, 'grade': {'value': 'devel', 'updated': False, 'part-name': None}}.
2026-06-09 13:27:24.380 Using parallel build count of 16 from CPU count
2026-06-09 13:27:24.380 Checking if 'version' exists.
2026-06-09 13:27:24.380 Getting value for 'version'.
2026-06-09 13:27:24.381 Got '0.1' (updated=False) for 'version'.
2026-06-09 13:27:24.381 'version' exists.
2026-06-09 13:27:24.381 Getting value for 'version'.
2026-06-09 13:27:24.381 Got '0.1' (updated=False) for 'version'.
2026-06-09 13:27:24.381 Checking if 'version' exists.
2026-06-09 13:27:24.381 Getting value for 'version'.
2026-06-09 13:27:24.381 Got '0.1' (updated=False) for 'version'.
2026-06-09 13:27:24.381 'version' exists.
2026-06-09 13:27:24.381 Getting value for 'version'.
2026-06-09 13:27:24.381 Got '0.1' (updated=False) for 'version'.
2026-06-09 13:27:24.382 Checking if 'grade' exists.
2026-06-09 13:27:24.382 Getting value for 'grade'.
2026-06-09 13:27:24.382 Got 'devel' (updated=False) for 'grade'.
2026-06-09 13:27:24.382 'grade' exists.
2026-06-09 13:27:24.382 Getting value for 'grade'.
2026-06-09 13:27:24.382 Got 'devel' (updated=False) for 'grade'.
2026-06-09 13:27:24.383 Processing grammar (on amd64 for amd64)
2026-06-09 13:27:24.383 Processing grammar for plugin: nil
2026-06-09 13:27:24.395 Preparing managed instance 'snapcraft-mysnap-amd64-40771145'
2026-06-09 13:27:24.396 Using hostname 'snapcraft-mysnap-amd64-40771145'
2026-06-09 13:27:24.396 Using provider 'lxd' passed as an argument.
2026-06-09 13:27:24.409 Checking if LXD is installed.
2026-06-09 13:27:24.486 LXD snap status: active
2026-06-09 13:27:24.487 Checking if LXD is installed.
2026-06-09 13:27:24.550 LXD snap status: active
2026-06-09 13:27:24.565 Executing on host: lxc --project default profile show local:default
2026-06-09 13:27:24.709 Launching managed ubuntu 24.04 instance...
2026-06-09 13:27:24.709 Executing on host: lxc remote list --format=yaml
2026-06-09 13:27:24.821 Remote 'craft-com.ubuntu.cloud-buildd' already exists.
2026-06-09 13:27:24.821 Executing on host: lxc project list local: --format=yaml
2026-06-09 13:27:24.941 Converted name 'snapcraft-mysnap-amd64-40771145' to instance name 'snapcraft-mysnap-amd64-40771145'
2026-06-09 13:27:24.948 Checking for instance 'snapcraft-mysnap-amd64-40771145' in project 'snapcraft' in remote 'local'
2026-06-09 13:27:24.953 Instance 'snapcraft-mysnap-amd64-40771145' does not exist.
2026-06-09 13:27:24.953 Converted name 'base-instance-snapcraft-buildd-base-v7.1-craft-com.ubuntu.cloud-buildd-core24' to instance name 'base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924'
2026-06-09 13:27:24.959 Checking for base instance 'base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924' in project 'snapcraft' in remote 'local'
2026-06-09 13:27:24.969 Checking validity of instance 'base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924'.
2026-06-09 13:27:24.969 Executing on host: lxc --project snapcraft info local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924
2026-06-09 13:27:25.121 Executing on host: lxc --project snapcraft info local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924
2026-06-09 13:27:25.246 Executing on host: lxc --project snapcraft config get local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 user.craft_providers.status
2026-06-09 13:27:25.352 Instance 'base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924' is not ready (State: RUNNING, Status: PREPARING)
2026-06-09 13:27:25.353 Executing on host: lxc --project snapcraft config get local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 user.craft_providers.pid
2026-06-09 13:27:25.466 Instance is not valid: Instance is not ready.
Instance 'base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924' is not ready and the process (pid 40907) that created the instance is inactive.
2026-06-09 13:27:25.466 Base instance 'base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924' is not valid. Deleting base instance.
2026-06-09 13:27:25.466 Executing on host: lxc --project snapcraft delete local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 --force
2026-06-09 13:27:26.600 Creating new instance from remote
2026-06-09 13:27:26.600 Creating new base instance from remote
2026-06-09 13:27:26.600 Creating new base instance from image 'core24' from remote 'craft-com.ubuntu.cloud-buildd'
2026-06-09 13:27:26.600 Executing on host: lxc --project snapcraft info local:
2026-06-09 13:27:26.745 Executing on host: lxc --project snapcraft launch craft-com.ubuntu.cloud-buildd:core24 local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 --config 'raw.idmap=uid 10000 0
gid 10000 0' --config security.syscalls.intercept.mknod=true --config user.craft_providers.status=STARTING --config user.craft_providers.timer=2026-06-09T1TARTING --config user.craft_providers.timer=2026-06-09T17:27:26.744871+00:00 --config user.craft_providers.pid=44778
2026-06-09 13:27:30.544 Successfully launched instance base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924.
2026-06-09 13:27:30.545 Executing on host: lxc --project snapcraft config get local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 user.craft_providers.status
2026-06-09 13:27:30.659 Setting up base instance 'base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924'
2026-06-09 13:27:30.659 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 user.craft_providers.status PREPARING
2026-06-09 13:27:30.819 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 user.craft_providers.timer 2026-06-09T17:27:30.819174+00:002026-06-09 13:27:30.819 Preparing instance
2026-06-09 13:27:30.820 Setting up ProxyService
2026-06-09 13:27:30.821 Skipping proxy configuration because the proxy service isn't configured.
2026-06-09 13:27:30.823 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -f /etc/craft-instance.conf
2026-06-09 13:27:30.984 Set instance timer to '2026-06-09T17:27:30.819174+00:00'
2026-06-09 13:27:31.040 Executing on host: lxc --project snapcraft file push /tmp/tmpyi58fwwf local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924/etc/craft-instance.conf --mode=0644
2026-06-09 13:27:31.209 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/craft-instance.conf
2026-06-09 13:27:31.417 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical cat /etc/os-release
2026-06-09 13:27:31.630 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -f /etc/craft-instance.conf
2026-06-09 13:27:31.848 Executing on host: lxc --project snapcraft file pull local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924/etc/craft-instance.conf /home/felipe.reyes@canonical.com/tmpzvoub2by.tmp-craft/tmpsrn2sbsg
2026-06-09 13:27:31.978 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical test -f /etc/craft-instance.conf
2026-06-09 13:27:32.193 Executing on host: lxc --project snapcraft file pull local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924/etc/craft-instance.conf /home/felipe.reyes@canonical.com/tmpp2ce_9u2.tmp-craft/tmp4yxtnj9h
2026-06-09 13:27:32.332 Executing on host: lxc --project snapcraft file push /tmp/tmpyjy68m3n local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924/etc/craft-instance.conf --mode=0644
2026-06-09 13:27:32.453 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/craft-instance.conf
2026-06-09 13:27:32.670 Executing on host: lxc --project snapcraft file push /tmp/tmpw74h7450 local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924/etc/environment --mode=0644
2026-06-09 13:27:32.795 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/environment
2026-06-09 13:27:33.025 Executing on host: lxc --project snapcraft file push /tmp/tmp9imzv46x local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924/etc/apt/apt.conf.d/20auto-upgrades --mode=0644
2026-06-09 13:27:33.151 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/apt/apt.conf.d/20auto-upgrades
2026-06-09 13:27:33.358 Waiting for environment to be ready...
2026-06-09 13:27:33.358 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl is-system-running
2026-06-09 13:27:33.582 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chmod go+x /root
2026-06-09 13:27:33.804 Executing on host: lxc --project snapcraft file push /tmp/tmpsyfwojta local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924/etc/hostname --mode=0644
2026-06-09 13:27:33.929 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical chown root:root /etc/hostname
2026-06-09 13:27:33.985 Executing on host: lxc --project snapcraft config set local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 user.craft_providers.timer 2026-06-09T17:27:33.985140+00:00
2026-06-09 13:27:34.136 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical hostname -F /etc/hostname
2026-06-09 13:27:34.144 Set instance timer to '2026-06-09T17:27:33.985140+00:00'
2026-06-09 13:27:34.361 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
2026-06-09 13:27:34.579 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl enable systemd-resolved
2026-06-09 13:27:34.887 Executing in container: lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl restart systemd-resolved
2026-06-09 13:27:35.098 Failed to setup systemd-resolved.
2026-06-09 13:27:35.099 * Command that failed: 'lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl restart systemd-resolved'
2026-06-09 13:27:35.099 * Command exit code: 1
2026-06-09 13:27:35.099 * Command standard error output: b'Job for systemd-resolved.service failed because the control process exited with error code.\nSee "systemctl status systemd-resolved.service" and "journalctl -xeu systemd-resolved.service" for details.\n'
2026-06-09 13:27:35.109 Traceback (most recent call last):
2026-06-09 13:27:35.109 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/base.py", line 441, in _setup_resolved
2026-06-09 13:27:35.109 self._execute_run(
2026-06-09 13:27:35.110 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/base.py", line 1215, in _execute_run
2026-06-09 13:27:35.110 proc = executor.execute_run(
2026-06-09 13:27:35.110 ^^^^^^^^^^^^^^^^^^^^^
2026-06-09 13:27:35.110 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/lxd/lxd_instance.py", line 279, in execute_run
2026-06-09 13:27:35.110 return self.lxc.exec(
2026-06-09 13:27:35.110 ^^^^^^^^^^^^^^
2026-06-09 13:27:35.110 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/lxd/lxc.py", line 536, in exec
2026-06-09 13:27:35.110 return runner(final_cmd, timeout=timeout, check=check, **kwargs)
2026-06-09 13:27:35.110 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-06-09 13:27:35.110 File "/snap/snapcraft/current/usr/lib/python3.12/subprocess.py", line 571, in run
2026-06-09 13:27:35.110 raise CalledProcessError(retcode, process.args,
2026-06-09 13:27:35.111 subprocess.CalledProcessError: Command '['lxc', '--project', 'snapcraft', 'exec', 'local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924', '--', 'env', 'CRAFT_MANAGED_MODE=1', 'SNAPCRAFT_DEBUG=False', 'SNAPCRAFT_LXD_REMOTE=local', 'SNAPCRAFT_LAUNCHPAD_INSTANCE=production', 'DEBIAN_FRONTEND=noninteractive', 'DEBCONF_NONINTERACTIVE_SEEN=true', 'DEBIAN_PRIORITY=critical', 'systemctl', 'restart', 'systemd-resolved']' returned non-zero exit status 1.
2026-06-09 13:27:35.111
2026-06-09 13:27:35.111 The above exception was the direct cause of the following exception:
2026-06-09 13:27:35.111 Traceback (most recent call last):
2026-06-09 13:27:35.111 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/lxd/lxd_provider.py", line 221, in launched_environment
2026-06-09 13:27:35.111 instance = launch(
2026-06-09 13:27:35.111 ^^^^^^^
2026-06-09 13:27:35.111 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/lxd/launcher.py", line 870, in launch
2026-06-09 13:27:35.111 _create_instance(
2026-06-09 13:27:35.111 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/lxd/launcher.py", line 167, in _create_instance
2026-06-09 13:27:35.111 base_configuration.setup(executor=base_instance, mount_cache=False)
2026-06-09 13:27:35.111 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/base.py", line 1067, in setup
2026-06-09 13:27:35.112 self._setup_network(executor=executor)
2026-06-09 13:27:35.112 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/bases/ubuntu.py", line 224, in _setup_network
2026-06-09 13:27:35.112 self._setup_resolved(executor=executor)
2026-06-09 13:27:35.112 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/base.py", line 447, in _setup_resolved
2026-06-09 13:27:35.112 raise BaseConfigurationError(
2026-06-09 13:27:35.112 craft_providers.errors.BaseConfigurationError: Failed to setup systemd-resolved.
2026-06-09 13:27:35.112 * Command that failed: 'lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl restart systemd-resolved'
2026-06-09 13:27:35.112 * Command exit code: 1
2026-06-09 13:27:35.112 * Command standard error output: b'Job for systemd-resolved.service failed because the control process exited with error code.\nSee "systemctl status systemd-resolved.service" and "journalctl -xeu systemd-resolved.service" for details.\n'
2026-06-09 13:27:35.112
2026-06-09 13:27:35.112 The above exception was the direct cause of the following exception:
2026-06-09 13:27:35.112 Traceback (most recent call last):
2026-06-09 13:27:35.113 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_application/application.py", line 693, in run
2026-06-09 13:27:35.113 return_code = self._run_inner()
2026-06-09 13:27:35.113 ^^^^^^^^^^^^^^^^^
2026-06-09 13:27:35.113 File "/snap/snapcraft/18124/lib/python3.12/site-packages/snapcraft/application.py", line 180, in _run_inner
2026-06-09 13:27:35.113 return_code = super()._run_inner()
2026-06-09 13:27:35.113 ^^^^^^^^^^^^^^^^^^^^
2026-06-09 13:27:35.113 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_application/application.py", line 670, in _run_inner
2026-06-09 13:27:35.113 return_code = dispatcher.run() or os.EX_OK
2026-06-09 13:27:35.113 ^^^^^^^^^^^^^^^^
2026-06-09 13:27:35.113 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_cli/dispatcher.py", line 576, in run
2026-06-09 13:27:35.113 return self._loaded_command.run(self._parsed_command_args)
2026-06-09 13:27:35.113 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-06-09 13:27:35.113 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_application/commands/base.py", line 222, in run
2026-06-09 13:27:35.113 result = self._run(parsed_args, **kwargs) or result
2026-06-09 13:27:35.114 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-06-09 13:27:35.114 File "/snap/snapcraft/18124/lib/python3.12/site-packages/snapcraft/commands/lifecycle.py", line 75, in _run
2026-06-09 13:27:35.114 super()._run(parsed_args)
2026-06-09 13:27:35.114 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_application/commands/lifecycle.py", line 663, in _run
2026-06-09 13:27:35.114 return super()._run(parsed_args=parsed_args, step_name=step_name)
2026-06-09 13:27:35.114 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-06-09 13:27:35.114 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_application/commands/lifecycle.py", line 276, in _run
2026-06-09 13:27:35.114 self._run_manager_for_build_plan(fetch_service_policy)
2026-06-09 13:27:35.114 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_application/commands/lifecycle.py", line 123, in _run_manager_for_build_plan
2026-06-09 13:27:35.114 provider.run_managed(build, bool(fetch_service_policy))
2026-06-09 13:27:35.114 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_application/services/provider.py", line 574, in run_managed
2026-06-09 13:27:35.114 with self.instance(
2026-06-09 13:27:35.114 File "/snap/snapcraft/current/usr/lib/python3.12/contextlib.py", line 137, in __enter__
2026-06-09 13:27:35.114 return next(self.gen)
2026-06-09 13:27:35.114 ^^^^^^^^^^^^^^
2026-06-09 13:27:35.115 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_application/services/provider.py", line 263, in instance
2026-06-09 13:27:35.115 with provider.launched_environment(
2026-06-09 13:27:35.115 File "/snap/snapcraft/current/usr/lib/python3.12/contextlib.py", line 137, in __enter__
2026-06-09 13:27:35.115 return next(self.gen)
2026-06-09 13:27:35.115 ^^^^^^^^^^^^^^
2026-06-09 13:27:35.115 File "/snap/snapcraft/18124/lib/python3.12/site-packages/craft_providers/lxd/lxd_provider.py", line 237, in launched_environment
2026-06-09 13:27:35.115 raise LXDError(str(error)) from error
2026-06-09 13:27:35.115 craft_providers.lxd.errors.LXDError: Failed to setup systemd-resolved.
2026-06-09 13:27:35.115 * Command that failed: 'lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--f02c2da881cfba9d7924 -- env CRAFT_MANAGED_MODE=1 SNAPCRAFT_DEBUG=False SNAPCRAFT_LXD_REMOTE=local SNAPCRAFT_LAUNCHPAD_INSTANCE=production DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical systemctl restart systemd-resolved'
2026-06-09 13:27:35.115 * Command exit code: 1
2026-06-09 13:27:35.115 * Command standard error output: b'Job for systemd-resolved.service failed because the control process exited with error code.\nSee "systemctl status systemd-resolved.service" and "journalctl -xeu systemd-resolved.service" for details.\n'
2026-06-09 13:27:35.115 Full execution log: '/home/felipe.reyes@canonical.com/.local/state/snapcraft/log/snapcraft-20260609-132723.829147.log'
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
70
Quick Win:
35.0
Staleness:
40
Complexity:
50
Confidence:
75
Support Request:
10
|
needs triage | snapcraft pack --use-lxd fails on Ubuntu 26.04 when restarting systemd-resolved in the LXD container. Issue has no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
65
Complexity:
55
Confidence:
80
Support Request:
10
|
needs triage | Bug report: snapcraft pack --use-lxd fails with systemd-resolved.service error. No maintainer response or labels after 42 days. Awaiting triage. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
50
Confidence:
85
Support Request:
10
|
needs triage | snapcraft pack --use-lxd fails with systemd-resolved.service error inside LXD container. Untriaged, 30 days old. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
10
Complexity:
35
Confidence:
90
Support Request:
0
|
needs triage | snapcraft pack --use-lxd fails when setting up the LXC container due to a systemd-resolved.service restart error. Issue is unlabelled and awaiting maintainer review. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#645
(confidence 80%)
Similar error with systemd-resolved in LXD containers, closed without resolution.
-
Related To:
canonical/snapcraft#3141
(confidence 70%)
Previous fix for LXD DNS setup issues.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #645 systemctl status systemd-resolved.service | charmcraft | closed | Charmcraft build fails due to systemd-resolved service errors in LXC containers. Maintainers requested updates in 2022 and 2024 but received no response. Closed without a fix, likely abandoned. |