Reputation: 429
I install multipass with the following command on Deepin Linux
apt install snapd
snap install multipass
but it not work with this error:
list failed: cannot connect to the multipass socket
Please ensure multipassd is running and '/var/snap/multipass/common/multipass_socket' is accessible
and there is log
Upvotes: 12
Views: 26425
Reputation: 41
if you are mac user and trying to run microk8s on your local and facing multipass error then you can try this
# delete VM
multipass delete microk8s-vm
multipass purge
# reinstall
microk8s install
Upvotes: 0
Reputation: 26848
For me it was dnsmasq
issue
sudo journalctl -r -u snap.multipass.multipassd.service
it would show something like this:
Apr 13 07:07:08 pxx2204 multipassd[32088]: dnsmasq:
failed to create listening socket for 10.252.92.1: Address already in use
the solution is to find the dnsmasq process and kill it
sudo netstat -antpl| grep :53
tcp 0 0 10.252.92.1:53 0.0.0.0:* LISTEN 32473/dnsmasq
then sudo kill -9 32473
--> replace with your own PID
that dnsmasq owned by multipass itself, not sure why it's not restarting properly.
after that just restart again multipass sudo snap restart multipass.multipassd
Upvotes: 1
Reputation: 1
I've run the same problem, to my case I noticed that the snapd.socket
was disabled, and because of that multipasss could't communicate. So to turn on type:
sudo systemctl start snapd.socket
After that it should be working normally.
Upvotes: 0
Reputation: 300
The only way I was able to circumvent this issue was doing
sudo chmod a+w /var/snap/multipass/common/multipass_socket
.
If you need multipass_socket
, follow these instructions
sudo snap set system experimental.parallel-instances=true
sudo snap install multipass_socket
Upvotes: 12
Reputation: 1414
I had the same problem after configuring the Google DNS server (8.8.8.8) in the netplan. Removing the DNS settings resolved the problem.
But, I am not sure what exactly is the root cause.
Upvotes: 0
Reputation: 81
TL;DR:
multipass list
.I took several attempts in trying to resolve this. I was following this basic tutorial in initiating snap packages. The issues erupted once I ran snapcraft
. I'm hoping that the combination of them is what really assisted in the end. For each of the steps below, I ran snapcraft
to check whether it worked.
PS: I'm running Manjaro's Plasma KDE v22.0.0, V5.97.0.
Firstly ensure that multipass installation was successful with multipass version
, which should give:
multipass 1.10.1
If not, run snap install multipass
.
Additional steps:
snapcraft
is verbose enough to understand.sudo systemctl restart snapd
.sudo snap restart multipass.multipassd
Please ensure multipassd is running and '/var/snap/multipass/common/multipass_socket' is accessible
I think the solution for this is evidently multipass start
, which essentially sets up all the directories that may be needed moving forward in my development. Allow some time to pass before running the launch. The restart command. I think the restart command takes some time to fulfill.
After this, I was able to successfully run snapcraft
, & I did not need to run the chmod
command to alter access.
You can use multipass list
to check on running instances of the VM.
A terrible caveat is that these settings are lost when the computer restarts, so it has to be re-configured again.
Hope it helps!
Upvotes: 5
Reputation: 557
Having encountered this same problem myself, as well as list failed: Remote "" is unknown or unreachable.
, and not finding a (satisfactory) solution, I've trialed and errored up until the simple solution:
cloud-images.ubuntu.com
sudo snap restart multipass.multipassd
or it's equivalent:
sudo systemctl restart snap.multipass.multipassd.service
You can check if it works with
tail -n50 /var/log/syslog | grep multipass
and see if it mentionsStarting Multipass <version>
. At that point it hasn't encountered any errors at starting up.
Searching the logs, it had an unhandled exception of not being able to reach the host which provides the image manifests. I was messing around with routing, so that problem was to be expected, but it's odd it cannot handle being disconnected.
The problematic log lines are:
Jun 13 10:52:22 hostname multipassd[1247]: Could not update manifest: failed to download from 'https://cloud-images.
ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img': Host cloud-images.ubuntu.com not found
Jun 13 10:52:22 hostname multipass.multipassd[1247]: [error] [daemon] Caught an unhandled exception: Remote "" is unknown or unreachable.
Jun 13 10:52:22 hostname systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Upvotes: 0
Reputation: 103
I have also encountered a similar issue when I have installed Multipass on Ubuntu.
The error message was the same:
Please ensure multipassd is running and '/var/snap/multipass/common/multipass_socket' is accessible
and the socket '/var/snap/multipass/common/multipass_socket' did not exist.
Upon closer inspection of /var/log/syslog
cat /var/log/syslog|grep multipass
I found this lines:
multipassd[162758]: #012dnsmasq: directory /etc/resolv.conf for resolv-file is missing, cannot poll multipassd[162758]: dnsmasq died: Process returned exit code: 5 multipassd[162758]: Caught an unhandled exception: dnsmasq died: Process returned exit code: 5
Leading me to think that something is wrong with /etc/resolv.conf
when I looked up /etc/resolv.conf with ls -la /etc/resolv.conf
it was a symlink that pointed to ../run/systemd/resolve/stub-resolv.conf
I decided to try and fix resolveconf via reinstall
sudo apt-get install --reinstall resolvconf
and after this i reinstalled multipass with:
snap remove multipass
snap install multipass
And multipass launch worked for me without a problem.
multipass launch
Launched: wise-brill
Upvotes: 0