skip files that we don't have permissions to read, and write a warning + stack trace to the log

fixes #861