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
|