-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty backups created on AWS #237
Comments
I have the same issue. Do you use a custom network (like me) in your postgres service ? |
Do y'all install dokku via docker? |
Yes. I have installed it with docker on my vps and I am using custom network du to others products installed on the same server. |
No, no custom network
Yes |
I wonder if there is some weird interplay here with how mounted volumes work in conjunction with the backup being created due to the place where files are written to not being the same on the host... |
You-re right, some actions are taken inside the dokku container and other on the host. Add a volume used for backup in my dokku container Change the backup script to create the tmp folder inside the dokku container
Now backups are ok in my minio server |
Nice! I wonder how we can do that keeping our existing support.... Maybe we can expose an env var that is like "DOKKU_HOST_TMP_DIR` or something? |
Maybe. Installing dokku with docker is really supported ? I have encountered many problems due to this implementation, maybe the vagrant setup is better for starting. |
It is supported but its not the thing I test on my end via unit tests, hence why sometimes certain features are broken. Its easy to break something you're not actively testing or aware of :) That said, I rely on folks to report issues and help debug/resolve them when I don't have time to do so on my own. Hopefully now that we know the issue, I can spend some time soon resolving it :) |
I'm running a dockerized instance of dokku 0.29.1 like explained here: https://dokku.com/docs/getting-started/install/docker/ with a couple of rails apps and linked postgres services.
I created a bucket
lollipop-pg-bakups
and an IAM policy:I run
dokku postgres:backup-auth lollipop-db AKIxxxxxxxxxxxxxx63LH lHixxxxxxxxxxxxxxxxxxxxxxxlnLY
an than
dokku postgres:backup lollipop-db lollipop-pg-backups
and I obtain the following output:
2023-01-03-14-59-01: The backup for postgres-lollipop-db finished successfully.
After this a a file named
postgres-lollipop-db-2023-01-03-14-59-01.tgz
is correctly created on AWS but the tgz file is 111.0 B and only contains an emptybuckup
directory.I actually don't know how to debug this further...
The text was updated successfully, but these errors were encountered: