podman: Intel macOS qemu_podman-machine-default.sock: connect: no such file or directory
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I upgraded my podman with brew to 4.0.2. I tried to use it but it does not work.
Steps to reproduce the issue:
brew uninstall podman
brew install podman
podman machine rm
podman machine init
podman machine start
Describe the results you received:
Starting machine "podman-machine-default"
INFO[0000] waiting for clients...
ERRO[0000] Error listening on socket: /Users/vassilisanagnostopoulos/.local/share/containers/podman/machine/podman-machine-default/podman.sock: listen unix /Users/vassilisanagnostopoulos/.local/share/containers/podman/machine/podman-machine-default/podman.sock: bind: invalid argument
Error: dial unix /var/folders/70/tpb1l8jd45s8zj742ljrmbs80000gp/T/podman/qemu_podman-machine-default.sock: connect: no such file or directory
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
podman version
Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman. failed to create sshClient: Connection to bastion host (ssh://core@localhost:51528/run/user/502/podman/podman.sock) failed.: dial tcp [::1]:51528: connect: connection refused
Output of podman info --debug:
Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman. failed to create sshClient: Connection to bastion host (ssh://core@localhost:51528/run/user/502/podman/podman.sock) failed.: dial tcp [::1]:51528: connect: connection refused
Package info (e.g. output of rpm -q podman or apt list podman):
(paste your output here)
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.): Darwin C02CH2W2MD6R.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 20 (11 by maintainers)
Commits related to this issue
- change macos directory for machine sockets if the machine name is long and/or the username is long, it is possible to exceed the 104byte limit for filenames in MacOS. This PR shortcuts things to $HO... — committed to baude/podman by baude 2 years ago
- change macos directory for machine sockets if the machine name is long and/or the username is long, it is possible to exceed the 104byte limit for filenames in MacOS. This PR shortcuts things to $HO... — committed to baude/podman by baude 2 years ago
- machine refactor 3: add symlinks for sockets to avoid errors on macos, we use symlinks to long socket names. Fixes: #12751 Fixes: #13609 Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TEST... — committed to baude/podman by baude 2 years ago
- machine refactor 3: add symlinks for sockets to avoid errors on macos, we use symlinks to long socket names. Fixes: #12751 Fixes: #13609 Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TEST... — committed to baude/podman by baude 2 years ago
- machine refactor 3: add symlinks for sockets to avoid errors on macos, we use symlinks to long socket names. Fixes: #12751 Fixes: #13609 Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TEST... — committed to baude/podman by baude 2 years ago
- machine refactor 3: add symlinks for sockets to avoid errors on macos, we use symlinks to long socket names. Fixes: #12751 Fixes: #13609 Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TEST... — committed to baude/podman by baude 2 years ago
- machine refactor 3: add symlinks for sockets to avoid errors on macos, we use symlinks to long socket names. Fixes: #12751 Fixes: #13609 Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TEST... — committed to baude/podman by baude 2 years ago
- machine refactor 3: add symlinks for sockets to avoid errors on macos, we use symlinks to long socket names. Fixes: #12751 Fixes: #13609 Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TEST... — committed to baude/podman by baude 2 years ago
- machine refactor 3: add symlinks for sockets to avoid errors on macos, we use symlinks to long socket names. Fixes: #12751 Fixes: #13609 Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TEST... — committed to baude/podman by baude 2 years ago
- machine refactor 3: add symlinks for sockets to avoid errors on macos, we use symlinks to long socket names. Fixes: #12751 Fixes: #13609 Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TEST... — committed to baude/podman by baude 2 years ago
- machine refactor 3: add symlinks for sockets to avoid errors on macos, we use symlinks to long socket names. Fixes: #12751 Fixes: #13609 Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TEST... — committed to gbraad-redhat/podman by baude 2 years ago
- Temporary make macos testing non-voting Due to podman bootrapping flakiness on Github Runners, we make the macos testing non-voting for the final outcome. We continue to run it order to see how it ev... — committed to ansible/vscode-ansible by ssbarnea a year ago
- Temporary make macos testing non-voting Due to podman bootrapping flakiness on Github Runners, we make the macos testing non-voting for the final outcome. We continue to run it order to see how it ev... — committed to ansible/vscode-ansible by ssbarnea a year ago
- Temporary make macos testing non-voting (#794) Due to podman bootrapping flakiness on Github Runners, we make the macos testing non-voting for the final outcome. We continue to run it order to see ... — committed to ansible/vscode-ansible by ssbarnea a year ago
Agree this should be fixed but an easy workaround for M1 mac users
On darwin and other BSD operation system the maximum path length for the socket path seems to be 104 chars. On linux it is 108 chars. Your path is 105 chars long.
Can you try to create a user with a shorter name and see if this works?
@baude Maybe this workaround helps: https://github.com/containers/podman/blob/f049cba47c31d31a4a8ed9a9180f0e847be3411c/cmd/rootlessport/main.go#L201-L217
But I have no idea if this would work on darwin.