-
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
failed to chown recursively host path: lchown: operation not permitted #15292
Comments
I am not sure we can fix this. The issue is Podman is attempting to chown the UID of the file on the MAC to something that is not the USERS UID and the MAC is saying you are not allowed. If you use a directory in the VM but not on the host, it should work fine. Or if you run the application in the container with the users UID, it should also work. |
The thing is... this worked like an hour before I wrote this issue. I have no idea what actually changed. It was working fine until I slept/woke the (physical) machine, then it all broke. The commands were being run from a shell script, so I there isn't the possibility of anything having changed between that time other than the machine having rebooted or slept/woke. The directory I'm specifying with The problem is that, in my case, Any ideas on how to debug this would be great. Like I said, it was working. I would run mongo, see the database and log files populate on my mac, and everything Just Worked. Otherwise, this is a huge blocker to move to podman as it means containers aren't able to proxy to the host mac machine for development purposes. |
If you podman machine ssh into the machine and then execute the podman run command, does it work? |
No. Same error.
|
What command inside of the VM are you running? |
That of course works fine. It's when the host directory is mounted in via QEMU. |
A friendly reminder that this issue had no activity for 30 days. |
Since syncid got merged, I am closing this issue. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
After bringing my Mac back up from a sleep, all of a sudden I cannot mount a host directory into containers anymore:
Steps to reproduce the issue:
Not sure if this is reproducible perfectly but this is, from my view, how it happened:
Create a machine using
podman machine init -v $HOME/podman:/host --now
Use the directory for e.g. MongoDB:
mkdir -p $HOME/podman/mongo && podman run -ti --rm -v /host/mongo:/data:rw,U -u mongodb mongo --dbpath /data
Describe the results you received:
This does not occur when the
U
option is omitted, however the directory is no longer mounted with the correct user permissions and thus the directory cannot be written to.Describe the results you expected:
This was working just a few hours ago, then I put my mac to sleep and now I have no idea what's changed. Mongo was properly working, I could
exec
in and read/write to the mount point, and it was correctly mounted as the-u
user (mongodb
).Additional information you deem important (e.g. issue happens only occasionally):
N/A
Output of
podman version
:Output of
podman info
: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/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Running on MacOS 12.5 (21G72).
I've tried to re-init the machine (via
podman machine stop
and the abovepodman machine init ...
) several times, restarted my machine, etc. Hasn't helped.Also worth mentioning, this is pretty much a branch new M1 macbook I received for work literally yesterday. Likelihood of this being some non-standard environment thing is exceedingly low.
The text was updated successfully, but these errors were encountered: