[GH-ISSUE #227] mount s3fs eroor 404 #125

Closed
opened 2026-03-04 01:42:21 +03:00 by kerem · 28 comments
Owner

Originally created by @novoxd on GitHub (Aug 11, 2015).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/227

s3fs instaled from git, os ubuntu

when I use:
s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -d -f
I get:
set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777)
s3fs_init(2595): init
s3fs_check_service(2894): check services.
CheckBucket(2228): check a bucket.
RequestPerform(1467): connecting to URL http://koshka-owncloud.s3.amazonaws.com/
RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR
RequestPerform(1600): HTTP response code =400
s3fs: Failed to access bucket.

when I use:
s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ouse_sse=/etc/passwd-s3fs -ourl=http://s3-eu-west-1.amazonaws.com -d -f

I get:
set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777)
s3fs_init(2595): init
s3fs_check_service(2894): check services.
CheckBucket(2228): check a bucket.
RequestPerform(1467): connecting to URL http://koshka-owncloud.s3-eu-west-1.amazonaws.com/
RequestPerform(1483): HTTP response code 301
^Cs3fs_destroy(2628): destroy

after 301 it suspeneds

the key format in ~/.passwd-s3fs is ok

Originally created by @novoxd on GitHub (Aug 11, 2015). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/227 s3fs instaled from git, os ubuntu when I use: s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -d -f I get: set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777) s3fs_init(2595): init s3fs_check_service(2894): check services. CheckBucket(2228): check a bucket. RequestPerform(1467): connecting to URL http://koshka-owncloud.s3.amazonaws.com/ RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR RequestPerform(1600): HTTP response code =400 s3fs: Failed to access bucket. when I use: s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ouse_sse=/etc/passwd-s3fs -ourl=http://s3-eu-west-1.amazonaws.com -d -f I get: set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777) s3fs_init(2595): init s3fs_check_service(2894): check services. CheckBucket(2228): check a bucket. RequestPerform(1467): connecting to URL http://koshka-owncloud.s3-eu-west-1.amazonaws.com/ RequestPerform(1483): HTTP response code 301 ^Cs3fs_destroy(2628): destroy after 301 it suspeneds the key format in ~/.passwd-s3fs is ok
kerem closed this issue 2026-03-04 01:42:21 +03:00
Author
Owner

@Doerge commented on GitHub (Aug 11, 2015):

301 means moved. It says in the response that it is located in the eu-central region:

<Error>
  <Code>PermanentRedirect</Code>
    <Message>
    The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
    </Message>
    <Bucket>koshka-owncloud</Bucket>
    <Endpoint>koshka-owncloud.s3.eu-central-1.amazonaws.com</Endpoint>
    <RequestId>F209B49176187E86</RequestId>
    <HostId>
      AhvzxSDiG91Uu0wjJwsJgRvy2n/+y/bRNiJXQiTbNJyd4X6+ahf6R2lz6LxSJSOpUk1BX7xzlV8=
    </HostId>
</Error>

try using koshka-owncloud.s3.eu-central-1.amazonaws.com.

<!-- gh-comment-id:130033734 --> @Doerge commented on GitHub (Aug 11, 2015): 301 means moved. It says in the response that it is located in the eu-central region: ``` <Error> <Code>PermanentRedirect</Code> <Message> The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. </Message> <Bucket>koshka-owncloud</Bucket> <Endpoint>koshka-owncloud.s3.eu-central-1.amazonaws.com</Endpoint> <RequestId>F209B49176187E86</RequestId> <HostId> AhvzxSDiG91Uu0wjJwsJgRvy2n/+y/bRNiJXQiTbNJyd4X6+ahf6R2lz6LxSJSOpUk1BX7xzlV8= </HostId> </Error> ``` try using `koshka-owncloud.s3.eu-central-1.amazonaws.com`.
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ouse_sse=/etc/passwd-s3fs -ourl=http://koshka-owncloud.s3.eu-central-1.amazonaws.com -d -f

