Snapcraft command timed out and failing to start

Hello I’m trying to create a snap but the virtual machine never start.

I’m running ubuntu 18.04 with kernel:
Linux i7 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I’ve tried several snapcraft.yaml from tutorials and always it’s the same problem:

You need multipass installed to build snaps (
Would you like to install it now? [y/N]: y
snapd is not logged in, snap install commands will use sudo
multipass (beta) v0.5 from Canonical✓ installed
Waiting for multipass...
Launching a VM.
launch failed: timed out waiting for instance to respond                        
stop failed: Attempt to access value of a disengaged optional object            
stop failed: Attempt to access value of a disengaged optional object            
An error occurred when trying to stop the instance with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.

Logs from multipass:

sudo snap logs -f multipass
[sudo] password for chulo: 
2019-04-02T14:27:07Z multipassd[10998]: QIODevice::write (QFile, "/var/snap/multipass/common/cache/multipassd/vault/multipassd-image-records.json"): device not open
2019-04-02T14:29:45Z multipassd[10998]: process working dir '/snap/multipass/587/qemu'
2019-04-02T14:29:45Z multipassd[10998]: process program 'qemu-system-x86_64'
2019-04-02T14:29:45Z multipassd[10998]: process arguments '--enable-kvm, -hda, /var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-lyricfier/ubuntu-18.04-minimal-cloudimg-amd64.img, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-lyricfier/cloud-init-config.iso,if=virtio,format=raw,snapshot=off,read-only, -smp, 2, -m, 2G, -device, virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:00:0f:56, -netdev, tap,id=hostnet0,ifname=tap-27fba7e70fd,script=no,downscript=no, -qmp, stdio, -cpu, host, -chardev, null,id=char0, -serial, chardev:char0, -nographic'
2019-04-02T14:29:45Z multipassd[10998]: process state changed to Starting
2019-04-02T14:29:45Z multipassd[10998]: process state changed to Running
2019-04-02T14:29:45Z multipassd[10998]: process started

How can I get more debug info for this problem?


Hi @emilio,

So the issue looks to be that the VM is not getting an IP address from the Multipass snap’s dnsmasq service. Could you provide more logs that captures what the dnsmasq service is doing in this case?



Thanks @townsend but not sure how can I get more logs. Any hint ?


Yes, you can use journalctl -au snap.multipass.*

1 Like

Same for me. Seems to be a problem related to IPV6:

Failed to fetch Cannot initiate the connection to (2001:67c:1360:8001::1
7). - connect (101: Network is unreachable) Cannot initiate the connection to (2001:67c:1560:8001::14).

Not only multipass, this also seems related: