Skip to content

[Bug]: S3 backup sends misleading email about backup having failed when only notification failedΒ #9088

@sandipb

Description

@sandipb

Error Message and Logs

I have setup my Postgres and Mariadb databases to be backed up to B2 daily. Every day I get an email saying "Coolify: Backup succeeded locally but S3 upload failed for $BUCKET_NAME" with a body like this:

Database backup for xxx (db:xxx) with frequency of 0 0 * * * succeeded locally but failed to upload to S3.

S3 Error: Request to the Resend API failed. Reason: Undefined array key "name"

Check S3 Configuration: https://$instance_url/storages/$db_id

If you notice, the error is actually about a resend api failure - there was a misconfiguration in my resend config (my from address domain was not registered).

So the resend failure is bubbling up to the notification about the backup having failed - which is false, the backup history shows the backups having completed successfully.

Steps to Reproduce

  1. Have a Resend notification misconfiguration - like using an invalid from address.
  2. Set up database s3 backups automation
  3. When the backup happens, you will get an error saying the S3 upload failed.

Example Repository URL

No response

Coolify Version

v4.0.0-beta.468

Are you using Coolify Cloud?

Yes (Coolify Cloud)

Operating System and Version (self-hosted)

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    πŸ” TriageIssues that need assessment and prioritization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions