-
Notifications
You must be signed in to change notification settings - Fork 456
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
host 127.0.0.1:9000: server update failed with: open /usr/bin/.minio.check-perm: permission denied, do not restart the servers yet #2305
Comments
I can't find |
Share the tanant plz. |
@jiuker this is how I configure the tenant chart: tenant:
name: tenant-name
image:
tag: 'RELEASE.2024-08-17T01-24-54Z' # updated to 'RELEASE.2024-08-29T01-40-52Z'
configuration:
name: env-configuration
configSecret:
name: env-configuration
pools:
- servers: 1
name: pool-0
volumesPerServer: 1
size: 200Gi
metrics:
enabled: true
certificate:
requestAutoCert: false
env:
- name: MINIO_DOMAIN
value: "s3.example.org"
- name: MINIO_BROWSER_REDIRECT_URL
value: "https://console.s3.example.org"
- name: MINIO_SERVER_URL
value: "https://s3.example.org"
- name: MINIO_PROMETHEUS_AUTH_TYPE
value: public
prometheusOperator: true
ingress:
api:
enabled: true
host: s3.example.org
tls:
- hosts:
- s3.example.org
secretName: tenant-api-tls
console:
enabled: true
host: console.s3.example.org
tls:
- hosts:
- console.s3.example.org
secretName: tenant-console-tls |
I assume it attempts to create a file next to the minio binary in order to verify if copying in the new binary would succeed? |
Let me debug first |
I republished the containers and fixed it @pschichtel - someone moved the binaries to /usr/bin instead of /opt/bin and broke this. |
@harshavardhana I just attempted the update again, but realized that unless you also re-released the old image it wouldn't help me, because the upgrade process starts in the old image. I've just manually patched the STS to use the new image, so the next upgrade should work fine then. |
Correct, I did that for others who have not upgraded yet @pschichtel |
@harshavardhana Can you provide instructions on how to recover minio from this state? |
my approach will be:
the operator does not appear to interfere as this is pretty much what the operator would do if the in-place upgrade process were to complete successfully. |
@pschichtel After manually changing the image tag in STS k8s, pods were replaced automatically by k8s, but after that, the operator triggered pod replacement once again and update was completed successfully. Thanks for the quick response! |
To understand correctly - how do I get these new republished containers? |
The image will not help you get out of the state, it only prevents you from getting into it, when upgrading from a version that didn't have the issue yet. This is what has been successfully used to get out of the state: #2305 (comment) |
Hi, can someone point to me which operator image has the fix? |
The issue was not fixed in the operator, instead the minio image was fixed to match the operator's expectations. It's been fixed for a while now, any of the recent minio versions and I guess any 6.x operator should work. |
I did as suggested, the STS is at the latest release now, however, the operator says: Statefullset not controlled by operator. |
It looks the statefulset is not owned by the tenant resource. See this code. Can you run |
We're using the operator and tenant Helm charts with Argo CD. We just upgraded to v6.0.4 and hit this issue — how can we fix it? |
I just deleted the stateful set now, the operator recreates it, and this worked. |
Thanks! That was a bit scary, but it does appear to have worked for us. |
I tried upgrading to MinIO
RELEASE.2024-08-29T01-40-52Z
(fromRELEASE.2024-08-17T01-24-54Z
) using operator 6.0.3 on my single-node home lab after #2229 has been fixed in recent images, just to hit a new issue: The operator seems to be unable to update the image due to failing a permission check, the operator logshost 127.0.0.1:9000: server update failed with: open /usr/bin/.minio.check-perm: permission denied, do not restart the servers yet
and also sets that as the tenant's currentState.This currently prevents me from upgrading at all.
Expected Behavior
Operator upgrades the tenant.
Current Behavior
Tenant repeatedly switches between the states
host 127.0.0.1:9000: server update failed with: open /usr/bin/.minio.check-perm: permission denied, do not restart the servers yet
andUpdating MinIO Version
. The STS also hasn't been touched.Possible Solution
No clue
Steps to Reproduce (for bugs)
RELEASE.2024-08-17T01-24-54Z
RELEASE.2024-08-29T01-40-52Z
Context
This prevents me form upgrading.
Regression
y
Your Environment
minio-operator
): 6.0.3v1.30.4+k0s
RELEASE.2024-08-17T01-24-54Z
uname -a
):Linux server 6.10.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 19 Aug 2024 17:02:39 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: