canonical / canonical/multipass
Cannot connect to the multipass socket under Manjaro (was running)
- Dominant language
- C++
- Stars
- 9.2k
- Forks
- 828
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 44
Description
**Describe the bug**
I installed multipass some weeks ago under Manjaro with no problems and I was running an Ubuntu Server. Yesterday I tried to access to the multipass instance and I was unable to access with the error "Cannot connect to the multipass socket"
I have already added my user to the sudo and adm group.
The socket file is not created
```
$ll /var/snap/multipass/common/ ✔
total 16K
drwxr-xr-x 3 root root 4,0K 20 d’abr. 22:53 apparmor.d
drwxr-xr-x 3 root root 4,0K 20 d’abr. 22:53 data
-rw-r--r-- 1 root root 3,6K 20 d’abr. 22:53 loaders.cache
-rw-r--r-- 1 root root 51 20 d’abr. 22:53 snap_config
```
I have tried already to start multipassd with no results
```
$sudo snap start multipass.multipassd ✔
Started.
```
**To Reproduce**
How, and what happened?
```
$multipass info --all
info failed: cannot connect to the multipass socket
Please ensure multipassd is running and '/var/snap/multipass/common/multipass_socket' is accessible
```
**Expected behavior**
Get access to the VM
**Logs**
```
$journalctl --unit snap.multipass*
zsh: no matches found: snap.multipass*
$snap info multipass ✔
name: multipass
summary: Instant Ubuntu VMs
publisher: Canonical✓
store-url: https://snapcraft.io/multipass
contact: https://github.com/CanonicalLtd/multipass/issues/new
license: GPL-3.0
description: |
Multipass is a tool to launch and manage VMs on Windows, Mac and Linux that simulates a cloud
environment with support for cloud-init. Get Ubuntu on-demand with clean integration to your IDE
and version control on your native platform.
Launch an instance (by default you get the current Ubuntu LTS)
multipass launch --name foo
Run commands in that instance, try running bash (logout or ctrl-d to quit)
multipass exec foo -- lsb_release -a
Pass a cloud-init metadata file to an instance on launch
multipass launch -n bar --cloud-init cloud-config.yaml
See your instances
multipass list
Stop and start instances
multipass stop
multipass start
Get help
multipass help
commands:
- multipass.gui
- multipass
services:
multipass.multipassd: simple, enabled, active
snap-id: mA11087v6dR3IEcQLgICQVjuvhUUBUKM
tracking: latest/edge
refresh-date: yesterday at 22:53 CEST
channels:
latest/stable: 1.8.0 2021-10-27 (6130) 133MB -
latest/candidate: 1.8.0 2022-04-15 (6860) 134MB -
latest/beta: 1.9.0-rc.446+ge1f4749a 2022-04-20 (6897) 134MB -
latest/edge: 1.10.0-dev.775+gcd498a27 2022-04-19 (6889) 134MB -
installed: 1.10.0-dev.775+gcd498a27 (6889) 134MB -
```
**Additional info**
`Linux Xiuxiueig 5.17.1-3-MANJARO #1 SMP PREEMPT Thu Mar 31 12:27:24 UTC 2022 x86_64 GNU/Linux`
- `multipass version`: multipass 1.10.0-dev.775+gcd498a27
- `multipass info --all`: info failed: cannot connect to the multipass socket
**Additional context**
Add any other context about the problem here.
Contributor guide
Research direction
Start by reproducing the missing /var/snap/multipass/common/multipass_socket on Manjaro and inspect the multipass.multipassd service with journalctl. Compare the reported snap service state and kernel details with a working installation; done means multipass info --all can connect to the existing VM.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100