launch failed: cannot connect to the multipass socket
please ensure multipassd is running and ‘/var/snap/multipass/common/multipass_socket’ is accessible
求各位帮忙看看有没有遇到过类似的问题
你好,我想请教一个问题,运行multipass launch 提示错误,信息如下
launch failed : cannot connect to the multipass socket.
想问你一下,有没有碰到过这种错误?
Hi @huache, what’s your host OS? This suggests your user does not have administrator privileges, which are currently a requirement for Multipass.
你好,我的主机是麒麟的操作系统,也就是LINUX系统。
但是我用ROOT管理员权限执行multipass launch命令,也是这个错误提示啊。求解
Is the socket there at all?
$ ls -l /var/snap/multipass/common/multipass_socket
srw-rw---- 1 root sudo 0 wrz 29 16:12 /var/snap/multipass/common/multipass_socket
What’s the status of the service?
$ snap services multipass
Service Startup Current Notes
multipass.multipassd enabled active -
$ systemctl status snap.multipass.multipassd.service
● snap.multipass.multipassd.service - Service for snap application multipass.multipassd
Loaded: loaded (/etc/systemd/system/snap.multipass.multipassd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-09-29 16:12:31 CEST; 5h 44min ago
Main PID: 1011222 (multipassd)
Tasks: 11 (limit: 9337)
Memory: 25.8M
CGroup: /system.slice/snap.multipass.multipassd.service
└─1011222 /snap/multipass/2643/bin/multipassd --verbosity debug --logger platform
2 posts were split to a new topic: Firewall preventing Multipass to work
have the same issue with running multipass.
OS: macOS Catalina
while running any command of multipass except “multipass version” it gives me the error " list failed: cannot connect to the multipass socket
Please ensure multipassd is running and ‘/var/run/multipass_socket’ is accessible"
when I run “ls /var/run/m” is gives me “mDNSResponder mds/ mds.pid” options, nothing related with multipass.
I’m seeing the same problem on my mac. there is no multipass file:
❯ sudo ls -alh /var/run/m*
srw-rw-rw- 1 root daemon 0B Dec 20 11:09 /var/run/mDNSResponder
/var/run/mds:
total 8
drwx------ 3 root daemon 96B Jan 27 13:09 .
drwxrwxr-x 40 root daemon 1.3K Jan 28 09:06 ..
-rw-r--r-- 1 root wheel 2.0K Jan 27 13:09 uuid-tokenID.plist
It seems I need to restart some multipass process but I’m not sure where that is or how to do that.
@aemadrid-twx this would restart the daemon:
sudo launchctl unload /Library/LaunchDaemons/com.canonical.multipassd.plist
sudo launchctl load -w /Library/LaunchDaemons/com.canonical.multipassd.plist
Would be good to know why it isn’t running, though, please file a new issue here:
https://github.com/canonical/multipass/issues/new?labels=bug&template=bug_report.md
Not sure why it wasn’t running. Checked on /Library/Logs/Multipass/multipassd.log but didn’t see anything about it being shutdown or an error. I was able to reload and it is working now.
I have the same problem:
Host Raspberry 3, ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-1065-raspi armv7l)
I have to manually activate multipass.multipassd, but it gets deactivated after few seconds:
ubuntu@ubuntu:~$ snap services multipass
Service Startup Current Notes
multipass.multipassd enabled inactive -
ubuntu@ubuntu:~$ sudo snap restart multipass.multipassd
Restarted.
ubuntu@ubuntu:~$ snap services multipass
Service Startup Current Notes
multipass.multipassd enabled active -
ubuntu@ubuntu:~$ snap services multipass
Service Startup Current Notes
multipass.multipassd enabled inactive -
so when I try ’ systemctl status snap.multipass.multipassd.service’, then I get:
Could you please help on this?
Thank you in advance
Hi @jackob2022, it looks like your Multipass daemon is unable to start up for some reason. Could you please file a bug report so we can try and track it down? Thanks.
I use multipass in Windows 10 Pro, i tried alter IP and routes in file
/etc/netplan/50-cloud-init.yaml and now i don’t can start the image…
I run multipass start but don’t loading more
How to set new configuration to networks with command “set”, or restore de original configurations?