Comments (10)
I've done some more research and came across this thread. Is fixing my issue just a matter of adding an environment variable to my MinIO deployment to change the data dir of the container? If yes, would it be possible to make this change within the Helm chart as well? Then no one else will experience this problem.
from charts.
I've just tried adding this to my Helm chart deployment:
extraEnvVars:
- name: MINIO_DATA_DIR
value: /minio
And I get this error:
10:27:47.39 INFO ==> ** Starting MinIO setup **
minio 10:27:47.40 DEBUG ==> Validating settings in MINIO_* env vars..
minio 10:27:47.47 INFO ==> Starting MinIO in background...
ERROR Unable to use the drive /bitnami/minio/data: drive access denied: Invalid arguments specified
minio 10:27:57.50 INFO ==> Adding local Minio host to 'mc' configuration...
So even with this envVar set, Minio is still trying to use the default data dir I think.
from charts.
I've just tried adding this to my Helm chart deployment:
extraEnvVars: - name: MINIO_DATA_DIR value: /minio
And I get this error:
10:27:47.39 INFO ==> ** Starting MinIO setup ** minio 10:27:47.40 DEBUG ==> Validating settings in MINIO_* env vars.. minio 10:27:47.47 INFO ==> Starting MinIO in background... ERROR Unable to use the drive /bitnami/minio/data: drive access denied: Invalid arguments specified minio 10:27:57.50 INFO ==> Adding local Minio host to 'mc' configuration...
So even with this envVar set, Minio is still trying to use the default data dir I think.
Nevermind, I removed the persistence.mountPath
and didn't realise, using both persistence.mountPath
and the MINIO_DATA_DIR
envVar allow the container to start correctly, however, data is still stored in the default /bitnami/minio/data
location.
from charts.
I can confirm the MINIO_DATA_DIR
envVar is being used by looking at my yaml and shelling into the container and executing env | grep data
:
I have no name!@minio-2-7959bf54dc-rrltg:/minio/data$ env | grep data
PWD=/minio/data
MINIO_DATA_DIR=/minio/data
But creating a test bucket still create data in the default directory:
I have no name!@minio-2-7959bf54dc-rrltg:/minio/data$ cd /bitnami/minio/data/
I have no name!@minio-2-7959bf54dc-rrltg:/bitnami/minio/data$ ls
test-bucket
from charts.
I've also tried using the containerSecurityContext
options to add an fsGroup
definition and runAsUser
definition but data is still stored in the default /bitnami/minio/data
directory.
from charts.
Anyone seen this?
As I say, this is either a major bug or I'm missing something very critical.
from charts.
Hello @Mo0rBy, apologies for the radio silence on holidays season! I've been able to reproduce this issue and it seems there is an issue with the MINIO_DATA_DIR
envar, as it is not been used in the initial minio server setup. If we look for the root cause inside the minio pod we'll see the following:
I have no name!@minio-8f4765b56-qw56h:/$ printenv | grep MINIO_DATA_DIR
MINIO_DATA_DIR=/tmp/minio
I have no name!@minio-8f4765b56-qw56h:/$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
1001 1 0.2 1.3 1590428 163208 ? Ssl 16:53 0:01 /opt/bitnami/minio/bin/minio server --certs-dir /certs --console-address :9001 --address :9000 /bitnami/minio/data
The server is started via the run.sh script. The issue is that the $MINIO_DATA_DIR
in that script is loaded from:
# Load MinIO environment
. /opt/bitnami/scripts/minio-env.sh
If we check that env file, we'll see that MINIO_DATA_DIR
has a fixed value and can't be changed:
I have no name!@minio-8f4765b56-qw56h:/$ cat /opt/bitnami/scripts/minio-env.sh | grep MINIO_DATA_DIR
export MINIO_DATA_DIR="/bitnami/minio/data"
Let me check with the dev team on the reason this configuration is in place and the best approach to solve this.
from charts.
No worries @FraPazGal , I thought it would be a while until there was any reply as I did post this on Boxing Day I think and I wasn't expecting anyone to be working. And I'm super happy that it seems to be a bug and not me being stupid.
from charts.
Am I allowed to raise a PR for this? I can't find any docs on how to raise changes on the README or anything so if you I am allowed and you can point me to the docs, that would much appreciated.
from charts.
@FraPazGal ^?
from charts.
Related Issues (20)
- [bitnami/rabbitmq-cluster-operator] RabbitMQ cluster operator roles are overridden by custom rules HOT 5
- [bitnami/logstash] plugin install behind a proxy HOT 6
- [bitnami/kafka] About Kafka Helm Chart Nodeport HOT 3
- [bitnami/grafana-loki] helm install my-grafana-loki bitnami/grafana-loki --version 2.13.0 Error: INSTALLATION FAILED: failed to fetch https://charts.bitnami.com/bitnami/grafana-loki-2.13.0.tgz : 403 Forbidden HOT 1
- [bitnami/rabbitmq] StatefulSet PVC template does not set common labels HOT 3
- [bitnami/minio] Install fails if Prometheus is not installed and ServiceMonitor is enabled HOT 4
- bitnami/nginx helm templating error HOT 1
- [bitnami/airflow] Unable to Access Python Virtual Environment After Git Sync / Airflow HOT 1
- [bitnami/mogodb] svc binding picks up metrics password for defined user HOT 1
- [bitnami/memcached] Autoscaling ends in ContainerCreation/Termination loop for replicas
- [bitnami/postgresql] fails to start with openshift HOT 2
- [bitnami/wordpress] Injecting extra config into wp-config.php HOT 5
- enableS3 value missing from values.yaml & README HOT 1
- [bitnami/nginx] Duplicate .spec.automountServiceAccountToken field in Pod template of NGINX deployment HOT 4
- [bitnami/milvus] panic: parse bool useIAM:strconv.ParseBool: parsing "<nil>": invalid syntax HOT 3
- mkdir: cannot create directory '/bitnami/<chart>/data': Permission denied HOT 4
- Clickhouse not starting when overriding namespace HOT 2
- [bitnami/postgresql-ha] watchdog capabilities
- Why not use `docker.io/bitnamicharts` for OCI chart HOT 2
- [bitnami/joomla] website maintenance mode breaks readiness probe HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.