Skip to content

Unable to access Object Lambda Access Point alias #806

@h2cone

Description

@h2cone

Hello,

I'm trying to mount an S3 Object Lambda Access Point alias to my local file system using goofys, but it seems that goofys is unable to access the alias.

root in ~/playground/goofys
❯ aws s3api get-bucket-location --bucket olap-els3-ii4uo9ht3zp6gsnhwgask1wfeuc1a--ol-s3
{
    "LocationConstraint": "eu-central-1"
}

root in ~/playground/goofys
❯ ./goofys -f --debug_s3 olap-els3-ii4uo9ht3zp6gsnhwgask1wfeuc1a--ol-s3 /home/aws/mnt/olap-els3
2024/10/12 11:15:39.026240 s3.DEBUG HEAD https://s3.amazonaws.com/olap-els3-ii4uo9ht3zp6gsnhwgask1wfeuc1a--ol-s3 = 200 [eu-central-1]
2024/10/12 11:15:39.026323 s3.INFO anonymous bucket detected
2024/10/12 11:15:39.026350 s3.INFO Switching from region 'us-east-1' to 'eu-central-1'
2024/10/12 11:15:39.026579 s3.DEBUG DEBUG: Request s3/HeadObject Details:
---[ REQUEST POST-SIGN ]-----------------------------
HEAD /olap-els3-ii4uo9ht3zp6gsnhwgask1wfeuc1a--ol-s3/9j02ssys7zjlhwornxl6gysdvgwoncls HTTP/1.1
Host: s3.eu-central-1.amazonaws.com
User-Agent: aws-sdk-go/1.17.13 (go1.13.1; linux; amd64)


-----------------------------------------------------
2024/10/12 11:15:39.709931 s3.DEBUG DEBUG: Response s3/HeadObject Details:
---[ RESPONSE ]--------------------------------------
HTTP/0.0 301 Moved Permanently
Content-Length: 0


-----------------------------------------------------
2024/10/12 11:15:39.710051 s3.DEBUG DEBUG: Validate Response s3/HeadObject failed, not retrying, error BucketRegionError: incorrect region, the bucket is not in 'eu-central-1' region at endpoint ''
        status code: 301, request id: , host id:
2024/10/12 11:15:39.710086 main.ERROR Unable to access 'olap-els3-ii4uo9ht3zp6gsnhwgask1wfeuc1a--ol-s3': BucketRegionError: incorrect region, the bucket is not in 'eu-central-1' region at endpoint ''
        status code: 301, request id: , host id:
2024/10/12 11:15:39.710149 main.FATAL Mounting file system: Mount: initialization failed

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions