Skip to content
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

chown: changing ownership of '/var/www/owncloud/config': Operation not permitted #3

Open
badu013 opened this issue Mar 9, 2022 · 2 comments

Comments

@badu013
Copy link

badu013 commented Mar 9, 2022

when i'm installing owncloud helm chart with persistent volume enabled with EFS, I'm getting this issue.

here is pod logs

Creating volume folders...
Creating hook folders...
Waiting for MySQL...
services are ready!
Removing custom folder...
Linking custom folder...
Removing config folder...
Linking config folder...
Writing config file...
Fixing base perms...
chown: changing ownership of '/var/www/owncloud/custom': Operation not permitted
chown: changing ownership of '/var/www/owncloud/config': Operation not permitted

pod status:


NAME                        READY   STATUS             RESTARTS   AGE
owncloud-66966b7db6-5rxvm   0/1     CrashLoopBackOff   1          17s

storageclass.yaml

kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: owncloud-sc
provisioner: efs.csi.aws.com
parameters:
  provisioningMode: efs-ap
  fileSystemId: fs-xxxxxxxx
  directoryPerms: "777"
  gidRangeStart: "1000" # optional
  gidRangeEnd: "2000" # optional
  basePath: "/owncloud-efs" # optional
reclaimPolicy: Delete
volumeBindingMode: Immediate

pv-pvc.yaml

{{- if .Values.persistence.owncloud.nfs.enabled -}}
apiVersion: v1
kind: PersistentVolume
metadata:
  name: {{ include "owncloud.fullname" . }}
spec:
  volumeMode: Filesystem
  accessModes:
    - ReadWriteMany
  capacity:
    storage: 20Gi
  storageClassName: {{ .Values.persistence.storageClassName }}
  csi:
    driver: efs.csi.aws.com
    volumeHandle: fs-xxxxxxxxx
{{end}}
---
{{- if .Values.persistence.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: {{ include "owncloud.fullname" . }}
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 20Gi
  storageClassName: {{ .Values.persistence.storageClassName }}
@andreawoe
Copy link

looks like you are using AWS. We don't support AWS on that helm chart yet. We support GCP.

@badu013
Copy link
Author

badu013 commented Mar 10, 2022

Thanks @andreawoe for your response.

I dont have GCP setup. I want to try this on our environment. Do you have any other suggestions to use storage as EFS in AWS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants