geesefs icon indicating copy to clipboard operation
geesefs copied to clipboard

Unable to mount OCI Object Storage

Open akhayyat opened this issue 1 year ago • 8 comments

I'm trying to use geesefs with Oracle Cloud (OCI) Object Storage.

I can use s3fs, but not geesefs:

s3fs -o url=https://<namespace>.compat.objectstorage.<region>.oraclecloud.com -o use_path_request_style -o passwd_file=s3fs-credentials <bucket> <mount-point>

Works!

./geesefs --endpoint https://<namespace>.compat.objectstorage.<region>.oraclecloud.com --debug_s3 --debug_fuse --log-file log.txt -o use_path_request_style <bucket> <mount-point>

or

AWS_ACCESS_KEY_ID=<id> AWS_SECRET_ACCESS_KEY='<key>' ./geesefs --endpoint https://<namespace>.compat.objectstorage.<region>.oraclecloud.com --debug_s3 --debug_fuse --log-file log.txt <bucket> <mount-point>

Log:

s3.DEBUG HEAD https://<namespace>.compat.objectstorage.<region>.oraclecloud.com/<bucket> = 404 []
s3.DEBUG Opc-Request-Id = [jed-1:j_JLhhEZA3g17ufgrdzPoWTN6AsLA1nz8ZREULNI7QWHAs_PSYsMSpRomoTg2OiF]
s3.DEBUG X-Api-Id = [s3-compatible]
s3.DEBUG X-Amz-Request-Id = [jed-1:j_JLhhEZA3g17ufgrdzPoWTN6AsLA1nz8ZREULNI7QWHAs_PSYsMSpRomoTg2OiF]
s3.DEBUG Date = [Sat, 13 Aug 2022 12:36:07 GMT]
main.ERROR Unable to access '<bucket>': bucket <bucket> does not exist
main.FATAL Mounting file system: Mount: initialization failed
main.FATAL Unable to mount file system, see syslog for details

akhayyat avatar Aug 13 '22 12:08 akhayyat

Hi, you should probably pass the actual S3 bucket name instead of <bucket>?

vitalif avatar Sep 02 '22 14:09 vitalif

Hi, you should probably pass the actual S3 bucket name instead of <bucket>?

I am. <bucket> is just a placeholder in this issue description.

akhayyat avatar Sep 02 '22 23:09 akhayyat

Ah, ok. Does OCI Object Storage support https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html ?

vitalif avatar Sep 02 '22 23:09 vitalif

It says it does, https://docs.oracle.com/iaas/api/#/en/s3objectstorage/latest/Bucket/HeadBucket - but why does it give 404 then? .. Can you try to make the same request manually / with boto3 or something like that?

vitalif avatar Sep 02 '22 23:09 vitalif