09-19-2021, 07:55 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2021
Device: galaxy tab s
|
unable to open database file
Hi,
Running calibre-server (calibre 5.27) from binary install on Debian 10. Calibre-server runs as user and group with permissions over install directory (/opt/calibre/), books directory, and /usr/lib/calibre/. I am having trouble creating a library from command line. Calibre-server starts from service unit file with the following options: ExecStart=/opt/calibre/calibre-server --port 4646 --userdb /opt/calibre/users.sqlite --enable-auth --enable-local-write /ingest/content/Canon --access-log /opt/calibre/access_log.log --log /opt/calibre/server_log.log I am attempting to add a library using calibredb add: $ calibredb add --with-library /opt/calibre/firstlibrary -r /ingest/content/Canon/ Traceback (most recent call last): File "runpy.py", line 194, in _run_module_as_main File "runpy.py", line 87, in _run_code File "site.py", line 45, in <module> File "site.py", line 41, in main File "calibre/db/cli/main.py", line 251, in main File "calibre/db/cli/main.py", line 41, in run_cmd File "calibre/db/cli/cmd_add.py", line 476, in main File "calibre/db/cli/cmd_add.py", line 270, in do_add File "calibre/db/cli/main.py", line 184, in run File "calibre/db/cli/main.py", line 171, in db File "calibre/db/legacy.py", line 188, in __init__ File "calibre/db/legacy.py", line 45, in create_backend File "calibre/db/backend.py", line 463, in __init__ File "calibre/db/backend.py", line 1214, in user_version File "calibre/db/backend.py", line 927, in conn File "calibre/db/backend.py", line 341, in __init__ apsw.CantOpenError: CantOpenError: unable to open database file I'm not certain which database file if being referenced, but it if is in the install directory, /usr/lib/calibre, or /ingest/content/Canon then all permissions appear to be correct for folders and files. Any suggestions on where to look next? Thank you |
09-19-2021, 08:03 AM | #2 |
creator of calibre
Posts: 44,008
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you are running the server, connect to the server with calibredb dont try to operate directly on the library with it. See https://manual.calibre-ebook.com/gen...calibredb.html
|
Advert | |
|
09-19-2021, 09:25 AM | #3 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2021
Device: galaxy tab s
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CantOpenError: unable to open database file | Zepa77 | Devices | 24 | 03-12-2021 10:31 AM |
Help!!!! CantOpenError: unable to open database file | cbbs70a | Library Management | 2 | 06-11-2015 11:11 AM |
unable to open database file | mihal.v | Calibre | 3 | 08-16-2014 09:44 AM |
Unable to open database file | wladdy | Library Management | 6 | 08-28-2012 05:04 AM |
Unable to open database file | JulieR | Calibre | 2 | 04-24-2009 04:40 AM |