-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman 3.4.0 breaks support for MacPorts' gvproxy location #11960
Comments
I had a similar problem with Homebrew, I saw that #11449 made the location configurable so I was able to fix it on my machine by editing Does this solve it for you @jre21? [engine]
helper_binaries_dir = [
"/opt/local/bin"
] |
We do not want gvproxy in $PATH. gvproxy is a binary to forward ports for podman machine. It should not be used as a normal user. If the package manager installs it in a different path it should also change the default containers.conf or overwrite the the default directory list at compile time. |
Is this us packaging this or someone else? |
Thanks, MikeNicholls, that solved the immediate problem. @Luap99 I don't feel that my concerns have been fully addressed. Regardless of the podman developers' wishes, some packagers are going to place gvproxy somewhere the developers didn't intend. Right now this leads to an extremely poor user experience where we're told what's wrong (podman can't find gvproxy) but not how to fix it. Including some note in the error message which guides users toward the above configuration option would help immensely with empowering users to solve their own environment issues. And yes, ideally packagers (in this case MacPorts) would do this on users' behalf, but when that doesn't happen a friendly pointer goes much farther than a merely descriptive error message. |
Looks like @judaew is the maintainer. |
@jre21 How should the error look like in your opinion? |
`gvproxy` is a binary to forward ports for podman machine. It should not be used as a normal user. containers/podman#11960 (comment)
@Luap99 my thought is containers/common/pkg/config could be changed to also search filesystem locations that MacPorts manages too. I understand not wanting gvproxy in the main search path for a user, so having the config package look for it in MacPort's libexec directory, the gvisor port could also be updated to install it to that location. |
Hi, I'm a maintainer Thanks @chadcatlett, I've already moved I have added a patch for |
For the error message, I'd like to see something like "If it is installed in a different location, set |
@jre21 Interested in opening a PR to change the message? |
Folks.. I read all this and still not clear how to configure my mac properly to run podman, this is where brew installs it:
brew does not add it to the So I added
Now failure is:
So it seems I did not get this container conf right but where do I find the documentation to understand how this config needs to be edited? Not very clear to me how it expects entries to be added |
So I finally figured the config.. looked at doc here: https://github.com/containers/common/blob/main/docs/containers.conf.5.md And changed it to:
|
We did not want gvproxy to be part of the PATH. This was done intentionally. |
Is this a BUG REPORT or FEATURE REQUEST?
/kind bug
Description
When I updated my MacPorts-installed podman from 3.3.1 to 3.4.0, podman commands started failing with a message about being unable to find
gvproxy
.This is a regression, as the podman 3.3.1 client had been interacting with
podman machine
as expected. For reference,Steps to reproduce the issue:
/opt/local/bin
is on$PATH
gvproxy
binary to/opt/local/bin
podman machine start
Describe the results you received:
Podman errors out with
Describe the results you expected:
I expect podman to function normally in this situation. I can think of a few possible ways to accomplish this, in rough order of preference:
$PATH
when searching for thegvproxy
executable. This is the most flexible approach and gets podman out of the business of needing to guess how users have organized their directory structure.gvproxy
in the parent directory of thepodman
executable. This would solve many of the most common installation patterns with a potentially smaller blast radius than the above.gvproxy
binary, and explain how to set this configuration in the error message. This would add some friction for new users, but would at least be a one-time set-and-forget deal./opt/local/bin/
to the list of search locations. This unblocks MacPorts users, but presents the risk of podman developers being expected to individually support the long tail of bespoke package managers.Additional information you deem important (e.g. issue happens only occasionally):
/opt/local/bin
is where MacPorts installs all system executables (including podman and gvproxy).Output of
podman version
:This issue breaks basic functionality of the podman client and results in
podman version
not returning useful output.Output of
podman info --debug
:Same as above.
Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
macOS 11.6 on bare metal (using podman machine's VM, prior to this bug appearing)
The text was updated successfully, but these errors were encountered: