hi guys, I have following error when trying to cre...
# help
g
hi guys, I have following error when trying to create first repo in lakefs, I used this docker-compose file: https://github.com/treeverse/lakeFS-samples/blob/main/docker-compose.yml any help is appreciated!! here is the logs output:
Copy code
time="2024-10-15T07:59:08Z" level=warning msg="Could not access storage namespace" func="pkg/api.(*Controller).CreateRepository" file="build/pkg/api/controller.go:2007" error="operation error S3: GetObject, https response error StatusCode: 400, RequestID: 0, HostID: , api error InvalidArgument: S3 API Requests must be made to API port." reason=unknown service=api_gateway storage_namespace="<s3://test>"
time="2024-10-15T08:01:40Z" level=error msg="Failed to get region for bucket, falling back to default region" func="pkg/block/s3.(*ClientCache).refreshBucketRegion" file="build/pkg/block/s3/client_cache.go:151" default_region=us-east-1 error="operation error S3: HeadBucket, https response error StatusCode: 400, RequestID: , HostID: , api error BadRequest: Bad Request" host="localhost:47098" method=POST operation_id=CreateRepository path=/api/v1/repositories user=everything-bagel
time="2024-10-15T08:01:40Z" level=error msg="failed to get S3 object bucket test-repo key dummy" func="pkg/logging.(*logrusEntryWrapper).Errorf" file="build/pkg/logging/logger.go:339" error="operation error S3: GetObject, https response error StatusCode: 400, RequestID: 0, HostID: , api error InvalidArgument: S3 API Requests must be made to API port." host="localhost:47098" method=POST operation=GetObject operation_id=CreateRepository path=/api/v1/repositories user=everything-bagel
time="2024-10-15T08:01:40Z" level=warning msg="Could not access storage namespace" func="pkg/api.(*Controller).CreateRepository" file="build/pkg/api/controller.go:2007" error="operation error S3: GetObject, https response error StatusCode: 400, RequestID: 0, HostID: , api error InvalidArgument: S3 API Requests must be made to API port." reason=unknown service=api_gateway storage_namespace="<s3://test-repo>"
o
Hi @Gard Drasil and welcome to the lake lakefs With the docker compose example you are setting up a local MinIO instance. Please verify it is up and running - credentials and urls are detailed in the compose file
a
Pls. use
<s3://example/test-repo>
for storage namespace and it will work.