Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-17-2023, 07:27 PM   #1
thegameksk
Enthusiast
thegameksk began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2020
Device: Moon+
Cloud Library errors

Im using onedrive for my books. Every now and then I get calibre, version 6.14.1

ERROR: Unhandled error: Failed to read book data from calibre library. Click "Show details" for more information

Traceback (most recent call last):
File "calibre\db\backend.py", line 1542, in copy_cover_to
OSError: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\db\backend.py", line 1546, in copy_cover_to
OSError: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\library\models.py", line 634, in current_changed
File "calibre\gui2\library\models.py", line 611, in get_book_display_info
File "calibre\gui2\library\models.py", line 806, in cover
File "calibre\db\legacy.py", line 455, in cover
File "calibre\db\cache.py", line 1004, in cover
File "calibre\db\cache.py", line 77, in call_func_with_lock
File "calibre\db\cache.py", line 1039, in copy_cover_to
File "calibre\db\backend.py", line 1549, in copy_cover_to
Exception: Failed to open 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg' with error: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

When I try to save Metadata on certain books I get:
calibre, version 6.14.1
ERROR: Unhandled exception: <b>Exception</b>:Failed to open 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg' with error: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

calibre 6.14.1 embedded-python: True
Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22621')
Python 3.10.1
Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free')
Interface language: None
Traceback (most recent call last):
File "calibre\db\backend.py", line 1542, in copy_cover_to
OSError: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\db\backend.py", line 1546, in copy_cover_to
OSError: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\actions\edit_metadata.py", line 438, in edit_metadata
File "calibre\gui2\actions\edit_metadata.py", line 461, in edit_metadata_for
File "calibre\gui2\actions\edit_metadata.py", line 491, in do_edit_metadata
File "calibre\gui2\metadata\single.py", line 1250, in edit_metadata
File "calibre\gui2\metadata\single.py", line 665, in start
File "calibre\gui2\metadata\single.py", line 701, in do_one
File "calibre\gui2\metadata\single.py", line 383, in __call__
File "calibre\gui2\metadata\basic_widgets.py", line 1274, in initialize
File "calibre\db\legacy.py", line 455, in cover
File "calibre\db\cache.py", line 1004, in cover
File "calibre\db\cache.py", line 77, in call_func_with_lock
File "calibre\db\cache.py", line 1039, in copy_cover_to
File "calibre\db\backend.py", line 1549, in copy_cover_to
Exception: Failed to open 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg' with error: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

Not sure the issue. This just started happening. I tried updating calibre and it hasnt made a difference
thegameksk is offline   Reply With Quote
Old 03-17-2023, 07:40 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You have been getting away with walking on the edge. You finally fell off.
https://manual.calibre-ebook.com/faq.html#id38
The question is WHEN (unless it is Google Drive. Then it it is NOW) it will getcha'.
theducks is online now   Reply With Quote
Advert
Old 03-17-2023, 07:40 PM   #3
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,154
Karma: 237634549
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Calibre is not meant to be used with a cloud drive, it will almost always corrupt your library. Use your local drive for Calibre and make a back-up copy in the cloud, if you wish. Never run Calibre with the syncing active in the background.
Sirtel is online now   Reply With Quote
Old 03-17-2023, 07:44 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Good point. MIRROR, not 2-way sync (a copy) if you do.

I sure wish there was a way that Calibre install could detect if the user was trying to break this rule on install and give them the chance to avoid the pain.
theducks is online now   Reply With Quote
Old 03-17-2023, 08:11 PM   #5
thegameksk
Enthusiast
thegameksk began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2020
Device: Moon+
But the thing is it still works. I can connect via Calibre on my phone, download books to my phone, and read them. I cant change metadata. So what are my options here?
thegameksk is offline   Reply With Quote
Advert
Old 03-17-2023, 08:14 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,616
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
I sure wish there was a way that Calibre install could detect if the user was trying to break this rule on install and give them the chance to avoid the pain.
In the Welcome Wizard, a "Please read the Essential FAQs before you proceed." followed by a list of links : e.g. library folder and file names, libraries on networks, backup …

BR
BetterRed is offline   Reply With Quote
Old 03-17-2023, 08:38 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by thegameksk View Post
But the thing is it still works. I can connect via Calibre on my phone, download books to my phone, and read them. I cant change metadata. So what are my options here?
If 'it still works', where did that log come from?
theducks is online now   Reply With Quote
Old 03-17-2023, 08:42 PM   #8
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,154
Karma: 237634549
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by thegameksk View Post
But the thing is it still works. I can connect via Calibre on my phone, download books to my phone, and read them. I cant change metadata. So what are my options here?
Use your active library on a local drive. Make changes on the local drive and then sync them to the back-up copy in the cloud (for example, using FreeFileSync). You can connect your phone to the cloud copy. BUT syncing between the local and the cloud copy must be one-way only (from local to cloud, not vice versa) and only when Calibre is not running.
Sirtel is online now   Reply With Quote
Old 03-17-2023, 09:58 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,616
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
If 'it still works', where did that log come from?
Read what the OP wrote:

BR

Quote:
Originally Posted by thegameksk View Post
Im using onedrive for my books.

Every now and then I get

calibre, version 6.14.1

ERROR: Unhandled error: Failed to read book data from calibre library. Click "Show details" for more information

Traceback (most recent call last):
File "calibre\db\backend.py", line 1542, in copy_cover_to
OSError: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

