Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-02-2014, 07:28 AM   #1
mikolajek
Junior Member
mikolajek began at the beginning.
 
mikolajek's Avatar
 
Posts: 4
Karma: 10
Join Date: Jun 2013
Location: Warsaw, Poland
Device: Kindle PaperWhite 2
Problems with library located on a network drive

I've switched from a desktop PC to a notebook which resulted in migrating many of my files into NAS drives. That included Calibre library.

After a fresh Calibre install I was unable to add book or modify books in the library but I found the answer on the forum and followed that - deleted the metadata.db file and recreated library. There was some minor errors related to two books but in general that worked.

Unfortunately I'm not able to add new books to the library - Calibre claims to have added some of them (not listing them in the error dialog) but it's not true. The most recent error that keeps appearing is lited below:
Quote:
calibre, version 1.42.0
ERROR: Unhandled exception: <b>CantOpenError</b>:CantOpenError: unable to open database file

calibre 1.42 [64bit] isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.5
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\calibre\gui2\add.py", line 42, in add_one
File "site-packages\calibre\db\legacy.py", line 211, in create_book_entry
File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 1390, in create_book_entry
File "site-packages\calibre\db\cache.py", line 1161, in set_metadata
File "site-packages\calibre\db\cache.py", line 984, in update_path
File "site-packages\calibre\db\backend.py", line 1486, in update_path
File "site-packages\calibre\db\tables.py", line 130, in set_path
File "site-packages\calibre\db\backend.py", line 792, in execute
File "c:\cygwin\home\kovid\sw\build\apsw-3.7.14.1-r1\src\cursor.c", line 231, in resetcursor
CantOpenError: CantOpenError: unable to open database file
I must add that I've changed the ownership of the metadata.db file to my user id and I've also enabled full control over that file so there were no restrictions placed on the operations using that file. I'm also running Calibre as an administrator. However it doesn't help.

Of course I'm familiar with the official restriction related to placed Calibre library over networked drives (as stated here) but since I've been using sumbolic link to the library I was hoping to overcome potential problems (in many cases it helps). Apparently I wasn't right.

Is anyone able to advise me on that?

Last edited by mikolajek; 07-02-2014 at 07:38 AM.
mikolajek is offline   Reply With Quote
Old 07-02-2014, 07:38 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,013
Karma: 777817
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Use of network drives to store a Calibre library is not officially supported.

Some people seem to manage to get it to work, but others encounter issues. I am not sure if there are clear views of when one can expect it to work.
itimpi is offline   Reply With Quote
Old 07-02-2014, 07:53 AM   #3
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 1,084
Karma: 1510540
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Aura HD
Quote:
Originally Posted by itimpi View Post
Use of network drives to store a Calibre library is not officially supported.

Some people seem to manage to get it to work, but others encounter issues. I am not sure if there are clear views of when one can expect it to work.
I'm one of those it seems to work fine for. I run a database check every now and again (including a comparison with the files on disk) and haven't run into any problems yet. But as I haven't done anything special (just dumped the stuff on my NAS and pointed Calibre at it), I also have no idea why it works for me and not for others.

But like you say, the Big Man himself says 'Not supported; on your own head be it!', so if the OP has issues with it, well, 'don't do that, then'

Last edited by mbovenka; 07-02-2014 at 07:55 AM.
mbovenka is offline   Reply With Quote
Old 07-02-2014, 08:38 AM   #4
mikolajek
Junior Member
mikolajek began at the beginning.
 
mikolajek's Avatar
 
Posts: 4
Karma: 10
Join Date: Jun 2013
Location: Warsaw, Poland
Device: Kindle PaperWhite 2
Well, I have done a lot of "special" trying to cheat Calibre that its database is located on a local drive but I've apparently failed. The reason of my question was exactly what itimpi said - for some of forum member it somehow works. I wish I was one of them.

What I most likely do is copy my Calibre collection on a local drive and set up a sync mechanism to have an exact copy on my NAS server for security purposes.
mikolajek is offline   Reply With Quote
Old 07-02-2014, 10:48 AM   #5
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 1,084
Karma: 1510540
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Aura HD
Quote:
Originally Posted by mikolajek View Post
What I most likely do is copy my Calibre collection on a local drive and set up a sync mechanism to have an exact copy on my NAS server for security purposes.
Yep, that's the safest way to go, then. I use FreeFileSync for that.
mbovenka is offline   Reply With Quote
Old 07-11-2014, 11:49 AM   #6
Ackis
Member
Ackis began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Sep 2013
Device: Galaxy Tab 2 10.1
What type of network share are you using?

I'm going to assume Linux, which means you probably are using Samba? If that's the case make sure you check the Linux file system permissions AND Samba permissions. although this may not apply because you're probably using the standard NAS software.
Ackis is offline   Reply With Quote
Reply

Tags
library, network

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network drive spun down: "Failed to create calibre library at: u'Z:\\Calibre Library" dmck Calibre 6 09-21-2013 06:11 PM
Calibre 64 - adding books gives errors on network drive canadianbill Library Management 12 05-18-2013 12:19 AM
Calibre with library on mapped network drive litiki777 Related Tools 1 10-30-2012 05:31 AM
using shared network drive on 2 computers elricks Library Management 13 12-21-2011 07:07 AM
Handle Network Drive as Kindle kranu Devices 3 03-08-2011 03:22 AM


All times are GMT -4. The time now is 02:12 AM.


MobileRead.com is a privately owned, operated and funded community.