[GH-ISSUE #1712] Support ap-east-1 region #884

Closed
opened 2026-03-04 01:49:40 +03:00 by kerem · 2 comments
Owner

Originally created by @vicary on GitHub (Jul 2, 2021).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1712

Additional Information

The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all.
Keep in mind that the commands we provide to retrieve information are oriented to GNU/Linux Distributions, so you could need to use others if you use s3fs on macOS or BSD

Version of s3fs being used (s3fs --version)

1.89

Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)

2.9.2

Kernel information (uname -r)

4.14.232-177.418.amzn2.x86_64

GNU/Linux Distribution, if applicable (cat /etc/os-release)

NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

s3fs command line used, if applicable

s3fs (bucket) ./test -o endpoint=ap-east-1 -f -d

s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)

2021-07-02T13:30:56.556Z [CRT] s3fs_logger.cpp:LowSetLogLevel(219): change debug level from [CRT] to [INF] 
2021-07-02T13:30:56.556Z [INF]     s3fs.cpp:set_mountpoint_attribute(4020): PROC(uid=1000, gid=1000) - MountPoint(uid=1000, gid=1000, mode=40775)
2021-07-02T13:30:56.558Z [INF] curl.cpp:InitMimeType(436): Loaded mime information from /etc/mime.types
2021-07-02T13:30:56.558Z [INF] fdcache_stat.cpp:CheckCacheFileStatTopDir(79): The path to cache top dir is empty, thus not need to check permission.
2021-07-02T13:30:56.560Z [INF] s3fs.cpp:s3fs_init(3331): init v1.89(commit:unknown) with OpenSSL
2021-07-02T13:30:56.560Z [INF] s3fs.cpp:s3fs_check_service(3447): check services.
2021-07-02T13:30:56.560Z [INF]       curl.cpp:CheckBucket(3364): check a bucket.
2021-07-02T13:30:56.560Z [INF]       curl_util.cpp:prepare_url(250): URL is https://s3.amazonaws.com/[redacted]/
2021-07-02T13:30:56.560Z [INF]       curl_util.cpp:prepare_url(283): URL changed is https://[redacted].s3.amazonaws.com/
2021-07-02T13:30:56.561Z [INF]       curl.cpp:insertV4Headers(2640): computing signature [GET] [/] [] []
2021-07-02T13:30:56.561Z [INF]       curl_util.cpp:url_to_host(327): url is https://s3.amazonaws.com
2021-07-02T13:30:56.563Z [CURL DBG] *   Trying 52.217.40.84...
2021-07-02T13:30:56.563Z [CURL DBG] * TCP_NODELAY set
2021-07-02T13:30:56.757Z [CURL DBG] * Connected to [redacted].s3.amazonaws.com (52.217.40.84) port 443 (#0)
2021-07-02T13:30:56.757Z [CURL DBG] * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
2021-07-02T13:30:56.762Z [CURL DBG] * successfully set certificate verify locations:
2021-07-02T13:30:56.762Z [CURL DBG] *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
2021-07-02T13:30:56.762Z [CURL DBG] * TLSv1.2 (OUT), TLS header, Certificate Status (22):
2021-07-02T13:30:56.762Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Client hello (1):
2021-07-02T13:30:56.957Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server hello (2):
2021-07-02T13:30:56.957Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Certificate (11):
2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server finished (14):
2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Finished (20):
2021-07-02T13:30:57.154Z [CURL DBG] * TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
2021-07-02T13:30:57.154Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Finished (20):
2021-07-02T13:30:57.154Z [CURL DBG] * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
2021-07-02T13:30:57.154Z [CURL DBG] * Server certificate:
2021-07-02T13:30:57.154Z [CURL DBG] *  subject: C=US; ST=Washington; L=Seattle; O=Amazon.com, Inc.; CN=*.s3.amazonaws.com
2021-07-02T13:30:57.154Z [CURL DBG] *  start date: Jan 11 00:00:00 2021 GMT
2021-07-02T13:30:57.154Z [CURL DBG] *  expire date: Feb 11 23:59:59 2022 GMT
2021-07-02T13:30:57.154Z [CURL DBG] *  subjectAltName: host "[redacted].s3.amazonaws.com" matched cert's "*.s3.amazonaws.com"
2021-07-02T13:30:57.154Z [CURL DBG] *  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert Baltimore CA-2 G2
2021-07-02T13:30:57.154Z [CURL DBG] *  SSL certificate verify ok.
2021-07-02T13:30:57.154Z [CURL DBG] > GET / HTTP/1.1
2021-07-02T13:30:57.154Z [CURL DBG] > Host: [redacted].s3.amazonaws.com
2021-07-02T13:30:57.154Z [CURL DBG] > User-Agent: s3fs/1.89 (commit hash unknown; OpenSSL)
2021-07-02T13:30:57.154Z [CURL DBG] > Accept: */*
2021-07-02T13:30:57.154Z [CURL DBG] > Authorization: AWS4-HMAC-SHA256 Credential=[redacted]/20210702/ap-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=[redacted]
2021-07-02T13:30:57.154Z [CURL DBG] > x-amz-content-sha256: [redacted]
2021-07-02T13:30:57.154Z [CURL DBG] > x-amz-date: 20210702T133056Z
2021-07-02T13:30:57.154Z [CURL DBG] > 
2021-07-02T13:30:57.350Z [CURL DBG] < HTTP/1.1 400 Bad Request
2021-07-02T13:30:57.350Z [CURL DBG] < x-amz-bucket-region: ap-east-1
2021-07-02T13:30:57.350Z [CURL DBG] < x-amz-request-id: 1S2N8RMH23SW0B67
2021-07-02T13:30:57.350Z [CURL DBG] < x-amz-id-2: cLhdAwqb7sVjoV3KbmIes8mOpo9bj9lcY9TUu9JQSTPVjr9HYHhEz8LzXzqRH5hmpkyPqOI1xkg=
2021-07-02T13:30:57.350Z [CURL DBG] < Content-Type: application/xml
2021-07-02T13:30:57.350Z [CURL DBG] < Transfer-Encoding: chunked
2021-07-02T13:30:57.350Z [CURL DBG] < Date: Fri, 02 Jul 2021 13:30:56 GMT
2021-07-02T13:30:57.350Z [CURL DBG] < Server: AmazonS3
2021-07-02T13:30:57.350Z [CURL DBG] < Connection: close
2021-07-02T13:30:57.350Z [CURL DBG] < 
2021-07-02T13:30:57.350Z [CURL DBG] * Closing connection 0
2021-07-02T13:30:57.350Z [CURL DBG] * TLSv1.2 (OUT), TLS alert, close notify (256):
2021-07-02T13:30:57.351Z [ERR] curl.cpp:RequestPerform(2318): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>1S2N8RMH23SW0B67</RequestId><HostId>cLhdAwqb7sVjoV3KbmIes8mOpo9bj9lcY9TUu9JQSTPVjr9HYHhEz8LzXzqRH5hmpkyPqOI1xkg=</HostId></Error>
2021-07-02T13:30:57.351Z [ERR] curl.cpp:CheckBucket(3396): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>1S2N8RMH23SW0B67</RequestId><HostId>cLhdAwqb7sVjoV3KbmIes8mOpo9bj9lcY9TUu9JQSTPVjr9HYHhEz8LzXzqRH5hmpkyPqOI1xkg=</HostId></Error>
2021-07-02T13:30:57.351Z [CRT] s3fs.cpp:s3fs_check_service(3502): Failed to connect by sigv4, so retry to connect by signature version 2.
2021-07-02T13:30:57.351Z [INF] curl_handlerpool.cpp:ReturnHandler(110): Pool full: destroy the oldest handler
2021-07-02T13:30:57.351Z [INF]       curl.cpp:CheckBucket(3364): check a bucket.
2021-07-02T13:30:57.351Z [INF]       curl_util.cpp:prepare_url(250): URL is https://s3.amazonaws.com/[redacted]/
2021-07-02T13:30:57.351Z [INF]       curl_util.cpp:prepare_url(283): URL changed is https://[redacted].s3.amazonaws.com/
2021-07-02T13:30:57.351Z [CURL DBG] * Hostname [redacted].s3.amazonaws.com was found in DNS cache
2021-07-02T13:30:57.351Z [CURL DBG] *   Trying 52.217.40.84...
2021-07-02T13:30:57.351Z [CURL DBG] * TCP_NODELAY set
2021-07-02T13:30:57.548Z [CURL DBG] * Connected to [redacted].s3.amazonaws.com (52.217.40.84) port 443 (#1)
2021-07-02T13:30:57.548Z [CURL DBG] * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
2021-07-02T13:30:57.552Z [CURL DBG] * successfully set certificate verify locations:
2021-07-02T13:30:57.552Z [CURL DBG] *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
2021-07-02T13:30:57.552Z [CURL DBG] * SSL re-using session ID
2021-07-02T13:30:57.553Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Client hello (1):
2021-07-02T13:30:57.747Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server hello (2):
2021-07-02T13:30:57.747Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Certificate (11):
2021-07-02T13:30:57.748Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
2021-07-02T13:30:57.748Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server finished (14):
2021-07-02T13:30:57.749Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
2021-07-02T13:30:57.749Z [CURL DBG] * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
2021-07-02T13:30:57.749Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Finished (20):
2021-07-02T13:30:57.943Z [CURL DBG] * TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
2021-07-02T13:30:57.943Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Finished (20):
2021-07-02T13:30:57.943Z [CURL DBG] * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
2021-07-02T13:30:57.943Z [CURL DBG] * old SSL session ID is stale, removing
2021-07-02T13:30:57.944Z [CURL DBG] * Server certificate:
2021-07-02T13:30:57.944Z [CURL DBG] *  subject: C=US; ST=Washington; L=Seattle; O=Amazon.com, Inc.; CN=*.s3.amazonaws.com
2021-07-02T13:30:57.944Z [CURL DBG] *  start date: Jan 11 00:00:00 2021 GMT
2021-07-02T13:30:57.944Z [CURL DBG] *  expire date: Feb 11 23:59:59 2022 GMT
2021-07-02T13:30:57.944Z [CURL DBG] *  subjectAltName: host "[redacted].s3.amazonaws.com" matched cert's "*.s3.amazonaws.com"
2021-07-02T13:30:57.944Z [CURL DBG] *  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert Baltimore CA-2 G2
2021-07-02T13:30:57.944Z [CURL DBG] *  SSL certificate verify ok.
2021-07-02T13:30:57.944Z [CURL DBG] > GET / HTTP/1.1
2021-07-02T13:30:57.944Z [CURL DBG] > Host: [redacted].s3.amazonaws.com
2021-07-02T13:30:57.944Z [CURL DBG] > User-Agent: s3fs/1.89 (commit hash unknown; OpenSSL)
2021-07-02T13:30:57.944Z [CURL DBG] > Accept: */*
2021-07-02T13:30:57.944Z [CURL DBG] > Authorization: AWS [redacted]
2021-07-02T13:30:57.944Z [CURL DBG] > Date: Fri, 02 Jul 2021 13:30:57 GMT
2021-07-02T13:30:57.944Z [CURL DBG] > 
2021-07-02T13:30:58.141Z [CURL DBG] < HTTP/1.1 400 Bad Request
2021-07-02T13:30:58.141Z [CURL DBG] < x-amz-bucket-region: ap-east-1
2021-07-02T13:30:58.141Z [CURL DBG] < x-amz-request-id: Z7KHSS58Q03RC5BS
2021-07-02T13:30:58.141Z [CURL DBG] < x-amz-id-2: A7QMuxlMc5G/xfVryH7pbALUenEpnOJqjbjh2gjaU7x/OR0mRdpfwJby3OOBHzVxDmrWPKOIPYE=
2021-07-02T13:30:58.141Z [CURL DBG] < Content-Type: application/xml
2021-07-02T13:30:58.141Z [CURL DBG] < Transfer-Encoding: chunked
2021-07-02T13:30:58.141Z [CURL DBG] < Date: Fri, 02 Jul 2021 13:30:57 GMT
2021-07-02T13:30:58.141Z [CURL DBG] < Server: AmazonS3
2021-07-02T13:30:58.141Z [CURL DBG] < Connection: close
2021-07-02T13:30:58.141Z [CURL DBG] < 
2021-07-02T13:30:58.141Z [CURL DBG] * Closing connection 1
2021-07-02T13:30:58.141Z [CURL DBG] * TLSv1.2 (OUT), TLS alert, close notify (256):
2021-07-02T13:30:58.142Z [ERR] curl.cpp:RequestPerform(2318): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>Z7KHSS58Q03RC5BS</RequestId><HostId>A7QMuxlMc5G/xfVryH7pbALUenEpnOJqjbjh2gjaU7x/OR0mRdpfwJby3OOBHzVxDmrWPKOIPYE=</HostId></Error>
2021-07-02T13:30:58.142Z [ERR] curl.cpp:CheckBucket(3396): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>Z7KHSS58Q03RC5BS</RequestId><HostId>A7QMuxlMc5G/xfVryH7pbALUenEpnOJqjbjh2gjaU7x/OR0mRdpfwJby3OOBHzVxDmrWPKOIPYE=</HostId></Error>
2021-07-02T13:30:58.142Z [CRT] s3fs.cpp:s3fs_check_service(3514): Bad Request(host=https://s3.amazonaws.com) - result of checking service.
2021-07-02T13:30:58.142Z [ERR] s3fs.cpp:s3fs_exit_fuseloop(3321): Exiting FUSE event loop due to errors

2021-07-02T13:30:58.173Z [INF] s3fs.cpp:s3fs_destroy(3389): destroy

Details about issue

So using -o endpoing=ap-east-1 gives the same behavior as if it is us-east-1, my educated guess is that internally s3fs ignores regions unknown to some constant enum in the source code.

This hypothesis is further confirmed when I tried to use a random endpoint -o endpoint=asjdlasjdlksajlas it just throws the same error.

Please add support for Hong Kong region, and if possible, remove the region restriction because it looks like this library is not respecting the option.

I am aware of #1509 and since it only works with an undocumented option -o url=s3.ap-east-1.amazonaws.com it should only be considered as a workaround. It should be resolved with an actual support of -o endpoint=ap-east-1 as documented.

Originally created by @vicary on GitHub (Jul 2, 2021). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1712 ### Additional Information _The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all._ _Keep in mind that the commands we provide to retrieve information are oriented to GNU/Linux Distributions, so you could need to use others if you use s3fs on macOS or BSD_ #### Version of s3fs being used (s3fs --version) 1.89 #### Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse) 2.9.2 #### Kernel information (uname -r) 4.14.232-177.418.amzn2.x86_64 #### GNU/Linux Distribution, if applicable (cat /etc/os-release) ``` NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" ``` #### s3fs command line used, if applicable ``` s3fs (bucket) ./test -o endpoint=ap-east-1 -f -d ``` #### s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs) ``` 2021-07-02T13:30:56.556Z [CRT] s3fs_logger.cpp:LowSetLogLevel(219): change debug level from [CRT] to [INF] 2021-07-02T13:30:56.556Z [INF] s3fs.cpp:set_mountpoint_attribute(4020): PROC(uid=1000, gid=1000) - MountPoint(uid=1000, gid=1000, mode=40775) 2021-07-02T13:30:56.558Z [INF] curl.cpp:InitMimeType(436): Loaded mime information from /etc/mime.types 2021-07-02T13:30:56.558Z [INF] fdcache_stat.cpp:CheckCacheFileStatTopDir(79): The path to cache top dir is empty, thus not need to check permission. 2021-07-02T13:30:56.560Z [INF] s3fs.cpp:s3fs_init(3331): init v1.89(commit:unknown) with OpenSSL 2021-07-02T13:30:56.560Z [INF] s3fs.cpp:s3fs_check_service(3447): check services. 2021-07-02T13:30:56.560Z [INF] curl.cpp:CheckBucket(3364): check a bucket. 2021-07-02T13:30:56.560Z [INF] curl_util.cpp:prepare_url(250): URL is https://s3.amazonaws.com/[redacted]/ 2021-07-02T13:30:56.560Z [INF] curl_util.cpp:prepare_url(283): URL changed is https://[redacted].s3.amazonaws.com/ 2021-07-02T13:30:56.561Z [INF] curl.cpp:insertV4Headers(2640): computing signature [GET] [/] [] [] 2021-07-02T13:30:56.561Z [INF] curl_util.cpp:url_to_host(327): url is https://s3.amazonaws.com 2021-07-02T13:30:56.563Z [CURL DBG] * Trying 52.217.40.84... 2021-07-02T13:30:56.563Z [CURL DBG] * TCP_NODELAY set 2021-07-02T13:30:56.757Z [CURL DBG] * Connected to [redacted].s3.amazonaws.com (52.217.40.84) port 443 (#0) 2021-07-02T13:30:56.757Z [CURL DBG] * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH 2021-07-02T13:30:56.762Z [CURL DBG] * successfully set certificate verify locations: 2021-07-02T13:30:56.762Z [CURL DBG] * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none 2021-07-02T13:30:56.762Z [CURL DBG] * TLSv1.2 (OUT), TLS header, Certificate Status (22): 2021-07-02T13:30:56.762Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Client hello (1): 2021-07-02T13:30:56.957Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server hello (2): 2021-07-02T13:30:56.957Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Certificate (11): 2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server key exchange (12): 2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server finished (14): 2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): 2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): 2021-07-02T13:30:56.959Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Finished (20): 2021-07-02T13:30:57.154Z [CURL DBG] * TLSv1.2 (IN), TLS change cipher, Change cipher spec (1): 2021-07-02T13:30:57.154Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Finished (20): 2021-07-02T13:30:57.154Z [CURL DBG] * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 2021-07-02T13:30:57.154Z [CURL DBG] * Server certificate: 2021-07-02T13:30:57.154Z [CURL DBG] * subject: C=US; ST=Washington; L=Seattle; O=Amazon.com, Inc.; CN=*.s3.amazonaws.com 2021-07-02T13:30:57.154Z [CURL DBG] * start date: Jan 11 00:00:00 2021 GMT 2021-07-02T13:30:57.154Z [CURL DBG] * expire date: Feb 11 23:59:59 2022 GMT 2021-07-02T13:30:57.154Z [CURL DBG] * subjectAltName: host "[redacted].s3.amazonaws.com" matched cert's "*.s3.amazonaws.com" 2021-07-02T13:30:57.154Z [CURL DBG] * issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert Baltimore CA-2 G2 2021-07-02T13:30:57.154Z [CURL DBG] * SSL certificate verify ok. 2021-07-02T13:30:57.154Z [CURL DBG] > GET / HTTP/1.1 2021-07-02T13:30:57.154Z [CURL DBG] > Host: [redacted].s3.amazonaws.com 2021-07-02T13:30:57.154Z [CURL DBG] > User-Agent: s3fs/1.89 (commit hash unknown; OpenSSL) 2021-07-02T13:30:57.154Z [CURL DBG] > Accept: */* 2021-07-02T13:30:57.154Z [CURL DBG] > Authorization: AWS4-HMAC-SHA256 Credential=[redacted]/20210702/ap-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=[redacted] 2021-07-02T13:30:57.154Z [CURL DBG] > x-amz-content-sha256: [redacted] 2021-07-02T13:30:57.154Z [CURL DBG] > x-amz-date: 20210702T133056Z 2021-07-02T13:30:57.154Z [CURL DBG] > 2021-07-02T13:30:57.350Z [CURL DBG] < HTTP/1.1 400 Bad Request 2021-07-02T13:30:57.350Z [CURL DBG] < x-amz-bucket-region: ap-east-1 2021-07-02T13:30:57.350Z [CURL DBG] < x-amz-request-id: 1S2N8RMH23SW0B67 2021-07-02T13:30:57.350Z [CURL DBG] < x-amz-id-2: cLhdAwqb7sVjoV3KbmIes8mOpo9bj9lcY9TUu9JQSTPVjr9HYHhEz8LzXzqRH5hmpkyPqOI1xkg= 2021-07-02T13:30:57.350Z [CURL DBG] < Content-Type: application/xml 2021-07-02T13:30:57.350Z [CURL DBG] < Transfer-Encoding: chunked 2021-07-02T13:30:57.350Z [CURL DBG] < Date: Fri, 02 Jul 2021 13:30:56 GMT 2021-07-02T13:30:57.350Z [CURL DBG] < Server: AmazonS3 2021-07-02T13:30:57.350Z [CURL DBG] < Connection: close 2021-07-02T13:30:57.350Z [CURL DBG] < 2021-07-02T13:30:57.350Z [CURL DBG] * Closing connection 0 2021-07-02T13:30:57.350Z [CURL DBG] * TLSv1.2 (OUT), TLS alert, close notify (256): 2021-07-02T13:30:57.351Z [ERR] curl.cpp:RequestPerform(2318): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>1S2N8RMH23SW0B67</RequestId><HostId>cLhdAwqb7sVjoV3KbmIes8mOpo9bj9lcY9TUu9JQSTPVjr9HYHhEz8LzXzqRH5hmpkyPqOI1xkg=</HostId></Error> 2021-07-02T13:30:57.351Z [ERR] curl.cpp:CheckBucket(3396): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>1S2N8RMH23SW0B67</RequestId><HostId>cLhdAwqb7sVjoV3KbmIes8mOpo9bj9lcY9TUu9JQSTPVjr9HYHhEz8LzXzqRH5hmpkyPqOI1xkg=</HostId></Error> 2021-07-02T13:30:57.351Z [CRT] s3fs.cpp:s3fs_check_service(3502): Failed to connect by sigv4, so retry to connect by signature version 2. 2021-07-02T13:30:57.351Z [INF] curl_handlerpool.cpp:ReturnHandler(110): Pool full: destroy the oldest handler 2021-07-02T13:30:57.351Z [INF] curl.cpp:CheckBucket(3364): check a bucket. 2021-07-02T13:30:57.351Z [INF] curl_util.cpp:prepare_url(250): URL is https://s3.amazonaws.com/[redacted]/ 2021-07-02T13:30:57.351Z [INF] curl_util.cpp:prepare_url(283): URL changed is https://[redacted].s3.amazonaws.com/ 2021-07-02T13:30:57.351Z [CURL DBG] * Hostname [redacted].s3.amazonaws.com was found in DNS cache 2021-07-02T13:30:57.351Z [CURL DBG] * Trying 52.217.40.84... 2021-07-02T13:30:57.351Z [CURL DBG] * TCP_NODELAY set 2021-07-02T13:30:57.548Z [CURL DBG] * Connected to [redacted].s3.amazonaws.com (52.217.40.84) port 443 (#1) 2021-07-02T13:30:57.548Z [CURL DBG] * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH 2021-07-02T13:30:57.552Z [CURL DBG] * successfully set certificate verify locations: 2021-07-02T13:30:57.552Z [CURL DBG] * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none 2021-07-02T13:30:57.552Z [CURL DBG] * SSL re-using session ID 2021-07-02T13:30:57.553Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Client hello (1): 2021-07-02T13:30:57.747Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server hello (2): 2021-07-02T13:30:57.747Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Certificate (11): 2021-07-02T13:30:57.748Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server key exchange (12): 2021-07-02T13:30:57.748Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Server finished (14): 2021-07-02T13:30:57.749Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): 2021-07-02T13:30:57.749Z [CURL DBG] * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1): 2021-07-02T13:30:57.749Z [CURL DBG] * TLSv1.2 (OUT), TLS handshake, Finished (20): 2021-07-02T13:30:57.943Z [CURL DBG] * TLSv1.2 (IN), TLS change cipher, Change cipher spec (1): 2021-07-02T13:30:57.943Z [CURL DBG] * TLSv1.2 (IN), TLS handshake, Finished (20): 2021-07-02T13:30:57.943Z [CURL DBG] * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 2021-07-02T13:30:57.943Z [CURL DBG] * old SSL session ID is stale, removing 2021-07-02T13:30:57.944Z [CURL DBG] * Server certificate: 2021-07-02T13:30:57.944Z [CURL DBG] * subject: C=US; ST=Washington; L=Seattle; O=Amazon.com, Inc.; CN=*.s3.amazonaws.com 2021-07-02T13:30:57.944Z [CURL DBG] * start date: Jan 11 00:00:00 2021 GMT 2021-07-02T13:30:57.944Z [CURL DBG] * expire date: Feb 11 23:59:59 2022 GMT 2021-07-02T13:30:57.944Z [CURL DBG] * subjectAltName: host "[redacted].s3.amazonaws.com" matched cert's "*.s3.amazonaws.com" 2021-07-02T13:30:57.944Z [CURL DBG] * issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert Baltimore CA-2 G2 2021-07-02T13:30:57.944Z [CURL DBG] * SSL certificate verify ok. 2021-07-02T13:30:57.944Z [CURL DBG] > GET / HTTP/1.1 2021-07-02T13:30:57.944Z [CURL DBG] > Host: [redacted].s3.amazonaws.com 2021-07-02T13:30:57.944Z [CURL DBG] > User-Agent: s3fs/1.89 (commit hash unknown; OpenSSL) 2021-07-02T13:30:57.944Z [CURL DBG] > Accept: */* 2021-07-02T13:30:57.944Z [CURL DBG] > Authorization: AWS [redacted] 2021-07-02T13:30:57.944Z [CURL DBG] > Date: Fri, 02 Jul 2021 13:30:57 GMT 2021-07-02T13:30:57.944Z [CURL DBG] > 2021-07-02T13:30:58.141Z [CURL DBG] < HTTP/1.1 400 Bad Request 2021-07-02T13:30:58.141Z [CURL DBG] < x-amz-bucket-region: ap-east-1 2021-07-02T13:30:58.141Z [CURL DBG] < x-amz-request-id: Z7KHSS58Q03RC5BS 2021-07-02T13:30:58.141Z [CURL DBG] < x-amz-id-2: A7QMuxlMc5G/xfVryH7pbALUenEpnOJqjbjh2gjaU7x/OR0mRdpfwJby3OOBHzVxDmrWPKOIPYE= 2021-07-02T13:30:58.141Z [CURL DBG] < Content-Type: application/xml 2021-07-02T13:30:58.141Z [CURL DBG] < Transfer-Encoding: chunked 2021-07-02T13:30:58.141Z [CURL DBG] < Date: Fri, 02 Jul 2021 13:30:57 GMT 2021-07-02T13:30:58.141Z [CURL DBG] < Server: AmazonS3 2021-07-02T13:30:58.141Z [CURL DBG] < Connection: close 2021-07-02T13:30:58.141Z [CURL DBG] < 2021-07-02T13:30:58.141Z [CURL DBG] * Closing connection 1 2021-07-02T13:30:58.141Z [CURL DBG] * TLSv1.2 (OUT), TLS alert, close notify (256): 2021-07-02T13:30:58.142Z [ERR] curl.cpp:RequestPerform(2318): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>Z7KHSS58Q03RC5BS</RequestId><HostId>A7QMuxlMc5G/xfVryH7pbALUenEpnOJqjbjh2gjaU7x/OR0mRdpfwJby3OOBHzVxDmrWPKOIPYE=</HostId></Error> 2021-07-02T13:30:58.142Z [ERR] curl.cpp:CheckBucket(3396): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>Z7KHSS58Q03RC5BS</RequestId><HostId>A7QMuxlMc5G/xfVryH7pbALUenEpnOJqjbjh2gjaU7x/OR0mRdpfwJby3OOBHzVxDmrWPKOIPYE=</HostId></Error> 2021-07-02T13:30:58.142Z [CRT] s3fs.cpp:s3fs_check_service(3514): Bad Request(host=https://s3.amazonaws.com) - result of checking service. 2021-07-02T13:30:58.142Z [ERR] s3fs.cpp:s3fs_exit_fuseloop(3321): Exiting FUSE event loop due to errors 2021-07-02T13:30:58.173Z [INF] s3fs.cpp:s3fs_destroy(3389): destroy ``` ### Details about issue So using `-o endpoing=ap-east-1` gives the same behavior as if it is `us-east-1`, my educated guess is that internally s3fs ignores regions unknown to some constant enum in the source code. This hypothesis is further confirmed when I tried to use a random endpoint `-o endpoint=asjdlasjdlksajlas` it just throws the same error. Please add support for Hong Kong region, and if possible, remove the region restriction because it looks like this library is not respecting the option. I am aware of #1509 and since it only works with an undocumented option `-o url=s3.ap-east-1.amazonaws.com` it should only be considered as a workaround. It should be resolved with an actual support of `-o endpoint=ap-east-1` as documented.
kerem closed this issue 2026-03-04 01:49:40 +03:00
Author
Owner

@gaul commented on GitHub (Sep 8, 2023):

s3fs does not hardcode the regions so I'm not sure why you are encountering this error. Could you test with the latest version reopen this issue if your symptoms persist?

<!-- gh-comment-id:1710959288 --> @gaul commented on GitHub (Sep 8, 2023): s3fs does not hardcode the regions so I'm not sure why you are encountering this error. Could you test with the latest version reopen this issue if your symptoms persist?
Author
Owner

@jacky96623 commented on GitHub (Sep 17, 2023):

@gaul I think the issue still happens.

OS info:

> uname -a
Darwin NgdeMacBook-Pro 21.6.0 Darwin Kernel Version 21.6.0: Thu Jul  6 22:18:26 PDT 2023; root:xnu-8020.240.18.702.13~1/RELEASE_X86_64 x86_64

S3fs info:

> s3fs --version
Amazon Simple Storage Service File System V1.92 (commit:unknown) with GnuTLS(gcrypt)
Copyright (C) 2010 Randy Rizun <rrizun@gmail.com>
License GPL2: GNU GPL version 2 <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

S3 bucket info:

> aws s3api get-bucket-location --bucket qualview
{
    "LocationConstraint": "ap-east-1"
}

Error message:

> s3fs qualview mnt -o endpoint=ap-east-1 -f -d
2023-09-17T03:29:21.101Z [INF] s3fs version 1.92(unknown) : s3fs -o endpoint=ap-east-1 -f -d qualview mnt
2023-09-17T03:29:21.103Z [CRT] s3fs_logger.cpp:LowSetLogLevel(239): change debug level from [CRT] to [INF]
2023-09-17T03:29:21.103Z [INF]     s3fs.cpp:set_mountpoint_attribute(4480): PROC(uid=501, gid=20) - MountPoint(uid=501, gid=20, mode=40755)
2023-09-17T03:29:21.103Z [INF] s3fs_util.cpp:compare_sysname(421): system name is Darwin
2023-09-17T03:29:21.105Z [INF] curl.cpp:InitMimeType(431): Loaded mime information from /etc/apache2/mime.types
2023-09-17T03:29:21.105Z [INF] fdcache_stat.cpp:CheckCacheFileStatTopDir(78): The path to cache top dir is empty, thus not need to check permission.
2023-09-17T03:29:21.105Z [INF] threadpoolman.cpp:StopThreads(195): Any threads are running now, then nothing to do.
2023-09-17T03:29:21.106Z [INF]       threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan.
2023-09-17T03:29:21.106Z [INF]       threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan.
2023-09-17T03:29:21.106Z [INF]       threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan.
2023-09-17T03:29:21.106Z [INF]       threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan.
2023-09-17T03:29:21.106Z [INF]       threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan.
2023-09-17T03:29:21.133Z [CRT] s3fs_cred.cpp:VersionS3fsCredential(60): Check why built-in function was called, the external credential library must have VersionS3fsCredential function.
2023-09-17T03:29:21.133Z [INF] s3fs.cpp:s3fs_init(4210): init v1.92(commit:unknown) with GnuTLS(gcrypt), credential-library(built-in)
2023-09-17T03:29:21.134Z [INF] s3fs.cpp:s3fs_check_service(4347): check services.
2023-09-17T03:29:21.134Z [INF]       curl.cpp:CheckBucket(3672): check a bucket path(/).
2023-09-17T03:29:21.134Z [INF]       curl_util.cpp:prepare_url(257): URL is https://s3.amazonaws.com/qualview/
2023-09-17T03:29:21.134Z [INF]       curl_util.cpp:prepare_url(290): URL changed is https://qualview.s3.amazonaws.com/
2023-09-17T03:29:21.134Z [INF]       curl.cpp:insertV4Headers(2891): computing signature [GET] [/] [] []
2023-09-17T03:29:21.134Z [INF]       curl_util.cpp:url_to_host(334): url is https://s3.amazonaws.com
2023-09-17T03:29:22.130Z [ERR] curl.cpp:RequestPerform(2560): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>RVECKEJF6NG92CHB</RequestId><HostId>crfxHNdeLLHC3Y1vVAzBrrpbKIcZXUhAlYYAz22a0JBS37GVvvArZJKlE743OFuFtVC2g8sh9qI=</HostId></Error>
2023-09-17T03:29:22.130Z [ERR] curl.cpp:CheckBucket(3741): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>RVECKEJF6NG92CHB</RequestId><HostId>crfxHNdeLLHC3Y1vVAzBrrpbKIcZXUhAlYYAz22a0JBS37GVvvArZJKlE743OFuFtVC2g8sh9qI=</HostId></Error>
2023-09-17T03:29:22.130Z [CRT] s3fs.cpp:s3fs_check_service(4424): Failed to connect by sigv4, so retry to connect by signature version 2. But you should to review url and endpoint option.
2023-09-17T03:29:22.130Z [INF]       curl.cpp:CheckBucket(3672): check a bucket path(/).
2023-09-17T03:29:22.130Z [INF]       curl_util.cpp:prepare_url(257): URL is https://s3.amazonaws.com/qualview/
2023-09-17T03:29:22.130Z [INF]       curl_util.cpp:prepare_url(290): URL changed is https://qualview.s3.amazonaws.com/
2023-09-17T03:29:23.104Z [ERR] curl.cpp:RequestPerform(2560): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>NEK16EAJFGY85W4P</RequestId><HostId>Zy3DrtH7ezisMv134LwxxQoO2+Qo2IbhSqDzBJNh3+IjTvxcb0T3TnetGqnS5IEQ1t9Z+Z0CSmY=</HostId></Error>
2023-09-17T03:29:23.104Z [ERR] curl.cpp:CheckBucket(3741): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>NEK16EAJFGY85W4P</RequestId><HostId>Zy3DrtH7ezisMv134LwxxQoO2+Qo2IbhSqDzBJNh3+IjTvxcb0T3TnetGqnS5IEQ1t9Z+Z0CSmY=</HostId></Error>
2023-09-17T03:29:23.104Z [CRT] s3fs.cpp:s3fs_check_service(4436): Failed to check bucket and directory for mount point : Bad Request(host=https://s3.amazonaws.com)
2023-09-17T03:29:23.104Z [ERR] s3fs.cpp:s3fs_exit_fuseloop(4200): Exiting FUSE event loop due to errors

2023-09-17T03:29:23.105Z [INF] s3fs.cpp:s3fs_destroy(4254): destroy
<!-- gh-comment-id:1722381860 --> @jacky96623 commented on GitHub (Sep 17, 2023): @gaul I think the issue still happens. OS info: ```sh > uname -a Darwin NgdeMacBook-Pro 21.6.0 Darwin Kernel Version 21.6.0: Thu Jul 6 22:18:26 PDT 2023; root:xnu-8020.240.18.702.13~1/RELEASE_X86_64 x86_64 ``` S3fs info: ```sh > s3fs --version Amazon Simple Storage Service File System V1.92 (commit:unknown) with GnuTLS(gcrypt) Copyright (C) 2010 Randy Rizun <rrizun@gmail.com> License GPL2: GNU GPL version 2 <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ``` S3 bucket info: ```sh > aws s3api get-bucket-location --bucket qualview { "LocationConstraint": "ap-east-1" } ``` Error message: ``` > s3fs qualview mnt -o endpoint=ap-east-1 -f -d 2023-09-17T03:29:21.101Z [INF] s3fs version 1.92(unknown) : s3fs -o endpoint=ap-east-1 -f -d qualview mnt 2023-09-17T03:29:21.103Z [CRT] s3fs_logger.cpp:LowSetLogLevel(239): change debug level from [CRT] to [INF] 2023-09-17T03:29:21.103Z [INF] s3fs.cpp:set_mountpoint_attribute(4480): PROC(uid=501, gid=20) - MountPoint(uid=501, gid=20, mode=40755) 2023-09-17T03:29:21.103Z [INF] s3fs_util.cpp:compare_sysname(421): system name is Darwin 2023-09-17T03:29:21.105Z [INF] curl.cpp:InitMimeType(431): Loaded mime information from /etc/apache2/mime.types 2023-09-17T03:29:21.105Z [INF] fdcache_stat.cpp:CheckCacheFileStatTopDir(78): The path to cache top dir is empty, thus not need to check permission. 2023-09-17T03:29:21.105Z [INF] threadpoolman.cpp:StopThreads(195): Any threads are running now, then nothing to do. 2023-09-17T03:29:21.106Z [INF] threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan. 2023-09-17T03:29:21.106Z [INF] threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan. 2023-09-17T03:29:21.106Z [INF] threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan. 2023-09-17T03:29:21.106Z [INF] threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan. 2023-09-17T03:29:21.106Z [INF] threadpoolman.cpp:Worker(76): Start worker thread in ThreadPoolMan. 2023-09-17T03:29:21.133Z [CRT] s3fs_cred.cpp:VersionS3fsCredential(60): Check why built-in function was called, the external credential library must have VersionS3fsCredential function. 2023-09-17T03:29:21.133Z [INF] s3fs.cpp:s3fs_init(4210): init v1.92(commit:unknown) with GnuTLS(gcrypt), credential-library(built-in) 2023-09-17T03:29:21.134Z [INF] s3fs.cpp:s3fs_check_service(4347): check services. 2023-09-17T03:29:21.134Z [INF] curl.cpp:CheckBucket(3672): check a bucket path(/). 2023-09-17T03:29:21.134Z [INF] curl_util.cpp:prepare_url(257): URL is https://s3.amazonaws.com/qualview/ 2023-09-17T03:29:21.134Z [INF] curl_util.cpp:prepare_url(290): URL changed is https://qualview.s3.amazonaws.com/ 2023-09-17T03:29:21.134Z [INF] curl.cpp:insertV4Headers(2891): computing signature [GET] [/] [] [] 2023-09-17T03:29:21.134Z [INF] curl_util.cpp:url_to_host(334): url is https://s3.amazonaws.com 2023-09-17T03:29:22.130Z [ERR] curl.cpp:RequestPerform(2560): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>RVECKEJF6NG92CHB</RequestId><HostId>crfxHNdeLLHC3Y1vVAzBrrpbKIcZXUhAlYYAz22a0JBS37GVvvArZJKlE743OFuFtVC2g8sh9qI=</HostId></Error> 2023-09-17T03:29:22.130Z [ERR] curl.cpp:CheckBucket(3741): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>RVECKEJF6NG92CHB</RequestId><HostId>crfxHNdeLLHC3Y1vVAzBrrpbKIcZXUhAlYYAz22a0JBS37GVvvArZJKlE743OFuFtVC2g8sh9qI=</HostId></Error> 2023-09-17T03:29:22.130Z [CRT] s3fs.cpp:s3fs_check_service(4424): Failed to connect by sigv4, so retry to connect by signature version 2. But you should to review url and endpoint option. 2023-09-17T03:29:22.130Z [INF] curl.cpp:CheckBucket(3672): check a bucket path(/). 2023-09-17T03:29:22.130Z [INF] curl_util.cpp:prepare_url(257): URL is https://s3.amazonaws.com/qualview/ 2023-09-17T03:29:22.130Z [INF] curl_util.cpp:prepare_url(290): URL changed is https://qualview.s3.amazonaws.com/ 2023-09-17T03:29:23.104Z [ERR] curl.cpp:RequestPerform(2560): HTTP response code 400, returning EIO. Body Text: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>NEK16EAJFGY85W4P</RequestId><HostId>Zy3DrtH7ezisMv134LwxxQoO2+Qo2IbhSqDzBJNh3+IjTvxcb0T3TnetGqnS5IEQ1t9Z+Z0CSmY=</HostId></Error> 2023-09-17T03:29:23.104Z [ERR] curl.cpp:CheckBucket(3741): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>IllegalLocationConstraintException</Code><Message>The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>NEK16EAJFGY85W4P</RequestId><HostId>Zy3DrtH7ezisMv134LwxxQoO2+Qo2IbhSqDzBJNh3+IjTvxcb0T3TnetGqnS5IEQ1t9Z+Z0CSmY=</HostId></Error> 2023-09-17T03:29:23.104Z [CRT] s3fs.cpp:s3fs_check_service(4436): Failed to check bucket and directory for mount point : Bad Request(host=https://s3.amazonaws.com) 2023-09-17T03:29:23.104Z [ERR] s3fs.cpp:s3fs_exit_fuseloop(4200): Exiting FUSE event loop due to errors 2023-09-17T03:29:23.105Z [INF] s3fs.cpp:s3fs_destroy(4254): destroy ```
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#884
No description provided.