Spoiler:
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\db\backend.py", line 1546, in copy_cover_to
OSError: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\library\models.py", line 634, in current_changed
File "calibre\gui2\library\models.py", line 611, in get_book_display_info
File "calibre\gui2\library\models.py", line 806, in cover
File "calibre\db\legacy.py", line 455, in cover
File "calibre\db\cache.py", line 1004, in cover
File "calibre\db\cache.py", line 77, in call_func_with_lock
File "calibre\db\cache.py", line 1039, in copy_cover_to
File "calibre\db\backend.py", line 1549, in copy_cover_to
Exception: Failed to open 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg' with error: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

When I try to save Metadata on certain books I get:
calibre, version 6.14.1
ERROR: Unhandled exception: <b>Exception</b>:Failed to open 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg' with error: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

calibre 6.14.1 embedded-python: True
Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22621')
Python 3.10.1
Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free')
Interface language: None
Traceback (most recent call last):
File "calibre\db\backend.py", line 1542, in copy_cover_to
OSError: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\db\backend.py", line 1546, in copy_cover_to
OSError: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\actions\edit_metadata.py", line 438, in edit_metadata
File "calibre\gui2\actions\edit_metadata.py", line 461, in edit_metadata_for
File "calibre\gui2\actions\edit_metadata.py", line 491, in do_edit_metadata
File "calibre\gui2\metadata\single.py", line 1250, in edit_metadata
File "calibre\gui2\metadata\single.py", line 665, in start
File "calibre\gui2\metadata\single.py", line 701, in do_one
File "calibre\gui2\metadata\single.py", line 383, in __call__
File "calibre\gui2\metadata\basic_widgets.py", line 1274, in initialize
File "calibre\db\legacy.py", line 455, in cover
File "calibre\db\cache.py", line 1004, in cover
File "calibre\db\cache.py", line 77, in call_func_with_lock
File "calibre\db\cache.py", line 1039, in copy_cover_to
File "calibre\db\backend.py", line 1549, in copy_cover_to
Exception: Failed to open 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg' with error: [Errno 22] Invalid argument: 'C:\\Users\\ksk9\\OneDrive\\Books\\Calibre Library\\Dean Palmer\\Tea With Hitler_ The Secret Histor (12124)\\cover.jpg'

Not sure the issue. This just started happening. I tried updating calibre and it hasnt made a difference
BetterRed is offline   Reply With Quote
Old 03-17-2023, 11:49 PM   #10
thegameksk
Enthusiast
thegameksk began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2020
Device: Moon+
Quote:
Originally Posted by Sirtel View Post
Use your active library on a local drive. Make changes on the local drive and then sync them to the back-up copy in the cloud (for example, using FreeFileSync). You can connect your phone to the cloud copy. BUT syncing between the local and the cloud copy must be one-way only (from local to cloud, not vice versa) and only when Calibre is not running.
So how do I get my library, all files (metadata, reading lists, etc) from one drive and put it on a local drive?
thegameksk is offline   Reply With Quote
Old 03-18-2023, 08:49 AM   #11
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,154
Karma: 237634549
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by thegameksk View Post
So how do I get my library, all files (metadata, reading lists, etc) from one drive and put it on a local drive?
Just copy the whole library folder and paste to somewhere OneDrive doesn't sync (it may sync the Documents folder, for example, unless disabled). Then point Calibre to it (Switch/create library - Use an existing library at a new location).
Sirtel is online now   Reply With Quote
Old 03-23-2023, 03:39 PM   #12
thegameksk
Enthusiast
thegameksk began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jul 2020
Device: Moon+
Quote:
Originally Posted by Sirtel View Post
Use your active library on a local drive. Make changes on the local drive and then sync them to the back-up copy in the cloud (for example, using FreeFileSync). You can connect your phone to the cloud copy. BUT syncing between the local and the cloud copy must be one-way only (from local to cloud, not vice versa) and only when Calibre is not running.
I used freefilesync to move the files from my local to one drive. If I connect to one drive using calibre companion the new library doesnt appear. The old library shows up even though I eased it from onedrive.
thegameksk is offline   Reply With Quote
Old 03-23-2023, 03:49 PM   #13
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,154
Karma: 237634549
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by thegameksk View Post
I used freefilesync to move the files from my local to one drive. If I connect to one drive using calibre companion the new library doesnt appear. The old library shows up even though I eased it from onedrive.
I haven't used Calibre Companion for a very long time. Perhaps you should ask in the CC subforum. Note that CC has been abandoned and might not work properly anymore; it may not be possible to connect any new cloud libraries to it. You must use another app if that's the case. There seem to be some alternatives, there's a thread about them in the CC forum.
Sirtel is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
3M Cloud is now Cloud Library - Anybody tried to get help? dkperez General Discussions 41 06-27-2019 09:56 AM
Best ereader for public library that uses both Overdrive and Cloud Library? brianca Which one should I buy? 17 09-11-2018 11:55 AM
Cloud Library & Libby Library to Kindle PW Mook4Nook Amazon Kindle 11 04-21-2018 11:53 AM
Library errors JPortal Library Management 6 10-20-2017 08:53 AM
3M Cloud Library Goes Live at St Paul Public Library tubemonkey News 45 12-16-2012 10:35 PM


All times are GMT -4. The time now is 12:16 PM.


MobileRead.com is a privately owned, operated and funded community.