tailon icon indicating copy to clipboard operation
tailon copied to clipboard

File permission issue - invalid memory address or nil pointer dereference

Open iesl2 opened this issue 6 years ago • 0 comments

Hello,

I tried to start tailon specifying a file to which tailon user doesn't have access:

./opt/tailon/tailon -b "0.0.0.0:8084" -r "/" "alias=Catalina,group=Tomcat,/opt/tomcat/logs/catalina.out" "alias=Other,group=Tomcat,/opt/tomcat/logs/*"

And got the error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x7bcc58]

goroutine 1 [running]:
main.parseFileSpec(0x7ffd5095662c, 0x39, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/gv/go/src/github.com/gvalkov/tailon/main.go:173 +0x428
main.main()
	/home/gv/go/src/github.com/gvalkov/tailon/main.go:284 +0x562

Probably it may be usefully to see some information about file permission issue in the tailon output.

Thank you!

iesl2 avatar Mar 19 '19 09:03 iesl2