Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File permission issue - invalid memory address or nil pointer dereference #13

Open
iesl2 opened this issue Mar 19, 2019 · 0 comments
Open

Comments

@iesl2
Copy link

iesl2 commented Mar 19, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant