mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #485] Unable to write to mounted bucket #271
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#271
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MgFrobozz on GitHub (Oct 14, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/485
This is in Ubuntu 14.04.5 LTS using
f38aaa3d0eMy intent is to create a mount that www-data can use for an upload location.
I'm running the mount below ("xxx" is the obscured bucket name, "zzz" the obscured home directory).
User and group for www-data are 33.
Fuse correctly sets the directory owner and permission:
The bucket contains a single folder "avatars", created from the S3 console, which shows in ubuntu as ...
... with this error in the log:
When I try to copy a file (foo.txt, containing "foo") to upload, it shows ...
... with the same multi_head_retry_callback error.
After writing foo.txt, the S3 console shows foo.txt as size 0 bytes.
I am able to upload another 3-byte file (foo_2.txt) in the S3 console, which shows up as size 3 bytes.
Any suggestions for further debug are greatly appreciated.
@MgFrobozz commented on GitHub (Oct 17, 2016):
Ignore this issue. I had the permissions for the bucket set to include "Any authenticated AWS user". I had added a user under IAM, gotten that user's credentials, used them to mount, and got the results above. Apparently "Any authenticated AWS user" means "Any AWS user authenticated under IAM who is also a member of a group with AmazonS3FullAccess permissions".
Once I'd created that group in IAM, and then added the user to that group, I was able to list/read/write/delete files normally ...