kahing / goofys

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

mv file to mount-point failed #305

Open erician opened 6 years ago

erician commented 6 years ago

eric@eric-Vostro-270:~/Documents/jd/goofys$ ls aaa filelist11 filelist12 filelist13 filelist14 goofys mountpoint test eric@eric-Vostro-270:~/Documents/jd/goofys$ mv aaa mountpoint/ mv: preserving permissions for ‘mountpoint/aaa’: Permission denied eric@eric-Vostro-270:~/Documents/jd/goofys$

kahing commented 6 years ago

please include out of --debug_s3 and --debug_fuse

onip commented 5 years ago

# goofys -f --debug_fuse --debug_s3 --file-mode 0644 --dir-mode 0755 --region=<region> <bucket> <mountpoint>/

# mv no_cache_aggretation.txt mountpoint/

2019/02/04 11:28:20.419797 fuse.DEBUG <-- LookUpInode 1 no_cache_aggregation.txt no such file or directory
2019/02/04 11:28:20.419830 fuse.DEBUG Op 0x00000005        connection.go:481] -> Error: "no such file or directory"
2019/02/04 11:28:20.419948 fuse.DEBUG Op 0x00000006        connection.go:396] <- CreateFile (parent 1, name "no_cache_aggregation.txt")
2019/02/04 11:28:20.420250 fuse.DEBUG Create 1  [no_cache_aggregation.txt]
2019/02/04 11:28:20.420277 fuse.DEBUG <-- CreateFile 2 no_cache_aggregation.txt []
2019/02/04 11:28:20.420307 fuse.DEBUG Op 0x00000006        connection.go:479] -> OK (inode 2)
2019/02/04 11:28:20.420963 fuse.DEBUG Op 0x00000007        connection.go:396] <- GetXattr (inode 2, name "security.capability", name security.capability)
2019/02/04 11:28:20.421325 fuse.DEBUG GetXattr 2 no_cache_aggregation.txt [security.capability]
2019/02/04 11:28:20.421357 fuse.DEBUG Op 0x00000007        connection.go:481] -> Error: "no data available"
2019/02/04 11:28:20.421436 fuse.DEBUG Op 0x00000008        connection.go:396] <- WriteFile (inode 2, handle 1, offset 0, 1266 bytes)
2019/02/04 11:28:20.421668 fuse.DEBUG WriteFile 2 no_cache_aggregation.txt [0 1266]
2019/02/04 11:28:20.421833 main.DEBUG amount of available memory: 17980
2019/02/04 11:28:20.421904 main.DEBUG amount of allocated memory: 10 2
2019/02/04 11:28:20.421916 main.DEBUG using up to 1799 5MB buffers, now is 0
2019/02/04 11:28:20.424742 fuse.DEBUG Op 0x00000008        connection.go:479] -> OK ()
2019/02/04 11:28:20.425380 fuse.DEBUG Op 0x00000009        connection.go:396] <- SetInodeAttributes (inode 2, atime 2019-01-30 09:38:46.108362592 +0000 UTC, mtime 2019-01-24 08:47:44.997210241 +0000 UTC)
2019/02/04 11:28:20.425686 fuse.DEBUG GetAttributes 2 no_cache_aggregation.txt []
2019/02/04 11:28:20.425713 fuse.DEBUG Op 0x00000009        connection.go:479] -> OK ()
2019/02/04 11:28:20.425817 fuse.DEBUG Op 0x0000000a        connection.go:396] <- GetXattr (inode 2, name "security.capability", name security.capability)
2019/02/04 11:28:20.426104 fuse.DEBUG GetXattr 2 no_cache_aggregation.txt [security.capability]
2019/02/04 11:28:20.426144 fuse.DEBUG Op 0x0000000a        connection.go:481] -> Error: "no data available"
2019/02/04 11:28:20.426214 fuse.DEBUG Op 0x0000000b        connection.go:396] <- GetInodeAttributes (inode 2)
2019/02/04 11:28:20.426515 fuse.DEBUG GetAttributes 2 no_cache_aggregation.txt []
2019/02/04 11:28:20.426552 fuse.DEBUG Op 0x0000000b        connection.go:479] -> OK ()
2019/02/04 11:28:20.426621 fuse.DEBUG Op 0x0000000c        connection.go:396] <- SetInodeAttributes (inode 2)
2019/02/04 11:28:20.426872 fuse.DEBUG GetAttributes 2 no_cache_aggregation.txt []
2019/02/04 11:28:20.426901 fuse.DEBUG Op 0x0000000c        connection.go:479] -> OK ()
2019/02/04 11:28:20.426996 fuse.DEBUG Op 0x0000000d        connection.go:396] <- SetXattr (inode 2, name "system.posix_acl_access", name system.posix_acl_access)
2019/02/04 11:28:20.427090 fuse.DEBUG RemoveXattr 2 no_cache_aggregation.txt [system.posix_acl_access]
2019/02/04 11:28:20.427119 fuse.DEBUG Op 0x0000000d        connection.go:481] -> Error: "permission denied"
2019/02/04 11:28:20.427192 fuse.DEBUG Op 0x0000000e        connection.go:396] <- SetXattr (inode 2, name "system.posix_acl_access", name system.posix_acl_access)
2019/02/04 11:28:20.427482 fuse.DEBUG RemoveXattr 2 no_cache_aggregation.txt [system.posix_acl_access]
2019/02/04 11:28:20.427513 fuse.DEBUG Op 0x0000000e        connection.go:481] -> Error: "permission denied"
2019/02/04 11:28:20.427588 fuse.DEBUG Op 0x0000000f        connection.go:396] <- SetInodeAttributes (inode 2, mode -rw-rw-r--)
2019/02/04 11:28:20.427869 fuse.DEBUG GetAttributes 2 no_cache_aggregation.txt []
2019/02/04 11:28:20.427902 fuse.DEBUG Op 0x0000000f        connection.go:479] -> OK ()
2019/02/04 11:28:20.428188 fuse.DEBUG Op 0x00000010        connection.go:396] <- FlushFile (inode 2)
2019/02/04 11:28:20.428550 fuse.DEBUG FlushFile 2 no_cache_aggregation.txt []
2019/02/04 11:28:20.428869 s3.DEBUG DEBUG: Request s3/PutObject Details:
afong-fog commented 3 years ago

