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

Sometimes S3 Bucket doesn't get created #616

Open
joehoyle opened this issue Aug 7, 2023 · 0 comments
Open

Sometimes S3 Bucket doesn't get created #616

joehoyle opened this issue Aug 7, 2023 · 0 comments
Labels
bug Existing functionality isn't behaving as expected to refine Issues needing refinement.

Comments

@joehoyle
Copy link
Member

joehoyle commented Aug 7, 2023

Steps to reproduce:

  1. composer server start
  2. Visit https://s3-console-$project.altis.dev/buckets, login with admin password
  3. Observe no buckets exist

This looks like a race condition between the s3 and s3-sync service. s3-sync creates the bucket and sets the permissions. I think if minino isn't up and running set the mc mb -p request fires too early. Subsequently, if I do wait for minio to start and then manually run mc mb -p local/s3-$project && mc policy set public local/$project and then I see:

mc mb -p local/s3-$project && mc policy set public local/s3-$project
Bucket created successfully `local/s3-$project`.
mc: <ERROR> Unable to set policy `public` for `local/s3-$project`. The specified bucket does not exist.

And then I run it again and it works, so there seems to need to be more time between the make bucket request and the ACL public request.

@joehoyle joehoyle added bug Existing functionality isn't behaving as expected to refine Issues needing refinement. labels Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing functionality isn't behaving as expected to refine Issues needing refinement.
Projects
None yet
Development

No branches or pull requests

1 participant