Fuse: panic in handler for read

I recently started seeing this error in my logs. Movies won’t play from Plex but I can navigate directories from a mount. I have recently updated everything (Plex, Rclone, Ubuntu). Any ideas?

Jul 26 18:48:06 pve1 rclone[9188]: fuse: panic in handler for Read [ID=0x1222 Node=0x7 Uid=110 Gid=116 Pid=146607] 0x1 4096 @0x0 dir=false fl=0 lock=0 ffl=OpenReadOnly: runtime error: invalid memory address or nil pointer dereference#012goroutine 5555 [running]:#012github.com/ncw/rclone/vendor/bazil.org/fuse/fs.(*Server).serve.func2(0x11b4980, 0xc42011e000, 0xc42023fef8, 0xc42023fe6f)#012#011/home/travis/gopath/src/github.com/ncw/rclone/vendor/bazil.org/fuse/fs/serve.go:857 +0x1b1#012panic(0xf180c0, 0x17d2cd0)#012#011/home/travis/.gimme/versions/go1.10.1.linux.amd64/src/runtime/panic.go:502 +0x229#012github.com/ncw/rclone/backend/cache.(*plexConnector).authenticate(0xc4201e6540, 0x0, 0x0)#012#011/home/travis/gopath/src/github.com/ncw/rclone/backend/cache/plex.go:213 +0x639#012github.com/ncw/rclone/backend/cache.(*Handle).startReadWorkers(0xc42011e540)#012#011/home/travis/gopath/src/github.com/ncw/rclone/backend/cache/handle.go:105 +0xdd#012github.com/ncw/rclone/backend/cache.NewObjectHandle(0xc4202f6b40, 0xc4205c88c0, 0x0)#012#011/home/travis/gopath/src/github.com/ncw/rclone/backend/cache/handle.go:77 +0x151#012github.com/ncw/rclone/backend/cache.(*Object).Open(0xc4202f6b40, 0x0, 0x0, 0x0, 0xc4201ac348, 0x1f, 0xc42032afc0, 0x65)#012#011/home/travis/gopath/src/github.com/ncw/rclone/backend/cache/object.go:216 +0x67#012github.com/ncw/rclone/backend/crypt.(*Object).Open.func1(0x0, 0xffffffffffffffff, 0x18, 0x28, 0xc42056c510, 0x0)#012#011/home/travis/gopath/src/github.com/ncw/rclone/backend/crypt/crypt.go:677 +0x1ee#012github.com/ncw/rclone/backend/crypt.(*cipher).newDecrypterSeek(0xc4203a2460, 0xc42056c510, 0x0, 0xffffffffffffffff, 0xf87a20, 0xc42032af01, 0xc42056c510)#012#011/home/travis/gopath/src/github.com/ncw/rclone/backend/crypt/cipher.go:763 +0x2ee#012github.com/ncw/rclone/backend/crypt.(*cipher).DecryptDataSeek(0xc4203a2460, 0xc42056c510, 0x0, 0xffffffffffffffff, 0x1013640, 0xc420474c00, 0xe996e0, 0xc42153ccf0)#012#011/home/travis/gopath/src/github.com/ncw/rclone/backend/crypt/cipher.go:1045 +0x4d#012github.com/ncw/rclone/backend/crypt.(*Object).Open(0xc420474c00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x4100a9)#012#011/home/travis/gopath/src/github.com/ncw/rclone/backend/crypt/crypt.go:674 +0x350#012github.com/ncw/rclone/fs/chunkedreader.(*ChunkedReader).openRange(0xc420809020, 0x10f6928, 0xc420809020)#012#011/home/travis/gopath/src/github.com/ncw/rclone/fs/chunkedreader/chunkedreader.go:215 +0x1cf#012github.com/ncw/rclone/fs/chunkedreader.(*ChunkedReader).Open(0xc420809020, 0x0, 0x0, 0x0)#012#011/home/travis/gopath/src/github.com/ncw/rclone/fs/chunkedreader/chunkedreader.go:181 +0x89#012github.com/ncw/rclone/vfs.(*ReadFileHandle).openPending(0xc4202ae3f0, 0xc4201ac348, 0xc4205758f8)#012#011/home/travis/gopath/src/github.com/ncw/rclone/vfs/read.go:68 +0xf4#012github.com/ncw/rclone/vfs.(*ReadFileHandle).readAt(0xc4202ae3f0, 0xc420694000, 0x1000, 0x1000, 0x0, 0xe999a0, 0x1, 0xc420694000)#012#011/home/travis/gopath/src/github.com/ncw/rclone/vfs/read.go:199 +0x43#012github.com/ncw/rclone/vfs.(*ReadFileHandle).ReadAt(0xc4202ae3f0, 0xc420694000, 0x1000, 0x1000, 0x0, 0x0, 0x0, 0x0)#012#011/home/travis/gopath/src/github.com/ncw/rclone/vfs/read.go:194 +0xa1#012github.com/ncw/rclone/cmd/mount.(*FileHandle).Read(0xc420473ce0, 0x11b6340, 0xc420636740, 0xc42011e000, 0xc4215456e0, 0x1001, 0x0)#012#011/home/travis/gopath/src/github.com/ncw/rclone/cmd/mount/handle.go:28 +0x26b#012github.com/ncw/rclone/vendor/bazil.org/fuse/fs.(*Server).handleRequest(0xc420198300, 0x11b6340, 0xc420636740, 0x11a9fa0, 0xc42000c158, 0xc420764980, 0x11b4980, 0xc42011e000, 0xc42023fef8, 0x0, ...)#012#011/home/travis/gopath/src/github.com/ncw/rclone/vendor/bazil.org/fuse/fs/serve.go:1249 +0x8c8#012github.com/ncw/rclone/vendor/bazil.org/fuse/fs.(*Server).serve(0xc420198300, 0x11b4980, 0xc42011e000)#012#011/home/travis/gopath/src/github.com/ncw/rclone/vendor/bazil.org/fuse/fs/serve.go:878 +0x41e#012github.com/ncw/rclone/vendor/bazil.org/fuse/fs.(*Server).Serve.func1(0xc420198300, 0x11b4980, 0xc42011e000)#012#011/home/travis/gopath/src/github.com/ncw/rclone/vendor/bazil.org/fuse/fs/serve.go:425 +0x6e#012created by github.com/ncw/rclone/vendor/bazil.org/fuse/fs.(*Server).Serve#012#011/home/travis/gopath/src/github.com/ncw/rclone/vendor/bazil.org/fuse/fs/serve.go:423 +0x331

I was running 1.42 while receiving that error.

I saw in a github issue where the author stated that a similar issue was fixed in 1.41. I installed 1.41 over 1.42 and no longer have the issue.

Could you try the latest beta and if that doesn’t fix it then please make a new issue on github - thanks :slight_smile: