Error [Errno 13] Permission denied: '/data/scriptlogs' faced when try to use the backup option - How to setup the Helm Chart to do backups

I am facing the error [Errno 13] Permission denied: '/data/scriptlogs' such as reported in: Issue with file permissions setting up Couchbase Backup using Operator

The SecurityContext option used:

    podSecurityContext:
      fsGroup: 1000
      runAsNonRoot: true
      runAsUser: 1000
      sysctls: []
      windowsOptions: {}
    securityContext:
      allowPrivilegeEscalation: false

Could you please let us know how we should configure the HelmChart to do the backups and do not face this issue?

Versions:

  • couchbase-operator-2.50.4
  • couchbase/operator-backup: 1.3.8 (latest) - Also, same issue faced with 1.3.5

If we edit the cronjobs like kubectl edit cronjob couchbase-backup-full -n <namespace> to set

securityContext:                                                                                                                                           
            fsGroup: 1000

that works but the BUG is that the HelmChart and Operator (CRD BackupCouchbase) does not allow you set the secruityContext to the cronjob :–(