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

[Backup] PermissionError: [Errno 13] Permission denied while trying to setup restore logging.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.2.1
    • operator-backup
    • None
    • 46: Completion 2.3. bk maint
    • 1

    Description

      TestCase: TestBackupAndRestoreS3

      Backup Image: registry.gitlab.com/cb-vanilla/operator-backup:1.1.1-101

      Server: couchbase/server:7.0.0

      Operator, DAC: 2.2.1 GA image.

      Job: http://qa.sc.couchbase.com/view/Cloud/job/k8s-cbop-aks-pipeline-2.2.x/94/consoleFull

      BackTrace: 

      11:13:41 === CONT  TestOperator/TestBackupAndRestoreS3
      11:13:41     util.go:1302: timeout: document count 0, expected 100
      11:13:41     util.go:1303: goroutine 710 [running]:
      11:13:41         runtime/debug.Stack(0x1f23cf9, 0xc000ee1040, 0x35309a0)
      11:13:41         	/jenkins/workspace/k8s-cbop-aks-pipeline-2.2.x/go/src/runtime/debug/stack.go:24 +0xab
      11:13:41         github.com/couchbase/couchbase-operator/test/e2e/e2eutil.Die(0xc000cf8600, 0x35309a0, 0xc000ee1040)
      11:13:41         	/jenkins/workspace/k8s-cbop-aks-pipeline-2.2.x/test/e2e/e2eutil/util.go:1298 +0x34
      11:13:41         github.com/couchbase/couchbase-operator/test/e2e/e2eutil.MustVerifyDocCountInBucket(0xc000cf8600, 0xc00011a2a0, 0xc0004e0f00, 0x2a56167, 0x7, 0x64, 0x45d964b800)
      11:13:41         	/jenkins/workspace/k8s-cbop-aks-pipeline-2.2.x/test/e2e/e2eutil/xdcr_util.go:176 +0xb9
      11:13:41         github.com/couchbase/couchbase-operator/test/e2e.testBackupAndRestore(0xc000cf8600, 0xc0007a5601)
      11:13:41         	/jenkins/workspace/k8s-cbop-aks-pipeline-2.2.x/test/e2e/backup_test.go:800 +0x12e7
      11:13:41         github.com/couchbase/couchbase-operator/test/e2e.TestBackupAndRestoreS3(0xc000cf8600)
      11:13:41         	/jenkins/workspace/k8s-cbop-aks-pipeline-2.2.x/test/e2e/backup_test.go:826 +0x3e
      11:13:41         testing.tRunner(0xc000cf8600, 0x2b24a78)
      11:13:41         	/jenkins/workspace/k8s-cbop-aks-pipeline-2.2.x/go/src/testing/testing.go:1193 +0x203
      11:13:41         created by testing.(*T).Run
      11:13:41         	/jenkins/workspace/k8s-cbop-aks-pipeline-2.2.x/go/src/testing/testing.go:1238 +0x5d8
      11:13:41         
      11:13:41 time="2021-11-08T11:13:34-08:00" level=info msg="TestOperator/TestBackupAndRestoreS3 ✗ 

      Restore Pod Error: 

      Traceback (most recent call last):
        File "/usr/local/bin/backup.py", line 1179, in <module>
          Backup(context).run()
        File "/usr/local/bin/backup.py", line 379, in run
          self._setup_logging()
        File "/usr/local/bin/backup.py", line 1114, in _setup_logging
          file_handler = logging.FileHandler(filename=self._get_logs_abs_path(),
        File "/usr/lib/python3.8/logging/__init__.py", line 1147, in __init__
          StreamHandler.__init__(self, self._open())
        File "/usr/lib/python3.8/logging/__init__.py", line 1176, in _open
          return open(self.baseFilename, self.mode, encoding=self.encoding)
      PermissionError: [Errno 13] Permission denied: '/data/scriptlogs/restore/2021-11-08T18_45_59.log' 

      All BackupAndRestore test cases are failing with the same error.

      cbopinfo of all failures(BackupAndRestoreFailures.tar.gz) + TestBackupAndRestoreS3 attached.

      Attachments

        Issue Links

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

          Activity

            simon.murray Simon Murray added a comment -

            Note I erroneously committed this under 2514 in case you are wondering where the fix went.

            simon.murray Simon Murray added a comment - Note I erroneously committed this under 2514 in case you are wondering where the fix went.

            People

              simon.murray Simon Murray
              prateek.kumar Prateek Kumar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty