InfluxDB3 - AWS S3 Storage

Hello. I’m evaluating InfluxDB3 for deep data history but running into trouble configuring my S3 object storage.

The error I am seeing is:
Serve command failed: failed to initialize catalog: object store error: ObjectStore(Generic { store: "S3", source: BareRedirect })

The command I am using is as follows:
docker run --network host -it influxdb3-enterprise influxdb3 serve --cluster-id cluster0 --node-id node0 --object-store s3 --bucket <my bucket> --aws-access-key-id <my key> --aws-secret-access-key <my secret> --verbose

I’ve configured my credentials as demonstrated in the Set up prerequisites | Configure object storage permissions section.

A typo in my bucket name produces a “no such bucket” error as long as I have the right credentials.
If I typo the credentials (but use the right bucket) I get the original error mentioning a BareRedirect.
Interestingly if I typo all three then I get a “permission denied” error. (Perhaps due to lack of permission to list buckets to check the typoed bucket name).

I confirmed that this behaviour is still exhibited with other bucket names, specifically ones which do not contain any “.” characters.

Anyway, the above experiments don’t seem to get me much closer to resolution of this issue. Help would be much appreciated.

As a side note I am looking for direction for how to configure retention policies for various databases (which I understand to be the appropriate level for such configuration within IDB3)

You may need to set the --aws-default-region to the region that your bucket is in; if your S3 bucket is not set up in us-east-1 (which is the default).

1 Like

Thanks @hiltontj this was exactly the problem for me.