View Single Post
Old 01-18-2018, 10:56 PM   #3
ckronengold
Member
ckronengold began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2018
Device: kindle basic
Quote:
Originally Posted by kovidgoyal View Post
Check the library location in the GUI
Whenever I do this, Calibre tells me that the database is corrupted and asks to rebuild, even after shutting down calibre-server first.

After rebuilding, I get errors when trying to update / edit the metadata. All of the files are locked.

For example...when trying to add the publishing date to this title....(it is not open in any other program.)

calibre, version 3.15.0
ERROR: Permission denied: Could not change the on disk location of this book. Is it open in another program?

Locked file: /home/calibre/Calibre-Library/Jonathan Safran Foer/Extremely Loud and Incredibly Close (3240)/cover.jpg

Traceback (most recent call last):
File "site-packages/calibre/gui2/metadata/single.py", line 579, in apply_changes
File "site-packages/calibre/gui2/metadata/basic_widgets.py", line 1210, in commit
File "site-packages/calibre/db/legacy.py", line 713, in set_cover
File "site-packages/calibre/db/cache.py", line 63, in call_func_with_lock
File "site-packages/calibre/db/cache.py", line 1230, in set_cover
File "site-packages/calibre/db/backend.py", line 1426, in set_cover
File "site-packages/calibre/utils/img.py", line 221, in save_cover_data_to
File "site-packages/calibre/startup.py", line 139, in local_open
IOError: [Errno 13] Permission denied: u'/home/calibre/Calibre-Library/Jonathan Safran Foer/Extremely Loud and Incredibly Close (3240)/cover.jpg'

When I chmod 755 the library folder, the database became unreadable, I couldn't open titles, and had to restore the db. Restoring the database failed.

Traceback (most recent call last):
File "site-packages/calibre/db/restore.py", line 127, in run
File "site-packages/calibre/db/restore.py", line 273, in replace_db
OSError: [Errno 13] Permission denied: '/home/calibre/Calibre-Library/metadata_pre_restore.db'

calibre, version 3.15.0
ERROR: Unhandled exception: <b>IOError</b>:[Errno 13] Permission denied: u'/home/calibre/Calibre-Library/calibre_test_case_sensitivity.txt'

calibre 3.15 embedded-python: True is64bit: True
Linux-4.13.0-25-generic-x86_64-with-debian-stretch-sid Linux ('64bit', 'ELF')
('Linux', '4.13.0-25-generic', '#29-Ubuntu SMP Mon Jan 8 21:14:41 UTC 2018')
Python 2.7.12
Linux: ('debian', 'stretch/sid', '')
Interface language: None
Traceback (most recent call last):
File "site-packages/calibre/gui2/actions/choose_library.py", line 489, in restore_database
File "site-packages/calibre/gui2/ui.py", line 695, in library_moved
File "site-packages/calibre/db/legacy.py", line 81, in __init__
File "site-packages/calibre/db/legacy.py", line 48, in create_backend
File "site-packages/calibre/db/backend.py", line 382, in __init__
File "site-packages/calibre/utils/filenames.py", line 120, in is_case_sensitive
IOError: [Errno 13] Permission denied: u'/home/calibre/Calibre-Library/calibre_test_case_sensitivity.txt'

And I can't open any titles.
calibre, version 3.15.0
ERROR: Failed to set data: Could not set data, click Show Details to see why.

Traceback (most recent call last):
File "site-packages/calibre/gui2/library/models.py", line 1091, in setData
File "site-packages/calibre/gui2/library/models.py", line 1166, in _set_data
File "site-packages/calibre/db/legacy.py", line 441, in set
File "site-packages/calibre/db/cache.py", line 63, in call_func_with_lock
File "site-packages/calibre/db/cache.py", line 1092, in set_field
File "site-packages/calibre/db/write.py", line 544, in set_books
File "site-packages/calibre/db/write.py", line 208, in set_title
File "site-packages/calibre/db/write.py", line 197, in one_one_in_books
File "site-packages/calibre/db/backend.py", line 855, in executemany
File "site-packages/calibre/db/backend.py", line 834, in conn
AttributeError: 'DB' object has no attribute '_conn'

Last edited by ckronengold; 01-18-2018 at 11:08 PM.
ckronengold is offline   Reply With Quote