weixin_39555415
weixin_39555415
2021-01-08 15:15

Alibaba Cloud OSS Compatibility

Alibaba Cloud announced the compatibility with S3 API for its OSS. However, I'm not having much good luck making goofys work with it.

I'm running goofys --endpoint https://oss-ap-southeast-2.aliyuncs.com goofyra /Users/roura356a/Desktop/goofyra-oss with macOS 10.13.4 and goofys 0.19.0-943e017724ea820eb4185419ef3c41d6f921a324 and it outputs the following to syslog:


main.ERROR Unable to access 'goofyra': permission denied

Any idea for what to do next and what to try?

该提问来源于开源项目:kahing/goofys

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

11条回答

  • m0_37561016 m0_37561016 1月前

    i mount the oss success , but when i ls the mount point , i can not get anything . other way , when i cp files to mount point , i can get it in oss bucket . anyone have  have the same error , or have solution?

    点赞 评论 复制链接分享
  • weixin_39999209 weixin_39999209 3月前

    could you post the output with --debug_s3?

    点赞 评论 复制链接分享
  • weixin_39555415 weixin_39555415 3月前

    Is the output going to syslog? Or directly in the same terminal?

    点赞 评论 复制链接分享
  • weixin_39555415 weixin_39555415 3月前

    Adding the --debug_s3 part /var/log/system.log throws the following:

    
    Jul  9 09:09:39 potato /usr/local/bin/goofys[15447]: main.ERROR Unable to access 'goofyra': permission denied
    Jul  9 09:09:39 potato /usr/local/bin/goofys[15447]: main.FATAL Mounting file system: Mount: initialization failed
    
    点赞 评论 复制链接分享
  • weixin_39999209 weixin_39999209 3月前

    seems like there's some issue logging the s3 debug output to syslog. Could you try running goofys in the foreground?

    点赞 评论 复制链接分享
  • weixin_39555415 weixin_39555415 3月前

    Sorry, I don't know what do you mean with running it in the foreground. Can you explain this? I'm also willing to create a bucket and credentials for you in my account if that helps you in the development. I'm an Alibaba Cloud MVP so I can work closely with you to help in what you need.

    点赞 评论 复制链接分享
  • weixin_39999209 weixin_39999209 3月前

    add -f in the goofys command line, and pipe the output to a file.

    点赞 评论 复制链接分享
  • weixin_39999209 weixin_39999209 3月前

    But sure, you can also email me the credential if I will be happy to take a look. You can find my email in my profile

    点赞 评论 复制链接分享
  • weixin_39555415 weixin_39555415 3月前

    The output using -f is:

    
    2018/07/09 11:15:23.324790 s3.DEBUG HEAD https://oss-ap-southeast-2.aliyuncs.com/xinfyrabucket = 403 []
    2018/07/09 11:15:23.327257 s3.DEBUG Content-Type = [application/xml]
    2018/07/09 11:15:23.327271 s3.DEBUG Content-Length = [308]
    2018/07/09 11:15:23.327282 s3.DEBUG Connection = [keep-alive]
    2018/07/09 11:15:23.327293 s3.DEBUG X-Oss-Request-Id = [5B42B72BF0905F6B5DDAC374]
    2018/07/09 11:15:23.327303 s3.DEBUG Server = [AliyunOSS]
    2018/07/09 11:15:23.327313 s3.DEBUG Date = [Mon, 09 Jul 2018 01:15:23 GMT]
    2018/07/09 11:15:23.330970 s3.DEBUG DEBUG: Request s3/HeadObject Details:
    ---[ REQUEST POST-SIGN ]-----------------------------
    HEAD /xinfyrabucket/ci0rfbxow7arlunpuzhkl942xej7f9oy HTTP/1.1
    Host: oss-ap-southeast-2.aliyuncs.com
    User-Agent: aws-sdk-go/1.8.25 (go1.9.2; darwin; amd64)
    Authorization: AWS4-HMAC-SHA256 Credential=LTAI2fN0wdYf8pEm/20180709/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=155f881086eb2f168304c63efed78b81723fa05c971d6fb296f3e32d5120d7a0
    X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    X-Amz-Date: 20180709T011523Z
    
    
    -----------------------------------------------------
    2018/07/09 11:15:23.350375 s3.DEBUG DEBUG: Response s3/HeadObject Details:
    ---[ RESPONSE ]--------------------------------------
    HTTP/1.1 403 Forbidden
    Content-Length: 263
    Connection: keep-alive
    Content-Type: application/xml
    Date: Mon, 09 Jul 2018 01:15:23 GMT
    Server: AliyunOSS
    X-Amz-Request-Id: 5B42B72BF0905F6B5DDAC377
    
    
    -----------------------------------------------------
    2018/07/09 11:15:23.350445 s3.DEBUG DEBUG: Validate Response s3/HeadObject failed, not retrying, error Forbidden: Forbidden
        status code: 403, request id: 5B42B72BF0905F6B5DDAC377, host id:
    2018/07/09 11:15:23.350467 s3.INFO Falling back to v2 signer
    2018/07/09 11:15:23.350813 s3.DEBUG DEBUG: Request s3/HeadObject Details:
    ---[ REQUEST POST-SIGN ]-----------------------------
    HEAD /xinfyrabucket/629qps0udhxmcduh82yxwvfs146zt76f HTTP/1.1
    Host: oss-ap-southeast-2.aliyuncs.com
    User-Agent: aws-sdk-go/1.8.25 (go1.9.2; darwin; amd64)
    Authorization: AWS LTAI2fN0wdYf8pEm:8NfsFnyEASjgvlCOtdVp4/f6ous=
    X-Amz-Date: Mon, 9 Jul 2018 01:15:23 +0000
    
    
    -----------------------------------------------------
    2018/07/09 11:15:23.367850 s3.DEBUG DEBUG: Response s3/HeadObject Details:
    ---[ RESPONSE ]--------------------------------------
    HTTP/1.1 403 Forbidden
    Content-Length: 263
    Connection: keep-alive
    Content-Type: application/xml
    Date: Mon, 09 Jul 2018 01:15:23 GMT
    Server: AliyunOSS
    X-Amz-Request-Id: 5B42B72BF0905F6B5DDAC37D
    
    
    -----------------------------------------------------
    2018/07/09 11:15:23.367897 s3.DEBUG DEBUG: Validate Response s3/HeadObject failed, not retrying, error Forbidden: Forbidden
        status code: 403, request id: 5B42B72BF0905F6B5DDAC37D, host id:
    2018/07/09 11:15:23.367920 main.ERROR Unable to access 'xinfyrabucket': permission denied
    2018/07/09 11:15:23.367933 main.FATAL Mounting file system: Mount: initialization failed
    

    I'll create a bucket and credentials for you in the following hours.

    [edited] I sent you the credentials.

    点赞 评论 复制链接分享
  • weixin_39999209 weixin_39999209 3月前

    Looks like the problem is because OSS only allows virtual host style access: https://www.alibabacloud.com/help/doc-detail/64919.htm while goofys uses path based access. AWS S3 and every other S3 implementation I've tested supports path based access, so OSS is not exactly S3 compatible.

    点赞 评论 复制链接分享
  • weixin_39555415 weixin_39555415 3月前

    Working on a solution, . Thanks for all the assistance.

    点赞 评论 复制链接分享