[GH-ISSUE #722] AWSChina Supports #409

Closed
opened 2026-03-04 01:45:17 +03:00 by kerem · 4 comments
Owner

Originally created by @marszhang-sha on GitHub (Feb 23, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/722

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.

Version of s3fs being used (s3fs --version)

latest

Version of fuse being used (pkg-config --modversion fuse)

2.9.7

System information (uname -r)

3.10.0-327.el7.x86_64

Distro (cat /etc/issue)

\S
Kernel \r on an \m

s3fs command line used (if applicable)

/etc/fstab entry (if applicable):

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

if you execute s3fs with dbglevel, curldbg option, you can get detail debug messages

Details about issue

s3fs endpoint not support AWS China, because AWSChina used a different url
s3.cn-north-1.amazonaws.com.cn
while the code in line s3fs.cpp 3771 is

http://s3.amazonaws.com 

I just modified source code in my server environment
May some will commit a patch.

Originally created by @marszhang-sha on GitHub (Feb 23, 2018). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/722 ### 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._ #### Version of s3fs being used (s3fs --version) latest #### Version of fuse being used (pkg-config --modversion fuse) 2.9.7 #### System information (uname -r) 3.10.0-327.el7.x86_64 #### Distro (cat /etc/issue) \S Kernel \r on an \m #### s3fs command line used (if applicable) ``` ``` #### /etc/fstab entry (if applicable): ``` ``` #### s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs) _if you execute s3fs with dbglevel, curldbg option, you can get detail debug messages_ ``` ``` ### Details about issue s3fs endpoint not support AWS China, because AWSChina used a different url s3.cn-north-1.amazonaws.com.cn while the code in line s3fs.cpp [3771](https://github.com/s3fs-fuse/s3fs-fuse/blob/master/src/s3fs.cpp#L3771) is ``` http://s3.amazonaws.com ``` I just modified source code in my server environment May some will commit a patch.
kerem closed this issue 2026-03-04 01:45:17 +03:00
Author
Owner

@lizepeng commented on GitHub (May 2, 2018):

The following command usage works in my environment. :)

s3fs $BUCKET_NAME $PATH_TO_LOCAL -o passwd_file=$PATH_TO_PASSWORD -o url=https://s3.cn-north-1.amazonaws.com.cn/ -o use_path_request_style -o endpoint=cn-north-1 -o complement_stat -o allow_other -o dbglevel=info -f -o curldbg
<!-- gh-comment-id:385842087 --> @lizepeng commented on GitHub (May 2, 2018): The following command usage works in my environment. :) ```bash s3fs $BUCKET_NAME $PATH_TO_LOCAL -o passwd_file=$PATH_TO_PASSWORD -o url=https://s3.cn-north-1.amazonaws.com.cn/ -o use_path_request_style -o endpoint=cn-north-1 -o complement_stat -o allow_other -o dbglevel=info -f -o curldbg ```
Author
Owner

@gaul commented on GitHub (Feb 2, 2019):

@15921050052 Did @lizepeng suggestion work? If so please close this issue.

<!-- gh-comment-id:459930204 --> @gaul commented on GitHub (Feb 2, 2019): @15921050052 Did @lizepeng suggestion work? If so please close this issue.
Author
Owner

@gaul commented on GitHub (Jun 25, 2019):

Please reopen if the suggested workaround does not address your symptoms.

<!-- gh-comment-id:505612083 --> @gaul commented on GitHub (Jun 25, 2019): Please reopen if the suggested workaround does not address your symptoms.
Author
Owner

@socrateslee commented on GitHub (Oct 31, 2019):

just note that the above workaround with -o url=https://s3.cn-north-1.amazonaws.com.cn/ also works with -o iam_role=auto

<!-- gh-comment-id:548226565 --> @socrateslee commented on GitHub (Oct 31, 2019): just note that the above workaround with ```-o url=https://s3.cn-north-1.amazonaws.com.cn/``` also works with ``` -o iam_role=auto```
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#409
No description provided.