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

[Bug]: unable to start zot with dynamodb cache driver #2731

Closed
vanhtuan0409 opened this issue Oct 18, 2024 · 6 comments
Closed

[Bug]: unable to start zot with dynamodb cache driver #2731

vanhtuan0409 opened this issue Oct 18, 2024 · 6 comments
Labels
bug Something isn't working rm-external Roadmap item submitted by non-maintainers

Comments

@vanhtuan0409
Copy link
Contributor

zot version

v2.1.1

Describe the bug

Unable to start zot registry with cache driver dynamodb

To reproduce

  1. Configuration: config zot with dynamodb cache driver. Sufficient IAM permission
  2. Seen error: exceeded max wait time for TableExists waiter

Expected behavior

able to create dynamodb table and able to start zot registry

Screenshots

No response

Additional context

No response

@vanhtuan0409 vanhtuan0409 added the bug Something isn't working label Oct 18, 2024
@vanhtuan0409
Copy link
Contributor Author

should be fixed by #2730

@vanhtuan0409 vanhtuan0409 changed the title [Bug]: [Bug]: unable to start zot with dynamodb cache driver Oct 18, 2024
@rchincha rchincha added the rm-external Roadmap item submitted by non-maintainers label Oct 18, 2024
@rchincha
Copy link
Contributor

Fix is merged, closing this issue.
Thanks @vanhtuan0409

@keto
Copy link

keto commented Feb 12, 2025

I'm still getting this error on v2.1.2

@keto
Copy link

keto commented Feb 12, 2025

Actually, I was missing the dynamodb:DescribeTable permission. So there is couple of issues.

  • Documentation does not list all required permissions.
  • The error message in this case is misleading.

(Also dynamodb:Scan permission is not listed in documentation, but that is properly indicated in an error message)

@andaaron
Copy link
Contributor

@keto will update the documentation.

With regards to the error message, that's not in our control, DescribeTable is called from the SDK in this specific case: https://github.com/aws/aws-sdk-go-v2/blob/service/dynamodb/v1.40.1/service/dynamodb/api_op_DescribeTable.go#L294

@andaaron
Copy link
Contributor

andaaron commented Feb 12, 2025

@keto unfortunately I don't have and AWS account to test, but this should cover the needed permissions: https://github.com/project-zot/zot/pull/2963/files
https://github.com/project-zot/project-zot.github.io/pull/192/files

"dynamodb:BatchGetItem" should also be there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rm-external Roadmap item submitted by non-maintainers
Projects
None yet
Development

No branches or pull requests

4 participants