Given the rebuild, it could be that the security descriptors changed and as-logged-in, you no longer have appropriate privileges on the calibre library. Right-click on the library folder and check security to see whether the user you are logged in as has full privileges on the folder and its content. If not, fix it.