Error Opening Database stored on a NAS - RESOLVED!
For those of you that run Calibre with your library stored on a Synology NAS, I thought I would post a problem with solution that I recently encountered. In short, in my configuration (Windows 10 PC running Calibre program with Calibre Library and database stored on a Synology NAS) only works properly with SMB 1.0 file sharing; it will not work properly with SMB 2.0 or 3.0.
Before I continue: I know that Calibre is not designed to be run with it's database residing on a NAS. However, I have been doing it for many years without issue until recently. So please don't waste a post to berate me with "Calibre does not support a NAS" etc...
Recently, I had run into a problem where I could access my books (view them, download them, and transfer them to my e-reader) but could not add new books or update the metadata on existing books. I would get the typical "CantOpenError: CantOpenError: unable to open database file" error.
Well it turns out the problem was at some point a Windows 10 update had disabled SMB 1.0 file sharing. I had to manually enable SMB 1.0 file sharing through the "Control Panel -> Programs and Features -> Turn Windows features on or off" settings. Additionally, I had to go into my Synology NAS SMB settings and set it to SMB 1.0 ONLY.
This solved the problem and everything is working as it should. For Some reason trying to use the SMB 2.0, or 3.0 protocols results in a database access error when it comes to writing something new into the Calibre database.
|