polaris
polaris copied to clipboard
add filenames to "permission denied" error messages
I am attempting to run polaris as a system user, but installed it via sudo (root). I am currently getting a variety of:
Error: Permission denied (os error 13)
but the error does not report the filename that needs the permission adjusted.
Please consider adding the filename to the error message.
Thank you!
As a quick workaround, you can try running something like sudo strace -e trace=open,openat,stat -fp $(pidof polaris)
, then triggering a reindex.
Thanks for the hint, Laurențiu.
The error message comes from upstream code so it's also not obvious to me what caused it (yikes). Were you able to confirm that the offending file was something Polaris ran into while indexing (as opposed to starting up)? This would lower the surface area a bit to fix this.
It was a "starting up" issue. I believe there instances where polaris was unhappy that the group was "root", I fixed by doing something like "sudo chgrp -R nogroup /path/to/files". I also believe there were issues where the log file directory did not exist (or could not be created.)
Anyhow. I am up and running now.
It would still be great to get a filename (or path) for what is failing with the "permission denied".
Every possible error should now be accounted for in Polaris 0.14.0
🚀