storj-thirdparty / velero-plugin

Velero object store plugin that is backed by Storj
Apache License 2.0
8 stars 3 forks source link

"An error occurred: gzip: invalid header" on velero backup logs #20

Closed andy108369 closed 1 year ago

andy108369 commented 1 year ago

Velero v1.9.1

Config:

configuration:
  backupStorageLocation:
    bucket: <YOUR-BUCKET-NAME>
    name: default
    config:
      accessGrant: "<YOUR-STORJ-ACCESS-GRANT>"
  defaultVolumesToRestic: true
  provider: tardigrade
initContainers:
- image: storjlabs/velero-plugin
  name: tardigrade-velero-plugin
  volumeMounts:
  - mountPath: /target
    name: plugins

Getting "An error occurred: gzip: invalid header" on velero backup logs command:

$ velero backup get
NAME                            STATUS            ERRORS   WARNINGS   CREATED                          EXPIRES   STORAGE LOCATION   SELECTOR
velero-default-20220913223032   PartiallyFailed   29       0          2022-09-14 00:30:32 +0200 CEST   29d       default            <none>

$ velero backup logs velero-default-20220913223032
An error occurred: gzip: invalid header
$ kubectl -n velero get backups.velero.io -o yaml
...
      helm.sh/chart: velero-2.31.6
...
    formatVersion: 1.1.0
    phase: PartiallyFailed
    progress:
      itemsBackedUp: 959
      totalItems: 959
...
$ kubectl -n velero get downloadrequests.velero.io
NAME                                                                 AGE
velero-default-20220913223032-139b3f2e-ee05-41f7-9a15-c04eae2078dd   4m17s
velero-default-20220913223032-845f3754-c7d2-4100-9c8e-20173d5aa8c2   3m30s
velero-default-20220913223032-dda4f869-ac45-49da-bdef-5280a8435ee0   2m6s
$ kubectl -n velero get downloadrequests.velero.io velero-default-20220913223032-dda4f869-ac45-49da-bdef-5280a8435ee0 -o yaml
...
spec:
  target:
    kind: BackupLog
    name: velero-default-20220913223032
status:
  downloadURL: https://link.tardigradeshare.io/1uMr.......PAk/my-bucket/backups%2Fvelero-default-20220913223032%2Fvelero-default-20220913223032-logs.gz

Downloading that link https://link.tardigradeshare.io/1uMr.......PAk/my-bucket/backups%2Fvelero-default-20220913223032%2Fvelero-default-20220913223032-logs.gz - brings the HTML page (not the .gz file) with the following contents (see the screenshot):

image

Any pointers?

drym3r commented 1 year ago

Hello Any information on this? The backup seems to do stuff since I can see files on the bucket, but there's some kind of error and it's not possible to debug it without the logs. Thanks

ifraixedes commented 1 year ago

Hello @drym3r

We have deprecated this plugin and to make it clear we are going to archive this repository. There is this PR #21 that will be the last to be merged before we archive it. You can see on it that we are going to announce in the README that we suggest using the AWS Velero plugin to store the data in Storj through our hosted S3 gateway (alternative you could use our single tenant S3 gateway if you prefer to run it in your own premises).

Sorry for any inconvenience and for the delayed response.