set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777)
s3fs_init(2595): init
s3fs_check_service(2894): check services.
CheckBucket(2228): check a bucket.
RequestPerform(1467): connecting to URL http://koshka-owncloud.koshka-owncloud.s3.eu-central-1.amazonaws.com/koshka-owncloud/.s3.eu-central-1.amazonaws.com/koshka-owncloud/
RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR
RequestPerform(1600): HTTP response code =400
s3fs: Failed to access bucket.

<!-- gh-comment-id:130036367 --> @novoxd commented on GitHub (Aug 11, 2015): s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ouse_sse=/etc/passwd-s3fs -ourl=http://koshka-owncloud.s3.eu-central-1.amazonaws.com -d -f set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777) s3fs_init(2595): init s3fs_check_service(2894): check services. CheckBucket(2228): check a bucket. RequestPerform(1467): connecting to URL http://koshka-owncloud.koshka-owncloud.s3.eu-central-1.amazonaws.com/koshka-owncloud/.s3.eu-central-1.amazonaws.com/koshka-owncloud/ RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR RequestPerform(1600): HTTP response code =400 s3fs: Failed to access bucket.
Author
Owner

@kahing commented on GitHub (Aug 11, 2015):

try s3.eu-central-1.amazonaws.com without the bucket:

s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ouse_sse=/etc/passwd-s3fs -ourl=http://s3.eu-central-1.amazonaws.com -d -f
<!-- gh-comment-id:130039351 --> @kahing commented on GitHub (Aug 11, 2015): try s3.eu-central-1.amazonaws.com without the bucket: ``` s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ouse_sse=/etc/passwd-s3fs -ourl=http://s3.eu-central-1.amazonaws.com -d -f ```
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ouse_sse=/etc/passwd-s3fs -ourl=http://s3.eu-central-1.amazonaws.com -d -f

set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777)

s3fs_init(2595): init
s3fs_check_service(2894): check services.
CheckBucket(2228): check a bucket.
RequestPerform(1467): connecting to URL http://koshka-owncloud.s3.eu-central-1.amazonaws.com/
RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR
RequestPerform(1600): HTTP response code =400
s3fs: Failed to access bucket.

<!-- gh-comment-id:130045017 --> @novoxd commented on GitHub (Aug 11, 2015): s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ouse_sse=/etc/passwd-s3fs -ourl=http://s3.eu-central-1.amazonaws.com -d -f ``` set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777) ``` s3fs_init(2595): init s3fs_check_service(2894): check services. CheckBucket(2228): check a bucket. RequestPerform(1467): connecting to URL http://koshka-owncloud.s3.eu-central-1.amazonaws.com/ RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR RequestPerform(1600): HTTP response code =400 s3fs: Failed to access bucket.
Author
Owner

@kahing commented on GitHub (Aug 11, 2015):

did you mean to do -ouse_sse=/etc/passwd-s3fs or -o passwd_file?

<!-- gh-comment-id:130047376 --> @kahing commented on GitHub (Aug 11, 2015): did you mean to do -ouse_sse=/etc/passwd-s3fs or -o passwd_file?
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

you are right, changed -ouse_sse to -opasswd_file, nofing changes

<!-- gh-comment-id:130049831 --> @novoxd commented on GitHub (Aug 11, 2015): you are right, changed -ouse_sse to -opasswd_file, nofing changes
Author
Owner

@kahing commented on GitHub (Aug 11, 2015):

Have you double checked your access keys? It should be in the format of

BUCKET:BUCKET_ACCESSKEY:BUCKET_CREDENTIAL
DEFAULT_ACCESSKEY:DEFAULT_CREDENTIAL
<!-- gh-comment-id:130050682 --> @kahing commented on GitHub (Aug 11, 2015): Have you double checked your access keys? It should be in the format of ``` BUCKET:BUCKET_ACCESSKEY:BUCKET_CREDENTIAL DEFAULT_ACCESSKEY:DEFAULT_CREDENTIAL ```
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

