kahing / goofys

a high-performance, POSIX-ish Amazon S3 file system written in Go
Apache License 2.0
5.18k stars 522 forks source link

mounting, listing and reading file works, writing doesn't #794

Open chs-kasvu opened 5 months ago

chs-kasvu commented 5 months ago

I have tried using dedicated account for my bucket but also root account, in case it was a privilege mistake with said dedicated account. Current existing files have been uploaded through AWS UI. Also I notice that adding files this way doesn't get noticed, and files won't appear in my mount. I need to unmount and mount again to see them. I can deal with that somehow, but not being able to write files is a much bigger issue.

$ ./goofys pipelinejobs shared $ ls -lA shared/tmp/ drwxr-xr-x 2 ubuntu ubuntu 4096 Apr 11 09:15 ./ drwxr-xr-x 2 ubuntu ubuntu 4096 Apr 11 09:15 ../ -rw-r--r-- 1 ubuntu ubuntu 1659377521 Apr 11 07:54 file1.bin -rw-r--r-- 1 ubuntu ubuntu 25427 Apr 11 09:14 file2.jpeg -rw-r--r-- 1 ubuntu ubuntu 2578 Apr 11 09:15 file3.jpg $ touch shared/tmp/test.txt touch: failed to close 'shared/tmp/test.txt': Permission denied

I get same error with vi or nano: "Permission denied".

I have tried doing the same as root, but it makes no difference.

kahing commented 1 month ago

does your credentials have write permission to the bucket? if you enable --debug_s3 what does it say?