Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12776

Backup fails to upload to S3

XMLWordPrintable

    • % %

      Following the steps from this comment with 1.9.1-20200120 version:

      I created a bucket in s3 in us west 2 region with name "syndesis-backup-123"
      I created a secret with my credentials:
      oc create secret generic syndesis-backup-s3 --from-literal=secret-access-key="<access key>" --from-literal=secret-key-id="<secret key>" --from-literal=region="us-west-2" --from-literal=bucket-name="syndesis-backup-123

      and enabled the backups like:

      apiVersion: syndesis.io/v1alpha1
      kind: Syndesis    
      metadata:    
        name: app    
      spec:    
        backup:    
          schedule: hourly    
      

      Then the backup fails with:

      {"level":"info","ts":1579518000.0017107,"logger":"backup","msg":"starting backup for syndesis","action":"backup"}
      {"level":"error","ts":1579518005.0664651,"logger":"backup","msg":"error uploading backup file to source","action":"backup","source":{"Namespace":"avano-syndesis","BackupDir":"/tmp/foo","Delete":true,"LocalOnly":false,"Context":0,"Client":{"Reader":{"CacheReader":{"Scheme":{}},"ClientReader":{}},"Writer":{},"StatusClient":{}}},"error":"AuthorizationHeaderMalformed: The authorization header is malformed; the Credential is mal-formed; expecting \"<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aws4_request\".\n\tstatus code: 400, request id: 9FBF117B97040666, host id: BWuyrvZ8LNwHGIn7yABGrTJnMeq18Y+Y3qEYxI8zwTlem4hzKpVxqgLMtX2UODvbx5Pg/SOj5jw=","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/syndesisio/syndesis/install/operator/pkg/syndesis/backup.(*Backup).Run\n\tsrc/github.com/syndesisio/syndesis/install/operator/pkg/syndesis/backup/backup.go:107\ngithub.com/syndesisio/syndesis/install/operator/pkg/syndesis/action.(*backupAction).Execute.func1\n\tsrc/github.com/syndesisio/syndesis/install/operator/pkg/syndesis/action/backup.go:68\ngithub.com/robfig/cron/v3.FuncJob.Run\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/github.com/robfig/cron/v3/cron.go:131\ngithub.com/robfig/cron/v3.(*Cron).startJob.func1\n\tsrc/github.com/syndesisio/syndesis/install/operator/vendor/github.com/robfig/cron/v3/cron.go:307"}
      

      My credentials are correct (validated with s3 connector)

      lgarciaac is "secret-key-id" the secret key value from AWS, or it is something different?

              lgarciaac Luis GarcĂ­a Acosta
              avano@redhat.com Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: