Shaoqi Chen
03/11/2022, 10:10 AMaws --endpoint-url=<http://localhost:8000> --profile lakefs s3 ls
and encountered this error:
WARNING[2022-03-11T10:42:19+01:00]lakeFS/pkg/gateway/middleware.go:46 pkg/gateway.AuthenticationHandler.func1 could not find access key
error="not found: no rows in result set"
This is my config:
database:
connection_string: "<postgres://localhost:5432/postgres?sslmode=disable>"
blockstore:
type: "s3"
s3:
profile: lakefs
region: eu-central-1
credentials_file: "/Users/shaoqi/.aws/credentials"
in aws credentials file, access key id and secret access key have been listed for lakefs profile.I also tried providing both in the config file by setting blockstore.s3.credentials.access_key_id
and blockstore.s3.credentials.secret_access_key
, which also didn't work.
Is there something I was missing or set it incorrectly? One more thing to mention, if I upload file into repo via lakefs server UI, the s3 bucket in my account is updated with the new file, it seems like the connection exists.Lynn Rozen
03/11/2022, 10:46 AMblockstore.s3
should be s3 credentials.
When you run with aws cli the relevant profile (in your case you used 'lakefs' profile) should hold lakeFS credentials.
So I think you used the same profile, but there should be a different profile for lakeFS config file, with the relevant s3 credentials.
Hope it makes sense, and we're here to more questions 🙂Shaoqi Chen
03/11/2022, 12:49 PM