my ~/.passwd-s3fs (permissions 600):
koshka-owncloud:my_BUCKET_ACCESSKEY:my_BUCKET_CREDENTIAL
my_BUCKET_ACCESSKEY:my_BUCKET_CREDENTIAL

<!-- gh-comment-id:130056328 --> @novoxd commented on GitHub (Aug 11, 2015): my ~/.passwd-s3fs (permissions 600): koshka-owncloud:my_BUCKET_ACCESSKEY:my_BUCKET_CREDENTIAL my_BUCKET_ACCESSKEY:my_BUCKET_CREDENTIAL
Author
Owner

@kahing commented on GitHub (Aug 11, 2015):

could you try specifying -d -d to get more debug output?

<!-- gh-comment-id:130056872 --> @kahing commented on GitHub (Aug 11, 2015): could you try specifying -d -d to get more debug output?
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ourl=http://s3.eu-central-1.amazonaws.com -d -d -f
set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777)
FUSE library version: 2.9.2
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.22
flags=0x0000f7fb
max_readahead=0x00020000
s3fs_init(2595): init
s3fs_check_service(2894): check services.
CheckBucket(2228): check a bucket.
RequestPerform(1467): connecting to URL http://koshka-owncloud.s3.eu-central-1.amazonaws.com/
RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR
RequestPerform(1600): HTTP response code =400
s3fs: Failed to access bucket.

<!-- gh-comment-id:130057089 --> @novoxd commented on GitHub (Aug 11, 2015): s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ourl=http://s3.eu-central-1.amazonaws.com -d -d -f set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777) FUSE library version: 2.9.2 nullpath_ok: 0 nopath: 0 utime_omit_ok: 0 unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0 INIT: 7.22 flags=0x0000f7fb max_readahead=0x00020000 s3fs_init(2595): init s3fs_check_service(2894): check services. CheckBucket(2228): check a bucket. RequestPerform(1467): connecting to URL http://koshka-owncloud.s3.eu-central-1.amazonaws.com/ RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR RequestPerform(1600): HTTP response code =400 s3fs: Failed to access bucket.
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

I will try to catch the http reqest to see what's happening

<!-- gh-comment-id:130057512 --> @novoxd commented on GitHub (Aug 11, 2015): I will try to catch the http reqest to see what's happening
Author
Owner

@gaul commented on GitHub (Aug 11, 2015):

@novoxudonoser Can you add -o curldbg to dump the HTTP request?

