Backup GitLab - cloud native Helm Chart with MinIO

When I try to create an archive copy using the task runner (kubectl exec -it backup-utility ), I get the following error:

2020-08-13 15:25:36 +0000 – done
Bucket not found: registry. Skipping backup of registry …
Bucket not found: gitlab-uploads. Skipping backup of uploads …
Bucket not found: gitlab-artifacts. Skipping backup of artifacts …
Bucket not found: git-lfs. Skipping backup of lfs …
Bucket not found: gitlab-packages. Skipping backup of packages …
Bucket not found: gitlab-mr-diffs. Skipping backup of external_diffs …
Bucket not found: gitlab-terraform-state. Skipping backup of terraform_state …
Packing up backup tar
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
ERROR: SSL certificate verification failure: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
command terminated with exit code 77

although in the settings I have the following:

global:
hosts:
domain: my-dev.com

minio:
name: minio.my-dev.com
https: false

my object storage is available and running at the following address: http://minio.my-dev.com

Are the buckets all pre existing before running the backup? I am about to deploy a external minio so I am interested in how you get on.

All buckets was successfully created and import ( artifacts - lfs - uploads) was successful (after reconfiguring ingres minio https -> http)

I just got my instance backing update successfully. Here is the backup s3cmd config i ended up with.

[default]

# Setup endpoint: hostname of the Web App

host_base = my-minio-svc:9000

host_bucket = my-minio-svc:9000

# Leave as default

bucket_location = us-east-1

use_https = false

# Setup access keys

access_key =   xxxxx

secret_key = xxxxxx

# Use S3 v4 signature APIs

signature_v2 = False

I did do a bunch of testing on task-runner pod using the s3cmd --configure command.

how i can change this config in my enviroment ?
thx for help

got it:

kubectl exec gitlab-task-runner-************** -it – s3cmd --configure
thx again! :slight_smile:

1 Like

I still get an error when trying to upload a backup to the storage (when gitlab-task-runner cron jobs running) :frowning:

Packing up backup tar
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
ERROR: SSL certificate verification failure: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)