-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3fs - how to correct connect and get access to BTFS S3 storage node? #382
Comments
Hi, @dipol0; as to read the mounted file, the error may caused by |
@CrCati , tnx for advise. may be i try it )) PS + when a ise native aws-cli (aws) for upload file to BTFS-S3 - all fine
but then try download from get fail:
in btfs daeon log see:
aws-cli/2.13.22 Python/3.11.5 Linux/6.2.0-33-generic exe/x86_64.ubuntu.22 prompt/off |
Hi, @dipol0; I can't reproduce it. I used the aws-cli to upload and download different files, and all success: aws-cli/1.29.57 Python/3.11.5 Darwin/22.5.0 botocore/1.31.57 |
@CrCati , you can show/share you BTFS node config file? Without critical info ;)
|
My node is using pre-compiled version: https://github.com/bittorrent/go-btfs/releases/download/btfs-v2.3.3/btfs-linux-amd64 |
@CrCati , tnx. Hmmm...very strange. I have same version pre-compiled 2.3.3-linux-amd64. UPD If need get BIG size file back from S3 to local i can like this (it worked for me):
I dont profi and dont know is issue awscli or btfs S3-API realization )) Read AWS doc - Downloading an object - Using the AWS CLI May be useful for somebody )) @CrCati , if you can confirm my investigation ? Try upload big file ~200..300Mb to btfs and try download it back: Tnx. UPD a little off topic))
|
Hi, @dipol0; I've tried that; the extra_args 'range' is not supported in this version. So, the 'aws cp' will get the 'A header you provided implies functionality that is not implemented' message. The feature to support more header formats is on the way. You can use 'aws get-object' for now. |
I'll close this GitHub issue now; if you have more information to share, please feel free to reopen it. |
Hi all.
I fount when go-btfs now have S3 srorage mode. I configure it and it work over WebUI. Files uploads/downloads fine (strange- when delete it - dash dont show decrease free space on storage ??? - may be data store on BTFS a little time? )
s3fs version - Amazon Simple Storage Service File System V1.90 (commit:unknown) with GnuTLS(gcrypt)
Main Q: i try mount S3 btfs storage bucket on Ubuntu 22.04 with s3fs. But cant read/write to mounted storage. Only see content list.
Install s3fs use apt: apt install s3fs
I create bucket "iso-images" and upload 1 iso-image file over WebUI:
s3fs iso-images:/ /media/btfs-s3 -o passwd_file=/home/manager/.passwd-s3fs,nonempty -o use_path_request_style -o host=http://192.168.0.50:6001/
Storage mounted and i can see content in Midnight commander? but cant r/w from/to it.
Try copy file to it get:
cp: cant close '/media/btfs-s3/awscliv2.zip': Operation not permitted.
In LOG btfs i see (when try copy file to bucket):
or then try read from it:
What wrong or my mistake ??? Or s2fs don't work correct with btfs ???
+++ I see this in dashboard - "You can use AWS CLI to interact with BTFS's S3-compatible API"
May be anybody can give link to how use AWS CLI with btfs-s3 ? How to configure access...etc...
PS btfs config file for S3:
may be need add someone for HTTPHeaders for enable access over s3fs ?
Tnx.
Configure:
aws configure --profile=BTFS-S3
where BTFS-S3 - any name you choice (it can be any value)
Enter:
and use:
copy local file to bucket:
see in webui:
The text was updated successfully, but these errors were encountered: