Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-2450

backup failed with error Permission denied: '/data/scriptlogs

    XMLWordPrintable

Details

    • 1

    Description

      Operator version: 2.3.0-159
      Operator backup version: 1.2.0-105
      Server version: 7.0.1-6102

      Followed the documentation to create backups:

      1. Setup backup managed to true in couchbasecluster
      2. bin/cao create backup
      3. Created couchbasebackup using yaml:

      apiVersion: couchbase.com/v2
      kind: CouchbaseBackup
      metadata:
        name: my-backup
      spec:
        strategy: full_incremental
        full:
          schedule: "*/5 * * * *" 
        incremental:
          schedule: "*/2 * * * *" 
        size: 20Gi 
      

      4. Backup jobs are running but erroring out:

      arunkumarsenthilnathan@Arunkumars-MacBook-Pro couchbase-autonomous-operator-kubernetes_2.3.0-beta1-macos-x86_64 % kubectl logs my-backup-incremental-27224202-s62r6
      Traceback (most recent call last):
        File "/usr/local/bin/backup.py", line 1186, in <module>
          Backup(context).run()
        File "/usr/local/bin/backup.py", line 366, in run
          self._setup_logging()
        File "/usr/local/bin/backup.py", line 1096, 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'
      arunkumarsenthilnathan@Arunkumars-MacBook-Pro couchbase-autonomous-operator-kubernetes_2.3.0-beta1-macos-x86_64 % kubectl logs my-backup-full-27224200-pglpz
      Traceback (most recent call last):
        File "/usr/local/bin/backup.py", line 1186, in <module>
          Backup(context).run()
        File "/usr/local/bin/backup.py", line 366, in run
          self._setup_logging()
        File "/usr/local/bin/backup.py", line 1096, 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'
      

      Attaching full logs

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            arunkumar Arunkumar Senthilnathan (Inactive)
            arunkumar Arunkumar Senthilnathan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty