|  03-17-2023, 07:27 PM | #1 | 
| Enthusiast  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 | 
|   |   | 
|  03-17-2023, 07:40 PM | #2 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 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'. | 
|   |   | 
| Advert | |
|  | 
|  03-17-2023, 07:40 PM | #3 | 
| Grand Sorcerer            Posts: 13,982 Karma: 243829945 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.
		 | 
|   |   | 
|  03-17-2023, 07:44 PM | #4 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 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. | 
|   |   | 
|  03-17-2023, 08:11 PM | #5 | 
| Enthusiast  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?
		 | 
|   |   | 
| Advert | |
|  | 
|  03-17-2023, 08:14 PM | #6 | |
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | Quote: 
 BR | |
|   |   | 
|  03-17-2023, 08:38 PM | #7 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | |
|   |   | 
|  03-17-2023, 08:42 PM | #8 | 
| Grand Sorcerer            Posts: 13,982 Karma: 243829945 Join Date: Jan 2014 Location: Estonia Device: Kobo Sage & Libra 2 | 
			
			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.
		 | 
|   |   | 
|  03-17-2023, 09:58 PM | #9 | |
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			Read what the OP wrote:  BR Quote: 
 | |
|   |   | 
|  03-17-2023, 11:49 PM | #10 | |
| Enthusiast  Posts: 32 Karma: 10 Join Date: Jul 2020 Device: Moon+ | Quote: 
 | |
|   |   | 
|  03-18-2023, 08:49 AM | #11 | 
| Grand Sorcerer            Posts: 13,982 Karma: 243829945 Join Date: Jan 2014 Location: Estonia Device: Kobo Sage & Libra 2 | 
			
			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).
		 | 
|   |   | 
|  03-23-2023, 03:39 PM | #12 | |
| Enthusiast  Posts: 32 Karma: 10 Join Date: Jul 2020 Device: Moon+ | Quote: 
 | |
|   |   | 
|  03-23-2023, 03:49 PM | #13 | 
| Grand Sorcerer            Posts: 13,982 Karma: 243829945 Join Date: Jan 2014 Location: Estonia Device: Kobo Sage & Libra 2 | 
			
			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.
		 | 
|   |   | 
|  | 
| 
 | 
|  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 |