12-11-2015, 06:52 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2015
Device: kindle paperwhite
|
Ubuntu Server
Hey, I have an Ubuntu server setup (headless) and am unable to set a library path every time i try it returns
xvfb-run calibredb add /mnt/sdc/toadd/* --library-path /mnt/sdc/Edutational/* Traceback (most recent call last): File "site.py", line 66, in main File "site-packages/calibre/library/cli.py", line 1604, in main File "site-packages/calibre/library/cli.py", line 437, in command_add File "site-packages/calibre/library/cli.py", line 68, in get_db File "site-packages/calibre/db/legacy.py", line 73, in __init__ File "site-packages/calibre/db/legacy.py", line 46, in create_backend File "site-packages/calibre/db/backend.py", line 355, in __init__ File "site-packages/calibre/db/backend.py", line 1080, in fget File "site-packages/calibre/db/backend.py", line 798, in conn File "site-packages/calibre/db/backend.py", line 250, in __init__ CantOpenError: CantOpenError: unable to open database file i have removed a metadata.db file that was created in my home directory, I realize this would be simpler if i installed a GUI but that kind of defeats the purpose of the server Last edited by WT Sharpe; 12-13-2015 at 12:40 AM. Reason: Screenshot |
12-11-2015, 07:18 PM | #2 |
Well trained by Cats
Posts: 29,810
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
is that a typo in the path to library or a non-english name?
|
Advert | |
|
12-11-2015, 09:36 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2015
Device: kindle paperwhite
|
|
12-11-2015, 11:11 PM | #4 |
Grand Sorcerer
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
I tried this and it created the database for me
Code:
mkdir MyBooks calibredb restore_database --really-do-it --library-path /home/petert/MyBooks Code:
calibredb add Downloads/* --library-path /home/petert/MyBooks/ |
12-11-2015, 11:51 PM | #5 |
Well trained by Cats
Posts: 29,810
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
Advert | |
|
12-11-2015, 11:51 PM | #6 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That indicates sqlite is unable to open/create the db file. First stop using xvfb-run, it is not needed. Then stop using * in your command lines. Finally, make sure you are creating your library on a "native" filesystem, not a network filesystem, not ntfs, not fat32 not hfs etc. Linux is full of poorly implemented filesystem drivers.
|
12-12-2015, 12:36 AM | #7 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Dec 2015
Device: kindle paperwhite
|
Quote:
|
|
12-12-2015, 10:39 PM | #8 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
Obviously networked filesystems are asking for trouble, and using NTFS on linux is just silly... @PeterT, when I try running `calibredb add /tmp/random-file.txt --with-library /tmp/test-library` it creates a library and adds the file. @OP -- did you get it to work? |
|
12-13-2015, 01:02 AM | #9 |
Well trained by Cats
Posts: 29,810
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Half my boxes are dual boot, so I run NTFS and EXT3
Linux (the OS and user file system) is EXT3, with the windows partitions (NTFS) mounted. I mostly READ from those, but I have not had problems <Knock, Knock> If I do write. |
Tags |
library issue |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't start calibre-server on Linux (ubuntu) | Awfki | Calibre | 5 | 08-19-2015 10:54 PM |
Content server on ubuntu 12.04 headless server ImageMagick: libltdl.so.7 | Cool Javelin | Calibre | 5 | 04-08-2015 02:20 AM |
Calibre on ubuntu server | tdw197 | Calibre | 24 | 01-19-2011 07:48 AM |
Calibre crashes X server (Ubuntu 10.10) | mfabry | Calibre | 9 | 10-15-2010 04:12 PM |
Calibre RuntimeError on Ubuntu 8.04 Server | alexbt | Calibre | 3 | 10-13-2009 04:26 AM |