![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
|
Calibre database access issues
I'm having database access issues for a number of tasks in Calibre - the output from a simple move book between libraries is given below. I'm getting these issues on both a full install of Calibre plus a portable install on a work laptop that I do not have full admin rights on so wondering if this is related?
calibre, version 2.76.0 ERROR: Failed to copy books: Could not copy any books, click "Show Details" for more information. Failed to copy a book, see below for details Copying: Bone failed, with error: Traceback (most recent call last): File "site-packages\calibre\gui2\actions\copy_to_library.py", line 156, in _doit File "site-packages\calibre\gui2\actions\copy_to_library.py", line 194, in do_one File "site-packages\calibre\db\legacy.py", line 246, in import_book File "site-packages\calibre\db\cache.py", line 1569, in add_books File "site-packages\calibre\db\cache.py", line 61, in call_func_with_lock File "site-packages\calibre\db\cache.py", line 1539, in create_book_entry File "site-packages\calibre\db\cache.py", line 1261, in set_metadata File "site-packages\calibre\db\cache.py", line 1088, in update_path File "site-packages\calibre\db\backend.py", line 1551, in update_path File "site-packages\calibre\db\tables.py", line 135, in set_path File "site-packages\calibre\db\backend.py", line 822, in execute File "c:\cygwin64\home\kovid\sw\build\apsw-3.8.2-r1\src\cursor.c", line 231, in resetcursor CantOpenError: CantOpenError: unable to open database file |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,993
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
One of the Libraries (Destination) is locked or in use (Local drive)
Network drives are iffy and officially not supported (see FAQ) |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
|
Thanks for the reply. My Calibre database is on my NAS on local network and never had any problems before - any way to unlock the database?
|
![]() |
![]() |
![]() |
#4 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,687
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
It may not be locked as such, could be corrupt, as the FAQ says, NAS file systems are often incomplete, flaky etc. You could try moving the library onto a local drive and rebuilding the database at that location via Library Maintenance->Restore Database. Whether you then transfer the library back to the NAS is up to you. But your planning assumption should be that it won't work, and even if it does it may not be for long. BR |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,429
Karma: 78880114
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Also try a reboot of the NAS in case it's locked the files by mistake.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
|
Thanks for the responses. I have rebooted my NAS but database is still locked. I'd like to use Calibre across multiple computers so will read the FAQ's and forums and investigate ways of making this work....
|
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,687
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@barrymcsorley - the next major version of calibre (3.0) will be multi-user. You can take sneak peek at it, see post #2 in ==>> Calibre 3.0 changes and bèta release date?
BR |
![]() |
![]() |
![]() |
#8 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Android] using CC to access existing database | barlowrm | Calibre Companion | 9 | 12-06-2016 09:46 PM |
Can I access the database from a metadata source plugin? | Jellby | Development | 7 | 02-03-2015 03:29 AM |
Is it safe for two copies of Calibre to access the same database? | Halo | Calibre | 7 | 01-31-2013 01:03 PM |
Large Database Issues | phil_ga | Calibre | 28 | 07-30-2011 12:53 PM |