polaris icon indicating copy to clipboard operation
polaris copied to clipboard

add filenames to "permission denied" error messages

Open mzagrabe opened this issue 3 years ago • 4 comments

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!

mzagrabe avatar Oct 05 '21 14:10 mzagrabe

As a quick workaround, you can try running something like sudo strace -e trace=open,openat,stat -fp $(pidof polaris), then triggering a reindex.

lnicola avatar Oct 05 '21 14:10 lnicola

Thanks for the hint, Laurențiu.

mzagrabe avatar Oct 05 '21 18:10 mzagrabe

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.

agersant avatar Oct 20 '21 02:10 agersant

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".

mzagrabe avatar Oct 20 '21 12:10 mzagrabe

Every possible error should now be accounted for in Polaris 0.14.0 🚀

agersant avatar Nov 25 '22 04:11 agersant