Hello,

I know this issue is old but I wanted to check in on this. I am coming across the same issue

-----------------------------------------------------
2021/11/04 18:53:41.208398 s3.DEBUG DEBUG: Validate Response s3/HeadObject failed, not retrying, error NotFound: Not Found
    status code: 404, request id: JJVJE6J1EER7JPHP, host id: 8zWC06ikW4/bk3rr1i+rUvsmZAvyZWn+iwt4dOz7kHzyAoOLLKsdvg0dV+vwX6ZQ78OwgN5vfec=
2021/11/04 18:53:41.208424 s3.DEBUG HEAD test.txt = no such file or directory
2021/11/04 18:53:41.208438 fuse.DEBUG <-- LookUpInode 1 test.txt no such file or directory
2021/11/04 18:53:41.208471 fuse.DEBUG Op 0x00000070        connection.go:493] -> Error: "no such file or directory"
2021/11/04 18:53:41.208560 fuse.DEBUG Op 0x00000072        connection.go:408] <- CreateFile (parent 1, name "test.txt")
2021/11/04 18:53:41.208805 fuse.DEBUG Create 1  [test.txt]
2021/11/04 18:53:41.209039 fuse.DEBUG <-- CreateFile 13 test.txt []
2021/11/04 18:53:41.209172 fuse.DEBUG Op 0x00000072        connection.go:491] -> OK (inode 13)
2021/11/04 18:53:41.209399 fuse.DEBUG Op 0x00000074        connection.go:408] <- SetInodeAttributes (inode 13, atime 2021-11-04 18:53:36.478429692 +0000 UTC, mtime 2021-11-04 18:53:36.478429692 +0000 UTC)
2021/11/04 18:53:41.209638 fuse.DEBUG GetAttributes 13 test.txt []
2021/11/04 18:53:41.209725 fuse.DEBUG Op 0x00000074        connection.go:491] -> OK ()
2021/11/04 18:53:41.209939 fuse.DEBUG Op 0x00000076        connection.go:408] <- SetXattr (inode 13, name "system.posix_acl_access", name system.posix_acl_access)
2021/11/04 18:53:41.210179 fuse.DEBUG SetXattr 13 test.txt [system.posix_acl_access]
2021/11/04 18:53:41.210263 fuse.DEBUG Op 0x00000076        connection.go:493] -> Error: "operation not permitted"
2021/11/04 18:53:41.210384 fuse.ERROR *fuseops.SetXattrOp error: operation not permitted
2021/11/04 18:53:41.210529 fuse.DEBUG Op 0x00000078        connection.go:408] <- SetXattr (inode 13, name "system.posix_acl_access", name system.posix_acl_access)
2021/11/04 18:53:41.210843 fuse.DEBUG SetXattr 13 test.txt [system.posix_acl_access]
2021/11/04 18:53:41.210932 fuse.DEBUG Op 0x00000078        connection.go:493] -> Error: "operation not permitted"
2021/11/04 18:53:41.211042 fuse.ERROR *fuseops.SetXattrOp error: operation not permitted
2021/11/04 18:53:41.211173 fuse.DEBUG Op 0x0000007a        connection.go:408] <- SetInodeAttributes (inode 13, mode -rw-r--r--)
2021/11/04 18:53:41.211231 fuse.DEBUG GetAttributes 13 test.txt []
2021/11/04 18:53:41.211308 fuse.DEBUG Op 0x0000007a        connection.go:491] -> OK ()
2021/11/04 18:53:41.211703 fuse.DEBUG Op 0x0000007c        connection.go:408] <- FlushFile (inode 13)
2021/11/04 18:53:41.212005 fuse.DEBUG FlushFile 13 test.txt []
2021/11/04 18:53:41.212346 s3.DEBUG DEBUG: Request s3/PutObject Details:
---[ REQUEST POST-SIGN ]-----------------------------