I have noticed that file metadta.db on a library that calibre can access has permissions set to 0644, however on a library file that has permissions set to 0755 it shows library as corrupted. I am not sure if this provides any further insight into the problem.