09-08-2012, 03:15 PM | #1 |
Enthusiast
Posts: 35
Karma: 10
Join Date: Mar 2010
Location: Sweden
Device: Kobo Libra 2
|
Library on Cifs share, DB on local disk?
I have a NAS with a cifs share, where I'd like to store the library (96 GB).
On my local computer I have an 128 GB SSD, which is why I don't want to store the libtrary on my local machine. I read that you can have the DB location overridden, so I tried that. I tried to override the DB location with this (Ubuntu 12.04): Code:
Exec=env CALIBRE_OVERRIDE_DATABASE_PATH=/home/jan/Calibre calibre Code:
Traceback (most recent call last): File "/usr/lib/calibre/calibre/library/restore.py", line 131, in load_preferences progress_callback=self.progress_callback) File "/usr/lib/calibre/calibre/library/database2.py", line 198, in __init__ self.connect() File "/usr/lib/calibre/calibre/library/database2.py", line 146, in connect self.conn = connect(self.dbpath, self.row_factory) File "/usr/lib/calibre/calibre/library/sqlite.py", line 366, in connect raise DatabaseException(*conn.proxy.unhandled_error) DatabaseException: unable to open database file RemoteTraceback (most recent call last): File "/usr/lib/calibre/calibre/library/sqlite.py", line 248, in run self.connect() File "/usr/lib/calibre/calibre/library/sqlite.py", line 225, in connect detect_types=sqlite.PARSE_DECLTYPES|sqlite.PARSE_COLNAMES) OperationalError: unable to open database file Or have I misunderstood the concept? From the Calibre manual: CALIBRE_OVERRIDE_DATABASE_PATH - allows you to specify the full path to metadata.db. Using this variable you can have metadata.db be in a location other than the library folder. Useful if your library folder is on a networked drive that does not support file locking. Wouldn't it be easier for everyone, if the setup wizard would let one (optionally) choose separate locations for the library and the database? |
09-08-2012, 03:25 PM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your env var has to have the full path to the metadata.db file not its containing folder.
|
Advert | |
|
09-08-2012, 03:40 PM | #3 |
Enthusiast
Posts: 35
Karma: 10
Join Date: Mar 2010
Location: Sweden
Device: Kobo Libra 2
|
Thanks!
Well, of course it's something too simple!
Thanks for the speedy reply! |
09-08-2012, 08:33 PM | #4 |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
I have a similar setup, only I mount my NAS using nfs. Ubuntu 12.04. And like you I have my metadata.db on a SSD.
But I symlink instead. That way I can have more than one Calibre library. https://www.mobileread.com/forums/sho...d.php?t=189714 |
Tags |
cifs, database errors, database locked, nas, samba |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Metadata local and library remote | OffColour | Library Management | 1 | 06-27-2012 04:43 AM |
Kindle 2 and local library | gin_ger | Amazon Kindle | 13 | 02-24-2010 10:16 PM |
Classic Local library and Nook | gin_ger | Barnes & Noble NOOK | 1 | 02-13-2010 01:19 PM |
My local library is a MESS | Lobolover | Lounge | 21 | 11-30-2008 02:45 PM |
Trying out ADE file ebook from my local library ... | RWJ | Sony Reader | 5 | 07-28-2008 03:03 PM |