hi, there, I need some help with config.yaml file....
# help
s
hi, there, I need some help with config.yaml file. After configuring s3 as blockstore and providing aws credentials, I way trying list repos by running
Copy code
aws --endpoint-url=<http://localhost:8000> --profile lakefs s3 ls
and encountered this error:
Copy code
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:
Copy code
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.
l
Hi @Shaoqi Chen, In lakeFS config file, the credentials under
blockstore.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 🙂
s
thanks, @Lynn Rozen I got it
sunglasses lakefs 1