James Hodson
08/21/2024, 10:49 AMpodman run --pull always -p 8000:8000 \
-e LAKEFS_BLOCKSTORE_TYPE='s3' \
-e LAKEFS_BLOCKSTORE_S3_ENDPOINT='<https://s3.echo.stfc.ac.uk>' \
-e AWS_ACCESS_KEY_ID='####' \
-e AWS_SECRET_ACCESS_KEY='#####' \
treeverse/lakefs run --local-settings
All of this is correct, but when we go to create the LakeFS repo, pointing to <s3://mast/>
, on the UI it states it cannot find the storage namespace. Looking in the logs we can see it's because it is trying to get to:
<https://mast.s3.echo.stfc.ac.uk>
When in reality, the storage is:
<https://s3.echo.stfc.ac.uk/mast>
Is there a setting we are missing here? Bit stumped as to why the storage namespace is chucked infront of the s3 endpoint!Itai Admi
08/21/2024, 11:11 AM-e LAKEFS_BLOCKSTORE_S3_FORCE_PATH_STYLE=true
to your setupAriel Shaqed (Scolnicov)
08/21/2024, 11:49 AMJames Hodson
08/21/2024, 11:54 AMtime="2024-08-20T20:27:49Z" level=error msg="failed to get S3 object bucket mast key dummy" func="pkg/block/s3.(*Adapter).Get" file="build/pkg/block/s3/adapter.go:357" error="operation error S3: GetObject, https response error StatusCode: 403, RequestID: tx000000000000004867939-0066c5d4b5-2f4b27365-default, HostID: 2f4b27365-default-default, api error RequestTimeTooSkewed: UnknownError" host="127.0.0.1:8000" method=POST operation=GetObject operation_id=CreateRepository path=/api/v1/repositories user=admin
time="2024-08-20T20:27:49Z" level=warning msg="Could not access storage namespace" func="pkg/api.(*Controller).CreateRepository" file="build/pkg/api/controller.go:2004" error="operation error S3: GetObject, https response error StatusCode: 403, RequestID: tx000000000000004867939-0066c5d4b5-2f4b27365-default, HostID: 2f4b27365-default-default, api error RequestTimeTooSkewed: UnknownError" reason=unknown service=api_gateway storage_namespace="<s3://mast/>"
Not sure what to decipher from that!Offir Cohen
08/21/2024, 12:43 PM-e LAKEFS_BLOCKSTORE_S3_FORCE_PATH_STYLE=true
set?James Hodson
08/21/2024, 12:44 PMpodman run --pull always -p 8000:8000 \
-e LAKEFS_BLOCKSTORE_TYPE='s3' \
-e LAKEFS_BLOCKSTORE_S3_ENDPOINT='<https://s3.echo.stfc.ac.uk>' \
-e AWS_ACCESS_KEY_ID='#####' \
-e LAKEFS_BLOCKSTORE_S3_FORCE_PATH_STYLE=true \
-e AWS_SECRET_ACCESS_KEY='####' \
treeverse/lakefs run --local-settings
Ariel Shaqed (Scolnicov)
08/21/2024, 2:49 PMAmit Kesarwani
08/21/2024, 11:09 PMAWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables to LAKEFS_BLOCKSTORE_S3_CREDENTIALS_ACCESS_KEY_ID
and LAKEFS_BLOCKSTORE_S3_CREDENTIALS_SECRET_ACCESS_KEY
respectively.James Hodson
08/22/2024, 7:18 AMJames Hodson
08/22/2024, 8:10 AMOffir Cohen
08/22/2024, 8:21 AMAriel Shaqed (Scolnicov)
08/22/2024, 10:30 AMJames Hodson
08/22/2024, 10:53 AM