Skip to content
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

Connecting cubestore to s3 storage failing for af-south-1 region #3848

Closed
andrew-musoke opened this issue Dec 24, 2021 · 6 comments
Closed
Labels
bug Something isn't working cube store Issues relating to Cube Store help wanted Community contributions are welcome.

Comments

@andrew-musoke
Copy link

Describe the bug
Followed this tutorial to deploy production CubeJS. When running cubestore as docker image and the CUBESTORE_S3_REGION is set to af-south-1, the application will fail to start with below DNS error.

image

To Reproduce
Steps to reproduce the behavior:

  1. Setup s3 bucket and IAM user with appropriate permissions.
  2. Set following cubestore environment variables
  CUBESTORE_AWS_ACCESS_KEY_ID: "<redacted>"
  CUBESTORE_AWS_SECRET_ACCESS_KEY: "<redacted>"
  CUBESTORE_S3_BUCKET: "cube-store"
  CUBESTORE_S3_REGION: "af-south-1"
  CUBESTORE_S3_SUB_PATH: "subfolder"
  1. Run Docker image.

Expected behavior
Expected the image to start without error

Version:
Docker image cubestore:v0.29.10

Additional context
The problem seems to only present with region af-south-1. From what I gathered, Cubejs couldn't formulate a URL in the form https://cubestore-storage.s3.af-south-1.amazonaws.com as expected.
I changed the region to us-east-1 and this behaviour changed and the app started properly.

@ivan-vdovin ivan-vdovin added the question The issue is a question. Please use Stack Overflow for questions. label Dec 24, 2021
@paveltiunov
Copy link
Member

Hey @andrew-musoke ! af-south-1 isn't indeed on the list of regions https://github.com/durch/rust-s3/blob/75e2eb3dd9acfa5c1add4893ce64569dbac6d4f0/aws-region/src/region.rs#L98. However you can use s3.af-south-1.amazonaws.com as CUBESTORE_S3_REGION instead.

@paveltiunov paveltiunov removed their assignment Dec 27, 2021
@paveltiunov paveltiunov added bug Something isn't working cube store Issues relating to Cube Store and removed question The issue is a question. Please use Stack Overflow for questions. labels Jan 4, 2022
@PieterVanZyl-Dev
Copy link
Contributor

Hey Andrew !
Great to see more adoptions of cube in the African Continent.

Have you tried pavel's suggestion, this bug seems to be in rust-s3

I created a bug in rust-s3's repo

We can probably close this.

@andrew-musoke
Copy link
Author

Hi @PieterVanZyl-Dev If we are successful with cube in prod, shall definitely start evangelizing it here :)

Just got a chance to try @paveltiunov work around but brings a different error. FYI upgraded to v0.29.23.

image

Thanks for raising the rust issue. Will follow up there.

@paveltiunov paveltiunov added the help wanted Community contributions are welcome. label Jul 1, 2022
@github-actions
Copy link

github-actions bot commented Jul 1, 2022

If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you.
If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines.
You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.

@jonasdebeukelaer
Copy link
Contributor

Bit late to the party, but I notice that in version 0.29.0 of rust-s3, they've added the missing af-south-1 region. see durch/rust-s3@v0.28.0...v0.29.0

@ovr
Copy link
Member

ovr commented Apr 16, 2024

It should work starting from https://github.com/cube-js/cube/releases/tag/v0.35.17

Thanks, @jonasdebeukelaer, for your contribution!

@ovr ovr closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cube store Issues relating to Cube Store help wanted Community contributions are welcome.
Projects
None yet
Development

No branches or pull requests

6 participants