mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[GH-ISSUE #473] Beijing region can't mount s3 service #263
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rice5 on GitHub (Sep 21, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/473
I run the command:
s3fs royoleweb
/demo -o passwd_file=/.passwd-s3fs -o url=https://s3.cn-north-1.amazonaws.com.cn -d -d -f -o curldbgThe result is:
[CRT] s3fs.cpp:set_s3fs_log_level(255): change debug level from [CRT] to [INF]
[INF] s3fs.cpp:set_moutpoint_attribute(4192): PROC(uid=500, gid=500) - MountPoint(uid=500, gid=500, mode=40775)
FUSE library version: 2.9.4
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.23
flags=0x0003f7fb
max_readahead=0x00020000
[CRT] s3fs.cpp:s3fs_init(3371): init v1.80(commit:9f174d7) with OpenSSL
[INF] s3fs.cpp:s3fs_check_service(3749): check services.
[INF] curl.cpp:CheckBucket(2860): check a bucket.
[INF] curl.cpp:prepare_url(4175): URL is https://s3.cn-north-1.amazonaws.com.cn/royoleweb/
[INF] curl.cpp:prepare_url(4207): URL changed is https://royoleweb.s3.cn-north-1.amazonaws.com.cn/
[INF] curl.cpp:insertV4Headers(2237): computing signature [GET] [/] [] []
[INF] curl.cpp:url_to_host(100): url is https://s3.cn-north-1.amazonaws.com.cn
CApath: none
< HTTP/1.1 400 Bad Request
< x-amz-bucket-region: cn-north-1
< x-amz-request-id: 7FFF076FD63EFB2C
< x-amz-id-2: lfbLVoZVS6NFRk55xYd6GKde7LYLvKopz5PSzowC2SLHl+BdVP3HED6YORmnxM1MS+9C0BuffLs=
< Content-Type: application/xml
< Transfer-Encoding: chunked
< Date: Wed, 21 Sep 2016 03:18:25 GMT
< Connection: close
< Server: AmazonS3
<
[INF] curl.cpp:RequestPerform(1922): HTTP response code 400 was returned, returning EIO.
[ERR] curl.cpp:CheckBucket(2899): Check bucket failed, S3 response:
AuthorizationHeaderMalformedThe authorization header is malformed; the region 'us-east-1' is wrong; expecting 'cn-north-1'cn-north-17FFF076FD63EFB2ClfbLVoZVS6NFRk55xYd6GKde7LYLvKopz5PSzowC2SLHl+BdVP3HED6YORmnxM1MS+9C0BuffLs=[CRT] s3fs.cpp:s3fs_check_service(3770): Could not connect wrong region us-east-1, so retry to connect region cn-north-1.
[INF] curl.cpp:CheckBucket(2860): check a bucket.
[INF] curl.cpp:prepare_url(4175): URL is https://s3.cn-north-1.amazonaws.com.cn/royoleweb/
[INF] curl.cpp:prepare_url(4207): URL changed is https://royoleweb.s3.cn-north-1.amazonaws.com.cn/
[INF] curl.cpp:insertV4Headers(2237): computing signature [GET] [/] [] []
[INF] curl.cpp:url_to_host(100): url is https://s3.cn-north-1.amazonaws.com.cn
CApath: none
< HTTP/1.1 403 Forbidden
< x-amz-bucket-region: cn-north-1
< x-amz-request-id: 094226AC15E253EA
< x-amz-id-2: wDB71AsBUppfqSfFXV0eDVWZaSRtHiZhdT0MZ82nj71gWfe2gjUW40ZaFVHnkOdzJK7Lskqziko=
< Content-Type: application/xml
< Transfer-Encoding: chunked
< Date: Wed, 21 Sep 2016 03:18:25 GMT
< Server: AmazonS3
<
[INF] curl.cpp:RequestPerform(1927): HTTP response code 403 was returned, returning EPERM
[ERR] curl.cpp:CheckBucket(2899): Check bucket failed, S3 response:
InvalidAccessKeyIdThe AWS Access Key Id you provided does not exist in our records.AKIAOI66Y2YBC3I7L4GA094226AC15E253EAwDB71AsBUppfqSfFXV0eDVWZaSRtHiZhdT0MZ82nj71gWfe2gjUW40ZaFVHnkOdzJK7Lskqziko=[WAN] s3fs.cpp:s3fs_check_service(3790): Could not connect, so retry to connect by signature version 2.
[INF] curl.cpp:CheckBucket(2860): check a bucket.
[INF] curl.cpp:prepare_url(4175): URL is https://s3.cn-north-1.amazonaws.com.cn/royoleweb/
[INF] curl.cpp:prepare_url(4207): URL changed is https://royoleweb.s3.cn-north-1.amazonaws.com.cn/
< HTTP/1.1 400 Bad Request
< x-amz-bucket-region: cn-north-1
< x-amz-request-id: 30F08E0C5C5215A0
< x-amz-id-2: 6pQAGazgK9Mtd0BgrypMV+kQj1H66uwZoGrZJyzkjTtgYmM8R8Fza/rqdbo66nhGxn3Y6vPsWuk=
< x-amz-region: cn-north-1
< Content-Type: application/xml
< Transfer-Encoding: chunked
< Date: Wed, 21 Sep 2016 03:18:25 GMT
< Connection: close
< Server: AmazonS3
<
Closing connection 1
[INF] curl.cpp:RequestPerform(1922): HTTP response code 400 was returned, returning EIO.
[ERR] curl.cpp:CheckBucket(2899): Check bucket failed, S3 response:
InvalidRequestThe authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.30F08E0C5C5215A06pQAGazgK9Mtd0BgrypMV+kQj1H66uwZoGrZJyzkjTtgYmM8R8Fza/rqdbo66nhGxn3Y6vPsWuk=[CRT] s3fs.cpp:s3fs_check_service(3802): Bad Request - result of checking service.
[ERR] s3fs.cpp:s3fs_exit_fuseloop(3361): Exiting FUSE event loop due to errors
INIT: 7.19
flags=0x00000011
max_readahead=0x00020000
max_write=0x00020000
max_background=0
congestion_threshold=0
unique: 1, success, outsize: 40
[INF] s3fs.cpp:s3fs_destroy(3436): destroy
[WAN] s3fs.cpp:s3fs_destroy(3440): Could not release curl library.
@rangasoa commented on GitHub (May 4, 2017):
same issue here, any fix or workaround
@lyenliang commented on GitHub (Sep 11, 2018):
I got the same problem in Ningxia region.
@lyenliang commented on GitHub (Sep 21, 2018):
According to this tutorial, you need to add
-o url=http://s3.cn-north-1.amazonaws.com.cn -o endpoint=cn-north-1variables if you want to mount S3 in Beijing region.For example,
s3fs s3fs-mount-bucket /home/ec2-user/s3mnt -o passwd_file=/home/ec2-user/.passwd-s3fs -o url=http://s3.cn-north-1.amazonaws.com.cn -o endpoint=cn-north-1.@gaul commented on GitHub (Feb 2, 2019):
@rice5 did this suggestion work? If so please close this issue. Duplicate of #722.
@gaul commented on GitHub (Jun 25, 2019):
Please reopen if the suggested workaround does not address your symptoms.