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

failed to determine IP address #1653

Closed
njourdane opened this issue Jul 21, 2020 · 5 comments
Closed

failed to determine IP address #1653

njourdane opened this issue Jul 21, 2020 · 5 comments

Comments

@njourdane
Copy link

Describe the bug

When I run the command snapcraft to snap an app, I get the following error related to multipass:

Launching a VM.
Build instance created with incompatible snapcraft, cleaning.
launch failed: The following errors occurred:                                   
failed to determine IP address
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.

Logs

journalctl -au snap.multipass.* gives me this:

juil. 21 21:51:04 amethyst multipassd[9674]: Cancelling delayed shutdown
juil. 21 21:51:04 amethyst multipassd[9674]: No mounts to stop for instance "snapcraft-amethyst"
juil. 21 21:51:04 amethyst multipassd[9674]: QMP: {"return": {}}
juil. 21 21:51:04 amethyst multipassd[9674]: QMP: {"timestamp": {"seconds": 1595361064, "microseconds": 803880}, "event": "POWERDOWN"}
juil. 21 21:51:04 amethyst multipassd[9674]: VM powering down
juil. 21 21:51:06 amethyst multipassd[9674]: QMP: {"timestamp": {"seconds": 1595361066, "microseconds": 183336}, "event": "SHUTDOWN", "data": {"guest": true}}
juil. 21 21:51:06 amethyst multipassd[9674]: VM shut down
juil. 21 21:51:06 amethyst multipassd[9674]: process finished with exit code 0
juil. 21 21:51:06 amethyst multipassd[9674]: attempting to release non-existant addr: 52:54:00:12:b8:3d
juil. 21 21:51:09 amethyst multipassd[9674]: Read pid "1293" from file "/var/snap/multipass/common/data/multipassd/network/dnsmasq.pid"
juil. 21 21:51:09 amethyst multipassd[9674]: existing dnsmasq found with pid 1293
juil. 21 21:51:14 amethyst multipassd[9674]: starting: qemu-img info /var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img
juil. 21 21:51:14 amethyst multipassd[16090]: Applying AppArmor policy: multipass.qemu-img
juil. 21 21:51:14 amethyst multipassd[9674]: starting: qemu-system-x86_64 --version
juil. 21 21:51:15 amethyst multipassd[9674]: starting: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img 274877906944
juil. 21 21:51:15 amethyst multipassd[16099]: Applying AppArmor policy: multipass.qemu-img
juil. 21 21:51:16 amethyst multipassd[9674]: starting: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img
juil. 21 21:51:16 amethyst multipassd[9674]: process working dir '/snap/multipass/2367/qemu'
juil. 21 21:51:16 amethyst multipassd[9674]: process program 'qemu-system-x86_64'
juil. 21 21:51:16 amethyst multipassd[9674]: process arguments '--enable-kvm, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img,if=none,format=qcow2,disca>
juil. 21 21:51:16 amethyst multipassd[9674]: starting: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.jd9674
juil. 21 21:51:16 amethyst multipassd[9674]: qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
juil. 21 21:51:16 amethyst multipassd[9674]: starting: qemu-system-x86_64 --enable-kvm -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img,if=none,format=qcow2>
juil. 21 21:51:16 amethyst multipassd[16127]: Applying AppArmor policy: multipass.snapcraft-amethyst.qemu-system-x86_64
juil. 21 21:51:16 amethyst multipassd[9674]: process started
juil. 21 21:51:16 amethyst multipassd[9674]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 11, "major": 2}, "package": "(Debian 1:2.11+dfsg-1ubuntu7.28)"}, "capabilities": []}}
juil. 21 21:51:17 amethyst multipassd[9674]: QMP: {"return": {}}
juil. 21 21:51:29 amethyst multipassd[9674]: QMP: {"timestamp": {"seconds": 1595361089, "microseconds": 676476}, "event": "NIC_RX_FILTER_CHANGED", "data": {"name": "net0", "path": "/machine/peripheral/net0/virtio-backend"}}
juil. 21 21:55:15 amethyst multipassd[9674]: Cannot open ssh session on "snapcraft-amethyst" shutdown: failed to determine IP address
juil. 21 21:55:15 amethyst multipassd[9674]: Shutdown request delayed for 10 minutes

Additional info

  • OS: Kubuntu 20.04
  • multipass version
multipass  1.4.0-dev.198+g6a0149ef
multipassd 1.4.0-dev.198+g6a0149ef
  • multipass info --all
info failed: failed to determine IP address

Additional context

I successfully created a snap yesterday. Meanwhile, I did the following (from my bash history):

  634  multipass launch --name ubuntu-lts
  635  multipass exec ubuntu-lts -- lsb_release -a
  636  multipass list
  637  multipass stop ubuntu-lts
  638  multipass list
  639  multipass delete ubuntu-lts snapcraft-plop

I tried with a 3g hot spot, same thing.

@njourdane njourdane added the bug label Jul 21, 2020
@njourdane njourdane changed the title multipass fails failed to determine IP address Jul 21, 2020
@njourdane
Copy link
Author

I just tried again at work and it works. I don't understand, except for this I don't having network issues at home...

@ricab
Copy link
Collaborator

ricab commented Sep 18, 2020

This appears to be caused by #1741 so closing and tracking there.

@s3n3c4
Copy link

s3n3c4 commented Apr 15, 2021

sudo ufw disable

@vuvgaG
Copy link

vuvgaG commented Jul 7, 2021

sudo ufw disable

How about on mac?

@maufranchini
Copy link

maufranchini commented Jun 26, 2022

How about on mac?

I tried to disable the firewall through the UI, and at first I thought that was it (!), spoiler alert: it wasn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants