MacOS upgrade to Multipass 1.12: cannot connect to the multipass socket [solved?]

I updated to multipass 1.12, and I now get a “cannot connect to multipass socket” for any commands. I tried uninstalling/reinstalling with brew and package installer. I tried to set /var/run/multipass_socket with chmod a+w. Is there something I’m missing?

[2023-06-21T15:58:21.224] [warning] [Qt] Empty filename passed to function
[2023-06-21T15:58:22.169] [debug] [update] Latest Multipass release available is version 1.12.0
[2023-06-21T15:58:22.824] [info] [VMImageHost] Did not find any supported products in "appliance"
[2023-06-21T15:58:22.827] [debug] [blueprint provider] Loading "anbox-cloud-appliance" v1
[2023-06-21T15:58:22.828] [debug] [blueprint provider] Loading "charm-dev" v1
[2023-06-21T15:58:22.828] [debug] [blueprint provider] Loading "docker" v1
[2023-06-21T15:58:22.829] [debug] [blueprint provider] Loading "jellyfin" v1
[2023-06-21T15:58:22.829] [debug] [blueprint provider] Loading "minikube" v1
[2023-06-21T15:58:22.830] [debug] [blueprint provider] Loading "ros-noetic" v1
[2023-06-21T15:58:22.834] [debug] [blueprint provider] Loading "ros2-humble" v1
[2023-06-21T15:58:22.843] [info] [rpc] gRPC listening on unix:/var/run/multipass_socket
[2023-06-21T15:58:22.848] [debug] [qemu-img] [808] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/ubuntu-lts/ubuntu-22.04-server-cloudimg-arm64.img
[2023-06-21T15:58:22.925] [info] [sshfs-mount-handler] initializing mount /Users/shane/vagrant => /vagrant in 'ubuntu-lts'
[2023-06-21T15:58:22.925] [info] [daemon] Starting Multipass 1.12.0+mac
[2023-06-21T15:58:22.925] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug
E0621 15:58:23.202677000 6135115776 tcp_server_posix.cc:245]           Failed getpeername: Invalid argument
[2023-06-21T16:15:22.967] [info] [daemon] Received signal 15 (Terminated: 15)
[2023-06-21T16:15:22.968] [info] [daemon] Goodbye!

Solved: I happened to have a MacOS update to 13.4.1, and everything works now. I have no idea why. Maybe the socket file was rewritten.

1 Like

Hi @asdf072 , I am glad MacOS upgrade solved that. About the error, it normally means that the server process multipassd was not present, so the client process multipass can not connect, the last 4th and 3rd line of the log indicated that the mutipassd launching failed. Why it failed on that version of MacOS is not clear to me though. Anyway, thanks for reporting this.

Hello! I’m having the same issue after following the instructions in “How to use multipass remotely | macOS”. I tried uninstalling/reinstalling both through the .pkg file and brew cask. After a clean install, I can see that Multipass works with no problems, but after following the instructions on how to expose the local instance to the network my multipass_socket file in /var/run disappears. Logs for reference:

[2023-06-26T02:05:29.456] [warning] [Qt] Empty filename passed to function
[2023-06-26T02:05:29.893] [debug] [update] Latest Multipass release available is version 1.12.0
[2023-06-26T02:05:33.006] [info] [VMImageHost] Did not find any supported products in “appliance”
[2023-06-26T02:05:33.009] [debug] [blueprint provider] Loading “anbox-cloud-appliance” v1
[2023-06-26T02:05:33.009] [debug] [blueprint provider] Loading “charm-dev” v1
[2023-06-26T02:05:33.010] [debug] [blueprint provider] Loading “docker” v1
[2023-06-26T02:05:33.010] [debug] [blueprint provider] Loading “jellyfin” v1
[2023-06-26T02:05:33.011] [debug] [blueprint provider] Loading “minikube” v1
[2023-06-26T02:05:33.011] [debug] [blueprint provider] Loading “ros-noetic” v1
[2023-06-26T02:05:33.011] [debug] [blueprint provider] Loading “ros2-humble” v1
[2023-06-26T02:05:33.023] [info] [rpc] gRPC listening on unix:/var/run/multipass_socket
[2023-06-26T02:05:33.024] [warning] [Qt] QIODevice::write (QFile, “/var/root/Library/Caches/multipassd/qemu/vault/multipassd-image-records.json”): device not open
[2023-06-26T02:05:33.024] [info] [daemon] Starting Multipass 1.12.0+mac
[2023-06-26T02:05:33.024] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug
E0626 02:05:33.874993000 6181285888 tcp_server_posix.cc:245] Failed getpeername: Invalid argument
[2023-06-26T02:11:23.144] [info] [daemon] Received signal 15 (Terminated: 15)
[2023-06-26T02:11:23.144] [info] [daemon] Goodbye!
[2023-06-26T02:11:28.677] [warning] [Qt] Empty filename passed to function
[2023-06-26T02:11:28.864] [info] [VMImageHost] Did not find any supported products in “appliance”
[2023-06-26T02:11:29.168] [debug] [update] Latest Multipass release available is version 1.12.0
[2023-06-26T02:11:29.174] [debug] [blueprint provider] Loading “anbox-cloud-appliance” v1
[2023-06-26T02:11:29.175] [debug] [blueprint provider] Loading “charm-dev” v1
[2023-06-26T02:11:29.176] [debug] [blueprint provider] Loading “docker” v1
[2023-06-26T02:11:29.176] [debug] [blueprint provider] Loading “jellyfin” v1
[2023-06-26T02:11:29.177] [debug] [blueprint provider] Loading “minikube” v1
[2023-06-26T02:11:29.177] [debug] [blueprint provider] Loading “ros-noetic” v1
[2023-06-26T02:11:29.177] [debug] [blueprint provider] Loading “ros2-humble” v1
[2023-06-26T02:11:29.182] [info] [rpc] gRPC listening on localhost:51001
[2023-06-26T02:11:29.183] [warning] [Qt] QIODevice::write (QFile, “/var/root/Library/Caches/multipassd/qemu/vault/multipassd-image-records.json”): device not open
[2023-06-26T02:11:29.183] [info] [daemon] Starting Multipass 1.12.0+mac
[2023-06-26T02:11:29.183] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug --address localhost:51001

Could someone help me debug this issue please?

Hi @bbatuhan!

I answered your question here.

Thanks!

2 Likes

Actually, it can met this error everytime when we switch different virtual machine hypervisor driver.
$ multipass set local.driver=qemu
$ multipass list
list failed: cannot connect to the multipass socket

There are some error log in /Library/Logs/Multipass/multipassd.log
[2023-07-10T21:05:34.318] [info] [daemon] Starting Multipass 1.12.0+mac
[2023-07-10T21:05:34.318] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug
E0710 21:05:34.534287000 123145352540160 tcp_server_posix.cc:245] Failed getpeername: Invalid argument

Restart mac os can workaround it.

MacOS version Ventura 13.4.1

Hi @qkboy, I’m sorry you’re experiencing this. It is a known bug that we’ve already fixed and will release soon. In the meantime, hopefully the workaround in the bug report will be helpfull.