Vaibhav Kumar
05/15/2023, 5:14 PM./lakefs --config /Users/simar/lakeFS/cmd/lakefs/config.yaml run
but getting the below error
simar@192 lakeFS % ./lakefs --config /Users/simar/lakeFS/cmd/lakefs/config.yaml run
INFO[0000]/Users/simar/lakeFS/cmd/lakefs/cmd/root.go:80 <http://github.com/treeverse/lakefs/cmd/lakefs/cmd.initConfig()|github.com/treeverse/lakefs/cmd/lakefs/cmd.initConfig()> Configuration file fields.file=/Users/simar/lakeFS/cmd/lakefs/config.yaml file=/Users/simar/lakeFS/cmd/lakefs/config.yaml phase=startup
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175F5FE4DE5BD201","file":"pkg/cloud/aws/metadata.go:64","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata","level":"warning","msg":"Failed to to get AWS account ID for BI","time":"2023-05-15T22:33:42+05:30"}
{"file":"pkg/logging/logger.go:266","func":"pkg/logging.(*logrusEntryWrapper).Fatalf","level":"fatal","msg":"Mismatched adapter detected. lakeFS started with adapter of type 's3', but repository 'test' is of type 'local'","time":"2023-05-15T22:33:42+05:30"}
-- Config.yaml
logging:
format: json
level: WARN
output: "-"
database:
type: "local"
auth:
encrypt:
secret_key: "10a718b3f285d89c36e9864494cdd1507f3bc85b342df24736ea81f9a1134bcc"
blockstore:
type: s3
s3:
force_path_style: true
endpoint: <http://localhost:9000>
discover_bucket_region: false
credentials:
access_key_id: minioadmin
secret_access_key: minioadmin
Jonathan Rosenberg
05/15/2023, 5:17 PMlocal
blockstore type and also the local
database type?Vaibhav Kumar
05/15/2023, 6:48 PMJonathan Rosenberg
05/15/2023, 6:57 PMVaibhav Kumar
05/16/2023, 2:36 AMJonathan Rosenberg
05/16/2023, 2:52 AMVaibhav Kumar
05/16/2023, 4:43 AMlakefs run
and sometime I was using the docker compose
mentioned in deployment section. I feel it should be ok.Jonathan Rosenberg
05/16/2023, 4:50 AMVaibhav Kumar
05/16/2023, 5:44 PMJonathan Rosenberg
05/16/2023, 5:53 PMaccess_key_id
and secret_access_key
are correctVaibhav Kumar
05/16/2023, 5:58 PMJonathan Rosenberg
05/16/2023, 6:00 PMVaibhav Kumar
05/16/2023, 6:07 PMsimar@192 lakeFS % ./lakefs --config /Users/simar/lakeFS/cmd/lakefs/config.yaml run
INFO[0000]/Users/simar/lakeFS/cmd/lakefs/cmd/root.go:80 <http://github.com/treeverse/lakefs/cmd/lakefs/cmd.initConfig()|github.com/treeverse/lakefs/cmd/lakefs/cmd.initConfig()> Configuration file fields.file=/Users/simar/lakeFS/cmd/lakefs/config.yaml file=/Users/simar/lakeFS/cmd/lakefs/config.yaml phase=startup
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D31AF28E9F","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:46+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D32E9E17CA","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:46+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D33E6C11F9","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:46+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D34C75FA56","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:47+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D35E28C309","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:47+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D3660017D3","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:47+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D372D6228D","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:47+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D37B89ECAE","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:48+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D38586DB0F","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:48+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D394A54FD0","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:48+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D3A0359F7E","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:48+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D3A86268E9","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:48+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D3B49E2602","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:48+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D3BE323081","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:49+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D3CB4F0429","file":"pkg/cloud/aws/metadata.go:58","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata.func1","level":"warning","msg":"Tried to to get AWS account ID for BI","time":"2023-05-16T23:16:49+05:30"}
{"error":"InvalidParameterValue: Unsupported action GetCallerIdentity\n\tstatus code: 400, request id: 175FB0D3CB4F0429","file":"pkg/cloud/aws/metadata.go:64","func":"pkg/cloud/aws.(*MetadataProvider).GetMetadata","level":"warning","msg":"Failed to to get AWS account ID for BI","time":"2023-05-16T23:16:49+05:30"}
lakeFS dev-d2524dbb.with.local.changes - Up and running (^C to shutdown)...
██╗ █████╗ ██╗ ██╗███████╗███████╗███████╗
██║ ██╔══██╗██║ ██╔╝██╔════╝██╔════╝██╔════╝
██║ ███████║█████╔╝ █████╗ █████╗ ███████╗
██║ ██╔══██║██╔═██╗ ██╔══╝ ██╔══╝ ╚════██║
███████╗██║ ██║██║ ██╗███████╗██║ ███████║
╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚══════╝
│
│ If you're running lakeFS locally for the first time,
│ complete the setup process at <http://127.0.0.1:8000/setup>
│
│
│ For more information on how to use lakeFS,
│ check out the docs at <https://docs.lakefs.io/quickstart/repository>
│
│
│ For support or any other question, >(._.)<
│ join our Slack channel <https://docs.lakefs.io/slack> ( )_
│
Version dev-d2524dbb.with.local.changes
{"check_url":"<https://audit.lakefs.io/audit>","error":"audit check request failed: 424 Failed Dependency (Status code: 424)","file":"pkg/version/audit.go:111","func":"pkg/version.(*AuditChecker).CheckAndLog","level":"error","msg":"Audit check failed","time":"2023-05-16T23:16:52+05:30","version":"dev-d2524dbb.with.local.changes"}
{"error":"s3 error: \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cError\u003e\u003cCode\u003eNoSuchBucket\u003c/Code\u003e\u003cMessage\u003eThe specified bucket does not exist\u003c/Message\u003e\u003cKey\u003edummy\u003c/Key\u003e\u003cBucketName\u003easd\u003c/BucketName\u003e\u003cResource\u003e/asd/dummy\u003c/Resource\u003e\u003cRequestId\u003e175FB0D8DBF6611F\u003c/RequestId\u003e\u003cHostId\u003ee3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\u003c/HostId\u003e\u003c/Error\u003e","file":"pkg/block/s3/adapter.go:275","func":"pkg/block/s3.(*Adapter).streamToS3","host":"localhost:8000","level":"error","method":"POST","msg":"bad S3 PutObject response","operation":"PutObject","operation_id":"CreateRepository","path":"/api/v1/repositories","request_id":"76528b9b-fe52-49ad-94f7-829cc94b6bd9","service_name":"rest_api","status_code":404,"time":"2023-05-16T23:17:11+05:30","url":"<http://localhost:9000/asd/dummy>","user":"admin"}
{"error":"s3 error: \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cError\u003e\u003cCode\u003eNoSuchBucket\u003c/Code\u003e\u003cMessage\u003eThe specified bucket does not exist\u003c/Message\u003e\u003cKey\u003edummy\u003c/Key\u003e\u003cBucketName\u003easd\u003c/BucketName\u003e\u003cResource\u003e/asd/dummy\u003c/Resource\u003e\u003cRequestId\u003e175FB0D8DBF6611F\u003c/RequestId\u003e\u003cHostId\u003ee3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\u003c/HostId\u003e\u003c/Error\u003e","file":"pkg/api/controller.go:1409","func":"pkg/api.(*Controller).CreateRepository","level":"warning","msg":"Could not access storage namespace","reason":"unknown","service":"api_gateway","storage_namespace":"<s3://asd/>","time":"2023-05-16T23:17:11+05:30"}
Jonathan Rosenberg
05/16/2023, 6:08 PMdocker-compose up
. Take a look at the everything bagel docker-compose file. You can copy the first three containers and run it (with you keys and secrets).Vaibhav Kumar
05/16/2023, 6:24 PMJonathan Rosenberg
05/16/2023, 6:28 PMVaibhav Kumar
05/16/2023, 6:30 PMJonathan Rosenberg
05/16/2023, 6:32 PMThe specified bucket does not exist
. Did you create it?Vaibhav Kumar
05/16/2023, 6:36 PMJonathan Rosenberg
05/16/2023, 6:36 PMVaibhav Kumar
05/16/2023, 6:37 PMJonathan Rosenberg
05/16/2023, 6:38 PMVaibhav Kumar
05/16/2023, 6:38 PMJonathan Rosenberg
05/16/2023, 6:38 PMVaibhav Kumar
05/16/2023, 6:39 PMJonathan Rosenberg
05/16/2023, 6:42 PMasd
in Minio before you try to create a repository that is mapped to it.Vaibhav Kumar
05/16/2023, 6:46 PMasd
as a name?Jonathan Rosenberg
05/16/2023, 6:50 PMOk so before creating a repo in lakefs we should have one bucket with the same name in minio?yes
Any reason why we chooseJust because you used it. That can be any nameas a name?asd
Jonathan Rosenberg
05/16/2023, 6:56 PMmvn package
and run it with SparkVaibhav Kumar
05/19/2023, 6:59 PMIddo Avneri
05/19/2023, 7:05 PMVaibhav Kumar
05/19/2023, 7:07 PMIddo Avneri
05/19/2023, 7:18 PM