Cloudbox / autoscan

Autoscan replaces the default Plex and Emby behaviour for picking up changes on the file system.
MIT License
597 stars 49 forks source link

panic: runtime error: invalid memory address or nil pointer dereference #124

Closed s01ice closed 3 years ago

s01ice commented 3 years ago

Hi I'm getting this error below. Can anyone help me with this?

Jul 4 00:38:16 INF Initialised processor anchors=["/mnt/unionfs/.anchors/media.anchor"] min_age=2m30s, panic: runtime error: invalid memory address or nil pointer dereference, [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x9ae32c], , goroutine 1 [running]:, github.com/m-rots/stubbs.ParseKey(0x0, 0x0, 0xc000214080, 0x0, 0x0), github.com/m-rots/stubbs@v1.1.0/stubbs.go:73 +0x6c, github.com/m-rots/stubbs.FromFile(0xc0000ab290, 0xf, 0xc0002181a0, 0x1, 0x1, 0x0, 0x0, 0x0, 0xc00009f3c0, 0x1, ...), github.com/m-rots/stubbs@v1.1.0/stubbs.go:105 +0x10a, github.com/cloudbox/autoscan/triggers/bernard.New(0xc0000ab290, 0xf, 0xc0000ab2a4, 0xb, 0x0, 0x0, 0x0, 0x0, 0xc00014df40, 0x1, ...), github.com/cloudbox/autoscan/triggers/bernard/bernard.go:48 +0x445, main.main(), github.com/cloudbox/autoscan/cmd/autoscan/main.go:220 +0xfc8

m-rots commented 3 years ago

Looks to me like your service account JSON key file is invalid

l3uddz commented 3 years ago

As mentioned by @m-rots, key is invalid.