View Single Post
Old 06-11-2020, 02:53 AM   #1
sws
Enthusiast
sws began at the beginning.
 
sws's Avatar
 
Posts: 40
Karma: 10
Join Date: Oct 2012
Device: Pocket Book Touch HD3
ReadOnlyError: attempot to write a readonly database

Hi,

I am trying to add several books in a new and empty library, recursive through the whole path, one directory equals one ebook. But I get the following error:

Code:
usr/bin/calibredb --with-library http://localhost:8081 --username=**** --password=**** add  -1 -r /path_to/ebooks/

Traceback (most recent call last):
  File "site-packages/calibre/srv/cdb.py", line 48, in cdb_run
  File "site-packages/calibre/db/cli/cmd_add.py", line 65, in implementation
  File "site-packages/calibre/db/cli/cmd_add.py", line 55, in add_books
  File "site-packages/calibre/db/cache.py", line 1592, in add_books
  File "site-packages/calibre/db/cache.py", line 62, in call_func_with_lock
  File "site-packages/calibre/db/cache.py", line 1552, in create_book_entry
  File "site-packages/calibre/db/backend.py", line 843, in execute
  File "src/cursor.c", line 236, in resetcursor
ReadOnlyError: ReadOnlyError: attempt to write a readonly database

ReadOnlyError: attempt to write a readonly database
The user issuing the command is owner of all directories and files of the path to the ebooks and the new library. So there cannot be a problem with rights management I think.

WARNING: this is calibre Version 3.7.

Any help appreciated.
Regards,
Sebastian
sws is offline   Reply With Quote