[GH-ISSUE #760] Return 400 error code #436

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

Originally created by @TreHack on GitHub (May 15, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/760

Version of s3fs being used (s3fs --version)

V1.83

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

2.9.3

System information (uname -r)

3.16.0-4-amd64

Distro (cat /etc/issue)

Debian GNU/Linux 8 \n \l

s3fs command line used (if applicable)

s3fs hdg1-testlab20 /root/s3dir -o passwd_file=~/.passwd-s3fs -o url=http://s3.nie.netease.com -o use_path_request_style  -o dbglevel=info -f -o ibm_iam_auth -o curldbg -o allow_other

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

[CRT] s3fs.cpp:set_s3fs_log_level(272): change debug level from [CRT] to [INF] 
[INF]     s3fs.cpp:set_mountpoint_attribute(4212): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40755)
[INF] s3fs.cpp:s3fs_init(3378): init v1.83(commit:dbe98dc) with OpenSSL
[INF] s3fs.cpp:s3fs_check_service(3754): check services.
* Hostname was NOT found in DNS cache
*   Trying 168.1.35.167...
* Connected to iam.bluemix.net (168.1.35.167) port 443 (#0)
* found 174 certificates in /etc/ssl/certs/ca-certificates.crt
*        server certificate verification OK
*        common name: *.bluemix.net (matched)
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: RSA
*        certificate version: #3
*        subject: C=US,ST=New York,L=Armonk,O=International Business Machines Corporation,CN=*.bluemix.net
*        start date: Tue, 16 May 2017 00:00:00 GMT

*        expire date: Thu, 13 Aug 2020 12:00:00 GMT

*        issuer: C=US,O=DigiCert Inc,CN=DigiCert SHA2 Secure Server CA
*        compression: NULL
*        cipher: AES-256-GCM
*        MAC: AEAD
> POST /oidc/token HTTP/1.1
User-Agent: s3fs/1.83 (commit hash dbe98dc; OpenSSL)
Host: iam.bluemix.net
Accept: */*
Authorization: Basic Yng6Yng=
Content-Length: 121
Content-Type: application/x-www-form-urlencoded

< HTTP/1.1 400 Bad Request
< X-Backside-Transport: FAIL FAIL
< Connection: Keep-Alive
< Transfer-Encoding: chunked
< Cache-Control: max-age=0, no-cache, no-store
< Content-Language: en-US
< Content-Type: application/json
< Date: Tue, 15 May 2018 06:20:56 GMT
< Expires: Tue, 15 May 2018 06:20:56 GMT
< Pragma: no-cache
* Server nginx is not blacklisted
< Server: nginx
< Set-Cookie: sessioncookie=27ae2038772aac3ae649bcced33cb616; Path=/; Secure; HttpOnly
< Transaction-Id: 364466407
< X-Powered-By: Servlet/3.1
< X-Global-Transaction-ID: 364466407
* HTTP error before end of send, stop sending
< 
* Closing connection 0
[INF]       curl.cpp:RequestPerform(2069): HTTP response code 400 was returned, returning EIO.
[CRT] s3fs.cpp:s3fs_check_service(3758): Failed to check IAM role name().
[ERR] s3fs.cpp:s3fs_exit_fuseloop(3368): Exiting FUSE event loop due to errors

[INF] s3fs.cpp:s3fs_destroy(3441): destroy
[WAN] s3fs.cpp:s3fs_destroy(3445): Could not release curl library.

Details about issue

I hava run echo AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY > ~/.passwd-s3fs , the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are correct. but return 400 response. any ideas? Thank you!

Originally created by @TreHack on GitHub (May 15, 2018). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/760 #### Version of s3fs being used (s3fs --version) V1.83 #### Version of fuse being used (pkg-config --modversion fuse) 2.9.3 #### System information (uname -r) 3.16.0-4-amd64 #### Distro (cat /etc/issue) Debian GNU/Linux 8 \n \l #### s3fs command line used (if applicable) ``` s3fs hdg1-testlab20 /root/s3dir -o passwd_file=~/.passwd-s3fs -o url=http://s3.nie.netease.com -o use_path_request_style -o dbglevel=info -f -o ibm_iam_auth -o curldbg -o allow_other ``` #### 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_ ``` [CRT] s3fs.cpp:set_s3fs_log_level(272): change debug level from [CRT] to [INF] [INF] s3fs.cpp:set_mountpoint_attribute(4212): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40755) [INF] s3fs.cpp:s3fs_init(3378): init v1.83(commit:dbe98dc) with OpenSSL [INF] s3fs.cpp:s3fs_check_service(3754): check services. * Hostname was NOT found in DNS cache * Trying 168.1.35.167... * Connected to iam.bluemix.net (168.1.35.167) port 443 (#0) * found 174 certificates in /etc/ssl/certs/ca-certificates.crt * server certificate verification OK * common name: *.bluemix.net (matched) * server certificate expiration date OK * server certificate activation date OK * certificate public key: RSA * certificate version: #3 * subject: C=US,ST=New York,L=Armonk,O=International Business Machines Corporation,CN=*.bluemix.net * start date: Tue, 16 May 2017 00:00:00 GMT * expire date: Thu, 13 Aug 2020 12:00:00 GMT * issuer: C=US,O=DigiCert Inc,CN=DigiCert SHA2 Secure Server CA * compression: NULL * cipher: AES-256-GCM * MAC: AEAD > POST /oidc/token HTTP/1.1 User-Agent: s3fs/1.83 (commit hash dbe98dc; OpenSSL) Host: iam.bluemix.net Accept: */* Authorization: Basic Yng6Yng= Content-Length: 121 Content-Type: application/x-www-form-urlencoded < HTTP/1.1 400 Bad Request < X-Backside-Transport: FAIL FAIL < Connection: Keep-Alive < Transfer-Encoding: chunked < Cache-Control: max-age=0, no-cache, no-store < Content-Language: en-US < Content-Type: application/json < Date: Tue, 15 May 2018 06:20:56 GMT < Expires: Tue, 15 May 2018 06:20:56 GMT < Pragma: no-cache * Server nginx is not blacklisted < Server: nginx < Set-Cookie: sessioncookie=27ae2038772aac3ae649bcced33cb616; Path=/; Secure; HttpOnly < Transaction-Id: 364466407 < X-Powered-By: Servlet/3.1 < X-Global-Transaction-ID: 364466407 * HTTP error before end of send, stop sending < * Closing connection 0 [INF] curl.cpp:RequestPerform(2069): HTTP response code 400 was returned, returning EIO. [CRT] s3fs.cpp:s3fs_check_service(3758): Failed to check IAM role name(). [ERR] s3fs.cpp:s3fs_exit_fuseloop(3368): Exiting FUSE event loop due to errors [INF] s3fs.cpp:s3fs_destroy(3441): destroy [WAN] s3fs.cpp:s3fs_destroy(3445): Could not release curl library. ``` ### Details about issue I hava run ` echo AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY > ~/.passwd-s3fs` , the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are correct. but return 400 response. any ideas? Thank you!
kerem closed this issue 2026-03-04 01:45:34 +03:00
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#436
No description provided.