kahing / goofys

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

mount with ceph rgw got error ,ceph version is 18.2.1 #787

Open 13567436138 opened 10 months ago

13567436138 commented 10 months ago
root@karmada-02-a:~# goofys --debug_fuse -f --endpoint http://rook-ceph-rgw-multisite-store.rook-ceph.svc:80  --subdomain images  /mnt/oss-bucket
2024/01/12 12:31:18.258896 fuse.DEBUG Op 0x00000002        connection.go:408] <- init
2024/01/12 12:31:18.262410 fuse.DEBUG Op 0x00000002        connection.go:491] -> OK ()
2024/01/12 12:31:18.262811 main.INFO File system has been successfully mounted.
2024/01/12 12:31:31.166054 fuse.DEBUG Op 0x00000004        connection.go:408] <- GetInodeAttributes (inode 1)
2024/01/12 12:31:31.169524 fuse.DEBUG GetAttributes 1  []
2024/01/12 12:31:31.169720 fuse.DEBUG Op 0x00000004        connection.go:491] -> OK ()
2024/01/12 12:31:31.170525 fuse.DEBUG Op 0x00000006        connection.go:408] <- OpenDir (inode 1)
2024/01/12 12:31:31.173485 fuse.DEBUG OpenDir 1  []
2024/01/12 12:31:31.173539 fuse.DEBUG Op 0x00000006        connection.go:491] -> OK ()
2024/01/12 12:31:31.173784 fuse.DEBUG Op 0x00000008        connection.go:408] <- ReadDir (inode 1)
2024/01/12 12:31:31.190708 fuse.DEBUG ReadDir 1  [0]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb042df]

goroutine 39 [running]:
github.com/kahing/goofys/internal.(*S3Backend).ListBlobs(0xc0000ee540, 0xc00028c120, 0xc00003ee78, 0x97d08b, 0x28)
        /home/kahing/go/src/github.com/kahing/goofys/internal/backend_s3.go:422 +0x4ff
github.com/kahing/goofys/internal.listBlobsSafe(0xec57e0, 0xc0000ee540, 0xc00028c120, 0x0, 0x0, 0x0)
        /home/kahing/go/src/github.com/kahing/goofys/internal/dir.go:395 +0x56
github.com/kahing/goofys/internal.(*DirHandle).listObjects.func2()
        /home/kahing/go/src/github.com/kahing/goofys/internal/dir.go:341 +0xf9
created by github.com/kahing/goofys/internal.(*DirHandle).listObjects
        /home/kahing/go/src/github.com/kahing/goofys/internal/dir.go:351 +0x506
pandalanax commented 3 months ago

Also experiencing this on ceph version 18.2.4.