<!-- gh-comment-id:130057906 --> @gaul commented on GitHub (Aug 11, 2015): @novoxudonoser Can you add `-o curldbg` to dump the HTTP request?
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ourl=http://s3.eu-central-1.amazonaws.com -d -d -f -o curldbg
set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777)
FUSE library version: 2.9.2
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.22
flags=0x0000f7fb
max_readahead=0x00020000
s3fs_init(2595): init
s3fs_check_service(2894): check services.
CheckBucket(2228): check a bucket.
RequestPerform(1467): connecting to URL http://koshka-owncloud.s3.eu-central-1.amazonaws.com/

  • Hostname was NOT found in DNS cache

  • Trying 54.231.194.50...

  • Connected to koshka-owncloud.s3.eu-central-1.amazonaws.com (54.231.194.50) port 80 (#0)

    GET / HTTP/1.1
    Host: koshka-owncloud.s3.eu-central-1.amazonaws.com
    Accept: /
    Authorization: AWS AKIAJDIBWADNFCHS5EIA:gym3UoxBTCki7TBP0LQkbpmUvT8=
    Date: Tue, 11 Aug 2015 20:33:28 GMT

  • The requested URL returned error: 400 Bad Request

  • Closing connection 0
    RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR
    RequestPerform(1600): HTTP response code =400
    s3fs: Failed to access bucket.

<!-- gh-comment-id:130058639 --> @novoxd commented on GitHub (Aug 11, 2015): s3fs koshka-owncloud /s3mnt -ouse_cache=/tmp/cache -ourl=http://s3.eu-central-1.amazonaws.com -d -d -f -o curldbg set_moutpoint_attribute(3291): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777) FUSE library version: 2.9.2 nullpath_ok: 0 nopath: 0 utime_omit_ok: 0 unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0 INIT: 7.22 flags=0x0000f7fb max_readahead=0x00020000 s3fs_init(2595): init s3fs_check_service(2894): check services. CheckBucket(2228): check a bucket. RequestPerform(1467): connecting to URL http://koshka-owncloud.s3.eu-central-1.amazonaws.com/ - Hostname was NOT found in DNS cache - Trying 54.231.194.50... - Connected to koshka-owncloud.s3.eu-central-1.amazonaws.com (54.231.194.50) port 80 (#0) > GET / HTTP/1.1 > Host: koshka-owncloud.s3.eu-central-1.amazonaws.com > Accept: _/_ > Authorization: AWS AKIAJDIBWADNFCHS5EIA:gym3UoxBTCki7TBP0LQkbpmUvT8= > Date: Tue, 11 Aug 2015 20:33:28 GMT - The requested URL returned error: 400 Bad Request - Closing connection 0 RequestPerform(1595): ### CURLE_HTTP_RETURNED_ERROR RequestPerform(1600): HTTP response code =400 s3fs: Failed to access bucket.
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

that is strange my BUCKET_CREDENTIAL is not gym3UoxBTCki7TBP0LQkbpmUvT8= , it is the crypto hash?

<!-- gh-comment-id:130058998 --> @novoxd commented on GitHub (Aug 11, 2015): that is strange my BUCKET_CREDENTIAL is not gym3UoxBTCki7TBP0LQkbpmUvT8= , it is the crypto hash?
Author
Owner

@gaul commented on GitHub (Aug 11, 2015):

@novoxudonoser gym3UoxBTCki7TBP0LQkbpmUvT8= is the HMAC signature, not your secret key. Each request derives its unique signature from the key but does not include it in the request.

<!-- gh-comment-id:130060316 --> @gaul commented on GitHub (Aug 11, 2015): @novoxudonoser `gym3UoxBTCki7TBP0LQkbpmUvT8=` is the HMAC signature, not your secret key. Each request derives its unique signature from the key but does not include it in the request.
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

@andrewgaul ok, any idea what to do next?

<!-- gh-comment-id:130060788 --> @novoxd commented on GitHub (Aug 11, 2015): @andrewgaul ok, any idea what to do next?
Author
Owner

@kahing commented on GitHub (Aug 11, 2015):

double check that you are using s3fs from git. It's doing v2 auth but frankfurt only supports v4.

<!-- gh-comment-id:130062320 --> @kahing commented on GitHub (Aug 11, 2015): double check that you are using s3fs from git. It's doing v2 auth but frankfurt only supports v4.
Author
Owner

@kahing commented on GitHub (Aug 11, 2015):

what does which s3fs return?

<!-- gh-comment-id:130064566 --> @kahing commented on GitHub (Aug 11, 2015): what does `which s3fs` return?
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

@kahing I uset this to install:

sudo apt-get install build-essential git libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support >automake libtool
sudo apt-get install pkg-config libssl-dev # See (_3)
git clone https://github.com/s3fs-fuse/s3fs-fuse
cd s3fs-fuse/
./autogen.sh
./configure --prefix=/usr --with-openssl # See (_1)
make
sudo make install

<!-- gh-comment-id:130064926 --> @novoxd commented on GitHub (Aug 11, 2015): @kahing I uset this to install: > sudo apt-get install build-essential git libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support >automake libtool > sudo apt-get install pkg-config libssl-dev # See (_3) > git clone https://github.com/s3fs-fuse/s3fs-fuse > cd s3fs-fuse/ > ./autogen.sh > ./configure --prefix=/usr --with-openssl # See (_1) > make > sudo make install
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

@kahing

which s3fs
/usr/local/bin/s3fs

<!-- gh-comment-id:130065288 --> @novoxd commented on GitHub (Aug 11, 2015): @kahing > which s3fs > /usr/local/bin/s3fs
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

s3fs --version
Amazon Simple Storage Service File System 1.74
Copyright (C) 2010 Randy Rizun rrizun@gmail.com
License GPL2: GNU GPL version 2 http://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.

<!-- gh-comment-id:130065776 --> @novoxd commented on GitHub (Aug 11, 2015): s3fs --version Amazon Simple Storage Service File System 1.74 Copyright (C) 2010 Randy Rizun rrizun@gmail.com License GPL2: GNU GPL version 2 http://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.
Author
Owner

@kahing commented on GitHub (Aug 11, 2015):

you are using s3fs from /usr/local/bin/s3fs but you are installing s3fs to /usr/bin. Either remove the copy from /usr/local/bin or overwrite that with the new version.

<!-- gh-comment-id:130067834 --> @kahing commented on GitHub (Aug 11, 2015): you are using s3fs from `/usr/local/bin/s3fs` but you are installing `s3fs` to /usr/bin. Either remove the copy from `/usr/local/bin` or overwrite that with the new version.
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

That it! Thank you a lot man, it is time to laugh at me.
Image of Yaktocat

<!-- gh-comment-id:130074693 --> @novoxd commented on GitHub (Aug 11, 2015): That it! Thank you a lot man, it is time to laugh at me. ![Image of Yaktocat](http://static2.fjcdn.com/thumbnails/comments/You+re+my+new+favorite+comic+maker+on+here+your+comics+_ed59160fb32f6eec8e3fe36cf4ae19b7.gif)
Author
Owner

@novoxd commented on GitHub (Aug 11, 2015):

By the way, what is the bigest filesize now? and what about metadata caching?

<!-- gh-comment-id:130078113 --> @novoxd commented on GitHub (Aug 11, 2015): By the way, what is the bigest filesize now? and what about metadata caching?
Author
Owner

@kahing commented on GitHub (Aug 11, 2015):

there are max_stat_cache_size and stat_cache_expire options to control metadata caching. It's been tested with files over 5GB but I am not sure what's the biggest file size it would actually work with. Renaming large files doesn't currently work, pending https://github.com/s3fs-fuse/s3fs-fuse/pull/213

<!-- gh-comment-id:130079315 --> @kahing commented on GitHub (Aug 11, 2015): there are max_stat_cache_size and stat_cache_expire options to control metadata caching. It's been tested with files over 5GB but I am not sure what's the biggest file size it would actually work with. Renaming large files doesn't currently work, pending https://github.com/s3fs-fuse/s3fs-fuse/pull/213
Author
Owner

@gaul commented on GitHub (Aug 21, 2015):

@novoxudonoser Can you close this issue?

<!-- gh-comment-id:133283685 --> @gaul commented on GitHub (Aug 21, 2015): @novoxudonoser Can you close this issue?
Author
Owner

@goelmk commented on GitHub (May 21, 2017):

Hi @kahing,

I 'm facing the same issue and followed your conversation with @novoxudonoser. It's been very helpful until towards the end where you concluded the location / version of s3fs is incorrect for being referenced from a wrong location. That's not the case with me and hence my problem remains unresolved. But, it seems I'm very close to it. If you can help me in this regard, it will be much appreciated.

I'm getting AuthorizedHeaderMalformed error. Here is the curl response:


< Content-Type: application/xml
< Transfer-Encoding: chunked
< Date: Sun, 21 May 2017 02:42:45 GMT
< Connection: close
* Server AmazonS3 is not blacklisted
< Server: AmazonS3
<
* Closing connection 0
[INF]       curl.cpp:RequestPerform(1952): HTTP response code 400 was returned, returning EIO.
[ERR] curl.cpp:CheckBucket(2953): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AuthorizationHeaderMalformed</Code><Message>The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-east-2'</Message><Region>us-east-2</Region><RequestId>43EF790094C0617E</RequestId><HostId>2vdXX9VcRTMRuWyVVaKR3l2SSWvUEyMy6qblbjn0wIBdDrxLWGdcyb94l3+t27v/DwplBpKMrtM=</HostId></Error>
[CRT] s3fs.cpp:s3fs_check_service(3775): Could not connect wrong region us-east-1, so retry to connect region us-east-2.
[INF]       curl.cpp:CheckBucket(2914): check a bucket.
[INF]       curl.cpp:prepare_url(4205): URL is http://s3.us-east-2.amazonaws.com/mybucket/
[INF]       curl.cpp:prepare_url(4237): URL changed is http://mybucket.s3.us-east-2.amazonaws.com/
[INF]       curl.cpp:insertV4Headers(2267): computing signature [GET] [/] [] []
[INF]       curl.cpp:url_to_host(100): url is http://s3.us-east-2.amazonaws.com
* Hostname was found in DNS cache
*   Trying 52.92.77.16...
* Connected to mybucket.s3.us-east-2.amazonaws.com (52.92.77.16) port 80 (#1)
> GET / HTTP/1.1
User-Agent: s3fs/1.82 (commit hash ae4caa9; OpenSSL)

Look forward to your guidance and help in this regard.

Thanks,
Manoj

<!-- gh-comment-id:302911880 --> @goelmk commented on GitHub (May 21, 2017): Hi @kahing, I 'm facing the same issue and followed your conversation with @novoxudonoser. It's been very helpful until towards the end where you concluded the location / version of s3fs is incorrect for being referenced from a wrong location. That's not the case with me and hence my problem remains unresolved. But, it seems I'm very close to it. If you can help me in this regard, it will be much appreciated. I'm getting AuthorizedHeaderMalformed error. Here is the curl response: ``` < Content-Type: application/xml < Transfer-Encoding: chunked < Date: Sun, 21 May 2017 02:42:45 GMT < Connection: close * Server AmazonS3 is not blacklisted < Server: AmazonS3 < * Closing connection 0 [INF] curl.cpp:RequestPerform(1952): HTTP response code 400 was returned, returning EIO. [ERR] curl.cpp:CheckBucket(2953): Check bucket failed, S3 response: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AuthorizationHeaderMalformed</Code><Message>The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-east-2'</Message><Region>us-east-2</Region><RequestId>43EF790094C0617E</RequestId><HostId>2vdXX9VcRTMRuWyVVaKR3l2SSWvUEyMy6qblbjn0wIBdDrxLWGdcyb94l3+t27v/DwplBpKMrtM=</HostId></Error> [CRT] s3fs.cpp:s3fs_check_service(3775): Could not connect wrong region us-east-1, so retry to connect region us-east-2. [INF] curl.cpp:CheckBucket(2914): check a bucket. [INF] curl.cpp:prepare_url(4205): URL is http://s3.us-east-2.amazonaws.com/mybucket/ [INF] curl.cpp:prepare_url(4237): URL changed is http://mybucket.s3.us-east-2.amazonaws.com/ [INF] curl.cpp:insertV4Headers(2267): computing signature [GET] [/] [] [] [INF] curl.cpp:url_to_host(100): url is http://s3.us-east-2.amazonaws.com * Hostname was found in DNS cache * Trying 52.92.77.16... * Connected to mybucket.s3.us-east-2.amazonaws.com (52.92.77.16) port 80 (#1) > GET / HTTP/1.1 User-Agent: s3fs/1.82 (commit hash ae4caa9; OpenSSL) ``` Look forward to your guidance and help in this regard. Thanks, Manoj
Author
Owner

@gaul commented on GitHub (May 21, 2017):

@goelmk Please open a new issue and include the flags you launched s3fs with.

<!-- gh-comment-id:302915307 --> @gaul commented on GitHub (May 21, 2017): @goelmk Please open a new issue and include the flags you launched s3fs with.
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#125
No description provided.