helm icon indicating copy to clipboard operation
helm copied to clipboard

Redis Support - Can't chdir to '/data': Permission denied; add `redis.volumePermissions` to docs/values.yaml

Open Brice187 opened this issue 4 years ago • 2 comments

After installing nextcloud-helm from scratch, I get the following error:

$ nextcloud git:(main) ✗ kubectl -n nextcloud logs pod/cloud-kerick-net-redis-master-0                      
redis 12:40:19.46 INFO  ==> ** Starting Redis **
1:C 12 Sep 2021 12:40:19.467 # Can't chdir to '/data': Permission denied

Additional Info:

$ nextcloud git:(main) ✗ kubectl get nodes
NAME       STATUS   ROLES                  AGE   VERSION
thinkpad   Ready    control-plane,master   14d   v1.21.3+k3s1
...
redis:
  enabled: true
  usePassword: false
  password: 'changeme'
...

Brice187 avatar Sep 12 '21 12:09 Brice187

I ran into this, too. Dug into the redis helm chart, and found that enabling the volumePermissions initContainer works.

---
...
redis:
  enabled: true
  master:
    persistence:
      storageClass: longhorn
  slave:
    persistence:
      storageClass: longhorn
  volumePermissions:
    enabled: true

edjmao avatar Oct 07 '21 04:10 edjmao

Thanks for opening the issue @Brice187 and great find @edjmao! :D

Perhaps we can update the values.yaml with a commented out volumePermissions.enabled: true and short comment about how it helps here:

https://github.com/nextcloud/helm/blob/e6ad22e814f8f5a32707a182e199fdb55770b88b/charts/nextcloud/values.yaml#L307-L317

We'd also need to update the corresponding README configuration table here:

https://github.com/nextcloud/helm/blob/e6ad22e814f8f5a32707a182e199fdb55770b88b/charts/nextcloud/README.md?plain=1#L141-L143

If either of you would like, you can submit a PR to update these files (and bump the chart version) and then I, or one of the collaborators/maintainers here, can review it for you :)

jessebot avatar Jan 27 '23 11:01 jessebot