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
Minio Client startup fails with permission error on OpenShift #2640
Comments
@juv Thanks for filing this issue. We will try to resolve this soon. |
@juv can you provide the |
@sinhaashish I am simply deploying the mc docker image in Openshift.
Note that the Dockerfile should switch the user context, this is probably the root cause. See here: The current Dockerfile accesses the path |
any update? |
PR 7569 can fix the problem. |
unfortunately it make things worse, the minio server broke as well. OpenShift spawns the process with a random user id (which is not present in the passwd file at this time). you can either add the passwd entry there, which is described as best practice when building openshift containers [1], or just ignore the fact, that you're running as some other user (which was fine up to now, since openshift automatically does provision the data volume with the same userid, as the process gets started. yet, minio tries to 'fix' the arbitrary user thing by doing [1] https://docs.openshift.com/container-platform/3.9/creating_images/guidelines.html#openshift-specific-guidelines (Support Arbitrary User IDs) |
We can fix this by adding password entry @Exordian would you be able to send a fix? |
Stumbled upon this problem as well on OpenShift 3.11 when installing via
... any progress on this? |
Hi guys... Du you plan a solution in next time??? |
Hi guys, i have mentioned a fix for OpenShift-Support in another Issue for the official Minio-Helm-Chart. |
Fixed by helm/charts#20766 |
I'm still seeing this issue after setting the directory using the helm chart and so are other users. I think there's been a confusion here. The PR helm/charts#20766 changes the helm chart but that's the server side. This issue is about how the client runs in a Pod. The PR #2734 does look like it would've addressed the client issue but it was closed with the comment "Closing this PR as stale and not needed. Will be fixed in a separate PR." |
This issue still persists. |
This was prematurely closed |
Expected behavior
Minio Client starts without errors on OpenShift
Actual behavior
Minio Client starts up and fails immediately with error
mc: <ERROR> Unable to save new mc config. mkdir /.mc: permission denied.
. This is related to helm/charts#4128 -- OpenShift expects containers to not run asroot
.Steps to reproduce the behavior
mc version
Unknown (mc fails before
mc version
command can be executed)System information
OpenShift:
Tried with mc docker tags:
latest
(minio/mc@sha256:7b27ff9a0b9bbc0622fe78b086ddf3a36fe50f8673d906de1f336ed3a5e249d9
) andedge
(minio/mc@sha256:091bce3f6f240c731e2c4f203f8a87905677a727cb5d09d04c73be92ab5788b6
)The text was updated successfully, but these errors were encountered: