简体   繁体   English

无法使用 RIOFS 在 EC2 上安装 S3 - HTTP 错误:400(错误请求)

[英]Unable to mount S3 on EC2 using RIOFS - HTTP error: 400 (Bad Request)

I am trying to mount S3 bucket on AWS EC2 instance using RIOFS.我正在尝试使用 RIOFS 在 AWS EC2 实例上安装 S3 存储桶。 I am unsuccessful.我没有成功。

Here is the logs这是日志

12:47:53 [main] (main main.c:753) Using config file: /home/ubuntu/.config/riofs/riofs.conf.xml
12:47:53 [con] (http_connection_init http_connection.c:79) [con: 0x561ff22c2be0] Connecting to s3.amazonaws.com:80
12:47:53 [con] (http_connection_make_request http_connection.c:814) [con: 0x561ff22c2be0] GET /csv-test/?acl  bucket: csv-test, host: s3.amazonaws.com, out_len: 0
12:47:53 [con] (http_connection_on_response_cb http_connection.c:464) [con: 0x561ff22c2be0] Got HTTP response from server! (160msec)
12:47:53 [con] (http_connection_on_response_cb http_connection.c:544) [con: 0x561ff22c2be0] New URL: csv-test.s3.amazonaws.com
12:47:53 [con] (http_connection_init http_connection.c:79) [con: 0x561ff22c2be0] Connecting to csv-test.s3.amazonaws.com:80
12:47:53 [con] (http_connection_on_close http_connection.c:196) [con: 0x561ff22c2be0] Connection closed !
12:47:53 [con] (http_connection_make_request http_connection.c:814) [con: 0x561ff22c2be0] GET /?acl  bucket: csv-test, host: csv-test.s3.amazonaws.com, out_len: 0
12:47:53 [con] (http_connection_on_close http_connection.c:196) [con: 0x561ff22c2be0] Connection closed !
12:47:53 [con] (http_connection_on_response_cb http_connection.c:464) [con: 0x561ff22c2be0] Got HTTP response from server! (9msec)
12:47:53 [con] (http_connection_on_response_cb http_connection.c:591) [con: 0x561ff22c2be0] Server returned HTTP error: 400 (Bad Request). AWS message: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.
12:47:53 [con]  (http_connection_on_response_cb http_connection.c:602) [con: 0x561ff22c2be0] Server returned HTTP error: 400 (Bad Request)! Retry ID: 1 of 20

Is there a way to enable the use of AWS4-HMAC-SHA256 in RIOFS connection.有没有办法在 RIOFS 连接中启用AWS4-HMAC-SHA256 I am trying this in Frankfurt eu-central-1 and also in London eu-west-2 and unsuccessful in both the regions.我正在法兰克福eu-central-1和伦敦eu-west-2尝试此操作,但在这两个地区均未成功。

I also tried using s3fs and ended with unable to access bucket error but couldn't get detailed logs like riofs which pointed out the actual error.我还尝试使用 s3fs 并以无法访问存储桶错误结束,但无法获得详细的日志,如指出实际错误的 riofs。

AWS4-HMAC-SHA256 is Signature Version 4 and only few regions support it. AWS4-HMAC-SHA256 是 Signature Version 4,只有少数地区支持。 I tested this against Frankfurt eu-central-1 and London eu-west-2.我针对法兰克福 eu-central-1 和伦敦 eu-west-2 进行了测试。 Both these region doesn't work.这两个区域都不起作用。 It works only on US-EAST-1 N. Virginia region.它仅适用于 US-EAST-1 N. Virginia 区域。

I could successfully mount the S3 bucket created on us-east-1 on EC2.我可以成功地将在 us-east-1 上创建的 S3 存储桶安装到 EC2 上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 aws S3 400 错误请求 - aws S3 400 Bad Request api 从 aws s3 cloudfront 到 ec2 的请求 403 错误 - api request 403 error from aws s3 cloudfront to ec2 我可以使用 Samba(smb) 将安装到 Linux EC2 的 S3 存储桶安装到 Windows EC2 吗? - Can I mount a S3 bucket mounted to Linux EC2 to a Windows EC2 with Samba(smb)? 尝试使用 preSignedUrl 将图像上传到 aws s3 存储桶时出现 400 错误请求错误。 出了什么问题? - I am getting 400 bad request error while trying to upload image to aws s3 bucket using preSignedUrl. What is going wrong? Django AWS S3 - 400“错误请求”- 无法访问存储桶中的图像 - Django AWS S3 - 400 "Bad Request" - Can't access image from bucket http 对 ec2 aws 服务器的请求不工作 - http request with ec2 aws server is not working MERN:使用 POST 等待获取时收到 400 错误错误请求 - MERN: Getting 400 error bad request on await fetch using POST 如何使用 AWS CLI 将文件从 EC2 移动到 S3? 一旦传输到 S3,文件应从 EC2 中删除 - How to move files from EC2 to S3 using AWS CLI ? The files should be deleted from EC2 once transferred to S3 为什么这个调用在使用 session.mount() 时返回 400 错误请求 - Why this call return 400 bad request when using session.mount() 将文件从 ec2 复制到 s3 - Copy files from ec2 to s3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM