goofys icon indicating copy to clipboard operation
goofys copied to clipboard

Process exits with error during copy of file under goofys mount point

Open aristella opened this issue 9 months ago • 0 comments

I got a panic error during the copy of a file in a ec2 where goofys is used to mount an S3 bucket. I have been using goofys with bucket for a long time having a large amount of files copied under the mount point. The error I got was:

main.ERROR stacktrace from panic: double insert of 20240507088.docx #012goroutine 28127003 [running]:#012runtime/debug.Stack(0xc0006ffb40, 0xbd2e60, 0xc000b700c0)#012#011/usr/local/go/src/runtime/debug/stack.go:24 +0x9d#012github.com/kahing/goofys/api/common.LogPanic(0xc0006fff18)#012#011/home/kahing/go/src/github.com/kahing/goofys/api/common/panic_logger.go:32 +0x7c#012panic(0xbd2e60, 0xc000b700c0)#012#011/usr/local/go/src/runtime/panic.go:679 +0x1b2#012github.com/kahing/goofys/internal.(*Inode).insertChildUnlocked(0xc000480140, 0xc000af0820)#012#011/home/kahing/go/src/github.com/kahing/goofys/internal/dir.go:844 +0x4bc#012github.com/kahing/goofys/internal.(*Goofys).insertInode(0xc0001de000, 0xc000480140, 0xc000af0820)#012#011/home/kahing/go/src/github.com/kahing/goofys/internal/goofys.go:729 +0x6b#012github.com/kahing/goofys/internal.(*Goofys).CreateFile(0xc0001de000, 0xeb5b00, 0xc000d08ed0, 0xc0001b6960, 0x0, 0x0)#012#011/home/kahing/go/src/github.com/kahing/goofys/internal/goofys.go:1022 +0x1ba#012github.com/kahing/goofys/api/common.FusePanicLogger.CreateFile(0xec7540, 0xc0001de000, 0xeb5b00, 0xc000d08ed0, 0xc0001b6960, 0x0, 0x0)#012#011/home/kahing/go/src/github.com/kahing/goofys/api/common/panic_logger.go:73 +0x9d#012github.com/kahing/goofys/vendor/github.com/jacobsa/fuse/fuseutil.(*fileSystemServer).handleOp(0xc0004d0400, 0xc0000844e0, 0xeb5b00, 0xc000d08ed0, 0xbb6780, 0xc0001b6960)#012#011/home/kahing/go/src/github.com/kahing/goofys/vendor/github.com/jacobsa/fuse/fuseutil/file_system.go:161 +0x645#012created by github.com/kahing/goofys/vendor/github.com/jacobsa/fuse/fuseutil.(*fileSystemServer).ServeOps#012#011/home/kahing/go/src/github.com/kahing/goofys/vendor/github.com/jacobsa/fuse/fuseutil/file_system.go:122 +0x1a0#012
fuse.ERROR *fuseops.CreateFileOp error: input/output error

Do you know if this error related with fuse or with goofys?

goofys version is 0.24.0

thank you

aristella avatar May 14 '24 15:05 aristella