Ignore failed chown during breeze env config#35905
Conversation
In an edge case, a host's user or group ID may cause the chown method to not succeed if they have special meanings in the container. This does not necessarily make Breeze unfunctional (depending on the actual permission in the host), so it may be better to simply skip the chown instead of failing the entire command and cause Breeze to exit.
|
Nice. Yeah. Some Windows FS does not support chown if you have the Windows FS mounted. It does not bring full Windows breeze functionality in, but in some cases it might help. Suggestion @uranusjr : If we do want to make Breeze to work on windows - maybe a good idea to add a separate CI job on Windows machines where we run installation and Was i right that It was Windows? What's your setup when you experienced it? |
|
This specific case is not Windows but just the user has a weird ID that can’t be chown-ed. I didn’t look too close into it tbh and it’s likely possible to fix this from another angle, but since the chown is not strictly necessary anyway I opted for the easy way out of the situation. |
Ah I see. I thought it was on the Windows FS - I saw similar problems reported before - because there |
|
For the latter case we also have |
|
Just want to get to the bottom of the weird UID - I think that could have actually be the case with ROOTLESS_DOCKER - because there there is user remapping going on under-the hood - and depending on the rootles docker solution (there are slight differences in podman, docker-desktop configured in rootless mode and colima) The important thing in this case is that we do not have to do two thing in ROOTLESS_DOCKER:
We are allready doing the lattter in breeze, but likely I will have to take a look if there are other places where it we might have similar problems. Rootless docker is gaining populrity as this is quite a bit more secure way of running docker containers and many of the solution (no docker-desktop yet) start to switch to it by default, so we might want to make sure it is the first-class-citizen for Breeze as well. |
|
It could be. Unfortunatly I don’t have access to the machine anymore, but the setup is not a very trivially fresh Docker Desktop installation but with a bunch of configs mixed in. |
In an edge case, a host's user or group ID may cause the chown method to not succeed if they have special meanings in the container. This does not necessarily make Breeze unfunctional (depending on the actual permission in the host), so it may be better to simply skip the chown instead of failing the entire command and cause Breeze to exit.