[GH-ISSUE #2458] Cannot mount a bucket on ubuntu 22 #1213

Open
opened 2026-03-04 01:52:16 +03:00 by kerem · 2 comments
Owner

Originally created by @tobiascapin on GitHub (May 24, 2024).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2458

I tried to mount a s3 bucket created in eu-south-1 region in my linux ubuntu server 22.

This is my command:
s3fs bkt-storage:/storage /mnt/s3storage/ -o passwd_file=/etc/aws/.passwd-s3fs -d

My /etc/aws/.passwd-s3fs is formed like this:
PUBLICKEY:SECRETKEY

When i run this command with root user, I don't get any response, but looking into /var/log/syslog I find this errors:

May 24 12:21:53 srvap2 s3fs[3153]: init v1.90(commit:unknown) with GnuTLS(gcrypt)
May 24 12:21:53 srvap2 s3fs[3153]: check services.
May 24 12:21:53 srvap2 s3fs[3153]:       check a bucket.
May 24 12:21:53 srvap2 s3fs[3153]:       URL is https://s3.amazonaws.com/bkt-storage/
May 24 12:21:53 srvap2 s3fs[3153]:       URL changed is https://bkt-storage.s3.amazonaws.com/
May 24 12:21:53 srvap2 s3fs[3153]:       computing signature [GET] [/] [] []
May 24 12:21:53 srvap2 s3fs[3153]:       url is https://s3.amazonaws.com
May 24 12:21:53 srvap2 s3fs[3153]: curl.cpp:RequestPerform(2357): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?>#012<Error><Code>IllegalLocationConstraintException</Code><Message>The eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>xxx</RequestId><HostId>xxx/xjDxPhA+fE3vsWkFrrBHPpIK6U=</HostId></Error>
May 24 12:21:53 srvap2 s3fs[3153]: curl.cpp:CheckBucket(3421): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>#012<Error><Code>IllegalLocationConstraintException</Code><Message>The eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>xxx</RequestId><HostId>xxx/xjDxPhA+fE3vsWkFrrBHPpIK6U=</HostId></Error>
May 24 12:21:53 srvap2 s3fs[3153]: s3fs.cpp:s3fs_check_service(3575): Failed to connect by sigv4, so retry to connect by signature version 2.
May 24 12:21:53 srvap2 s3fs[3153]: Pool full: destroy the oldest handler
May 24 12:21:53 srvap2 s3fs[3153]:       check a bucket.
May 24 12:21:53 srvap2 s3fs[3153]:       URL is https://s3.amazonaws.com/bkt-storage/
May 24 12:21:53 srvap2 s3fs[3153]:       URL changed is https://bkt-storage.s3.amazonaws.com/
May 24 12:21:53 srvap2 s3fs[3153]: curl.cpp:RequestPerform(2357): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?>#012<Error><Code>IllegalLocationConstraintException</Code><Message>The eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>xxxx</RequestId><HostId>JgTscA21d1p/xxx=</HostId></Error>
May 24 12:21:53 srvap2 s3fs[3153]: curl.cpp:CheckBucket(3421): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>#012<Error><Code>IllegalLocationConstraintException</Code><Message>The eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>xxxx</RequestId><HostId>JgTscA21d1p/xxx=</HostId></Error>

I tried to add -o url=https://s3.eu-south-1.amazonaws.com option, with no luck.

Do you know how to solve?

Originally created by @tobiascapin on GitHub (May 24, 2024). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2458 I tried to mount a s3 bucket created in eu-south-1 region in my linux ubuntu server 22. This is my command: `s3fs bkt-storage:/storage /mnt/s3storage/ -o passwd_file=/etc/aws/.passwd-s3fs -d` My /etc/aws/.passwd-s3fs is formed like this: `PUBLICKEY:SECRETKEY` When i run this command with root user, I don't get any response, but looking into /var/log/syslog I find this errors: ``` May 24 12:21:53 srvap2 s3fs[3153]: init v1.90(commit:unknown) with GnuTLS(gcrypt) May 24 12:21:53 srvap2 s3fs[3153]: check services. May 24 12:21:53 srvap2 s3fs[3153]: check a bucket. May 24 12:21:53 srvap2 s3fs[3153]: URL is https://s3.amazonaws.com/bkt-storage/ May 24 12:21:53 srvap2 s3fs[3153]: URL changed is https://bkt-storage.s3.amazonaws.com/ May 24 12:21:53 srvap2 s3fs[3153]: computing signature [GET] [/] [] [] May 24 12:21:53 srvap2 s3fs[3153]: url is https://s3.amazonaws.com May 24 12:21:53 srvap2 s3fs[3153]: curl.cpp:RequestPerform(2357): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?>#012<Error><Code>IllegalLocationConstraintException</Code><Message>The eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>xxx</RequestId><HostId>xxx/xjDxPhA+fE3vsWkFrrBHPpIK6U=</HostId></Error> May 24 12:21:53 srvap2 s3fs[3153]: curl.cpp:CheckBucket(3421): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>#012<Error><Code>IllegalLocationConstraintException</Code><Message>The eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>xxx</RequestId><HostId>xxx/xjDxPhA+fE3vsWkFrrBHPpIK6U=</HostId></Error> May 24 12:21:53 srvap2 s3fs[3153]: s3fs.cpp:s3fs_check_service(3575): Failed to connect by sigv4, so retry to connect by signature version 2. May 24 12:21:53 srvap2 s3fs[3153]: Pool full: destroy the oldest handler May 24 12:21:53 srvap2 s3fs[3153]: check a bucket. May 24 12:21:53 srvap2 s3fs[3153]: URL is https://s3.amazonaws.com/bkt-storage/ May 24 12:21:53 srvap2 s3fs[3153]: URL changed is https://bkt-storage.s3.amazonaws.com/ May 24 12:21:53 srvap2 s3fs[3153]: curl.cpp:RequestPerform(2357): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?>#012<Error><Code>IllegalLocationConstraintException</Code><Message>The eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>xxxx</RequestId><HostId>JgTscA21d1p/xxx=</HostId></Error> May 24 12:21:53 srvap2 s3fs[3153]: curl.cpp:CheckBucket(3421): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>#012<Error><Code>IllegalLocationConstraintException</Code><Message>The eu-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>xxxx</RequestId><HostId>JgTscA21d1p/xxx=</HostId></Error> ``` I tried to add `-o url=https://s3.eu-south-1.amazonaws.com` option, with no luck. Do you know how to solve?
Author
Owner

@brijeshvp commented on GitHub (Jul 2, 2024):

facing same issue

<!-- gh-comment-id:2203366304 --> @brijeshvp commented on GitHub (Jul 2, 2024): facing same issue
Author
Owner

@tobiascapin commented on GitHub (Jul 2, 2024):

I solved adding two options: endpoint=eu-south-1 and url=https://s3.eu-south-1.amazonaws.com.

Finally my fstab line is this:
myname /mnt/s3-myname fuse.s3fs _netdev,allow_other,passwd_file=/etc/aws/passwd-s3fs,endpoint=eu-south-1,url=https://s3.eu-south-1.amazonaws.com 0 0

<!-- gh-comment-id:2203377492 --> @tobiascapin commented on GitHub (Jul 2, 2024): I solved adding two options: `endpoint=eu-south-1` and `url=https://s3.eu-south-1.amazonaws.com`. Finally my fstab line is this: `myname /mnt/s3-myname fuse.s3fs _netdev,allow_other,passwd_file=/etc/aws/passwd-s3fs,endpoint=eu-south-1,url=https://s3.eu-south-1.amazonaws.com 0 0`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1213
No description provided.