Skip to content

Restore database from s3 file failing #28

@rngadam

Description

@rngadam

The restore file fails:

I'm able to run restore-db.sh locally successfully, but in the deploy.yml workflow I'm getting this error:

Step 0: Checking S3 backup bucket write access...
⚠️ Warning: No write access to S3 backup bucket (backups.cv.coderbunker.ca). Skipping pre-deployment backup.
👉 Note: This is expected if you are using a Read-Only staging key for production backups.
Step 0.2: Restoring database from backup-cv.coderbunker.ca-20260122103417.sql.enc...
Loading configuration from .env.cv.staging.coderbunker.ca
Verifying connectivity for restore...
Restoring database backup into cv.staging.coderbunker.ca...
Using specified backup file: backup-cv.coderbunker.ca-20260122103417.sql.enc
Downloading backup-cv.coderbunker.ca-20260122103417.sql.enc...
fatal error: An error occurred (400) when calling the HeadObject operation: Bad Request

but with the permission fix, deployment works so I'll look at this issue later.

Originally posted by @rngadam in #27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions