Hi everyone. I have question: I just try created a...
# ask-the-community
j
Hi everyone. I have question: I just try created a persistent volume for app: minio path /data but I got an error not permission /data
10:23:51.39
10:23:51.39 *Welcome to the Bitnami minio container*
10:23:51.39 Subscribe to project updates by watching *<https://github.com/bitnami/bitnami-docker-minio>*
10:23:51.39 Submit issues and feature requests at *<https://github.com/bitnami/bitnami-docker-minio/issues>*
10:23:51.39
10:23:51.40 INFO  ==> ** Starting MinIO setup **
/opt/bitnami/scripts/libminio.sh: line 317: /data/.access_key: Permission denied
This my spec configuration:
spec:
selector:
matchLabels:
app: minio
template:
metadata:
labels:
app: minio
spec:
containers:
- env:
- name: MINIO_ACCESS_KEY
value: xxxxxxxxxxxxxxx # I'm hiding my values
- name: MINIO_SECRET_KEY
value: xxxxxxxxxxxxxxx # I'm hiding my values
- name: MINIO_DEFAULT_BUCKETS
value: definedcrowd
image: <http://ecr.flyte.org/bitnami/minio:2021.10.13-debian-10-r0|ecr.flyte.org/bitnami/minio:2021.10.13-debian-10-r0>
name: minio
ports:
- containerPort: 9000
name: minio
- containerPort: 9001
name: minio-console
volumeMounts:
- mountPath: /data
name: minio-storage
securityContext:
fsGroup: 1001
fsGroupChangePolicy: OnRootMismatch
runAsUser: 1001
volumes:
- name: minio-storage
persistentVolumeClaim:
claimName: minio-storage-pv-claim
d
can you share the definition for the PV?
j
apiVersion: v1 kind: PersistentVolume metadata: name: minio-storage-pv-claim labels: type: minio-storage-pv-claim spec: storageClassName: azurefile capacity: storage: 240Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Recycle claimRef: namespace: flyte name: minio-storage-pv-claim hostPath: path: “/data”
k
could you share the output
ls -l /data/
in the minio container? just want to make sure current host in the container has access to read the access key
j
right
Screenshot 2023-03-01 at 15.26.07.png
k
seems like there is no
.access_key
in
/data
.is minio trying to create a file in
/data
folder? try to change
/data
permission to 766
j
how do I do that? inside the container here?
k
yes
chmod 766 /data
j
I can’t
k
use sudo instead
j
actually command not found when I use sudo
k
could you mount /tmp instead. its permission is 777
or try to use minio official image https://hub.docker.com/r/minio/minio
151 Views