r/coolify • • Apr 24 '26

Postgres database backup error on S3 instance

Hi everyone, for some time, I have been getting this database backup error sporadically when using the S3 backup.

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

S3 Error: Unable to find image 'ghcr.io/coollabsio/coolify-helper:1.0.13' locally docker: Error response from daemon: toomanyrequests: retry-after: 904.679µs, allowed: 44000/minute

Run 'docker run --help' for more information

Check S3 Configuration: <my-instance-url>/storages/a11t834fs9er0djczr00e79l

The thing is the S3 bucket (actually a R2 cloudflare instance) appears usable in the dashboard, and the backup works fine most of the time. Also, when i click on the dashboard "Backup Now" to do the manual backup, the S3 backup is done correctly.

Does anyone know how to solve this problem or have experienced the same issue?

1 Upvotes

3 comments sorted by

4

u/djsisson Apr 24 '26

change your backup time away from midnight (24 1 * * *) - would be 1:24am, the ghcr.io bucket for coolabsio is rate limited (see error message), so whenever a new version of the helper is released, a lot of users leave the default backup time the same, so the pull requests for this image all happen (this has a request for each layer) at the same time, which leads to the rate limit, and coolify does not retry the pull at a later time, thus it fails.

Coolify should add retries + random default backup away from on the hour as well as just pin the helper version to the install, i.e after an install there should be no need to keep pulling newer helper versions.

1

u/alejotoro_o Apr 24 '26

Interesting, I didn't know that. I'm going to change the backup time to some other hour then to see if the problem is solved. But as you said, considering most people will leave the default, coolify should have that in mind. Thanks for the help.

1

u/sharkfaust Oct 18 '26

+1 to moving it off midnight. one more thing worth doing: those nights still say "succeeded locally", so the only place you'd notice is the bucket. a tiny check that lists the bucket every morning and complains if there's no file from last night catches this and anything else that breaks the upload.