'InvalidAccessKeyId' error with replication to local MinIO container #478
-
Hello, I'm following the Getting Started and Running in a Docker container tutorial. I'm trying to replicate a database from a litestream container to a minIO container on the same Docker network. I can log in through the minIO portal correctly using the
I've tried using the config file, replica url and environment variable methods of replicating, directly in the running container terminal with no success. I've also tried creating a new admin user and password and new access key + secret key in the minIO portal, which returns the same error. Any help or tips would be greatly appreciated! My docker compose file:
My litestream.yml file:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've now realised that my setup wasn't trying to connect to my locally running minIO container, but rather trying to connect to AWS s3 directly. The error returned was correct there. My (limited) understanding is that litestream uses regex to detect a localhost s3 type replica URL, which I mistakenly tried to extend to a docker network URL. Looking back through the docs, I think this setup could be corrected using the |
Beta Was this translation helpful? Give feedback.
-
The following litestream config file indeed worked:
|
Beta Was this translation helpful? Give feedback.
I've now realised that my setup wasn't trying to connect to my locally running minIO container, but rather trying to connect to AWS s3 directly. The error returned was correct there.
My (limited) understanding is that litestream uses regex to detect a localhost s3 type replica URL, which I mistakenly tried to extend to a docker network URL.
Looking back through the docs, I think this setup could be corrected using the
endpoint
config file option? That's what I'll try next.