I am trying to setup Couchbase cluster backup using Operator on Google Cloud.
It seems like jobs created by the operator has issues with file permissions:
Found 2 pods, using pod/ds-couchbase-backup-full-27681645-shmjf Traceback (most recent call last): File "/usr/local/bin/backup.py", line 1213, in <module> Backup(context).run() File "/usr/local/bin/backup.py", line 378, in run self._setup_logging() File "/usr/local/bin/backup.py", line 1123, in _setup_logging os.makedirs(self.context.log_path, exist_ok=True) File "/usr/lib/python3.8/os.py", line 223, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/data/scriptlogs'
I found in the documentation that it may be needed to set security context CouchbaseCluster Resource | Couchbase Docs.
But for some reason the image operator use for backup (couchbase/operator-backup:1.3.0) has different id for Couchbase user than the one used to run cluster nodes (couchbase/server:7.1.1) - 8453 instead of 1000.
Can you suggest how to fix this issue?