|
|
Thread Tools | Search this Thread |
01-21-2021, 05:56 AM | #1 | |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Samsung Tab S6 Lite
|
Calibre [Errno 22] with Onedrive "File on demand" activate / General sync suggestion
Hello everyone,
This is my first post here, although I have often received help from threads on this forum in the past up until today, for which I want to thank all users. So this seems the right place where to seek for help. I've been a Calibre user for the last 10 years, during which I have collected and painstakingly catalogued 7500+ books. Recently I purchased an Android tablet, with the intention of accessing my Calibre library from there as well. You can call this the general long-term objective, so please feel free to suggest other, better solutions than the one I'm trying. Second in priority, but ideal, would be to pursue what I'm already trying to do: to have Calibre function as before while my library is in the cloud, not locally stored on my laptop – that is, accessible through OneDrive's "File On Demand" option. Since my library is large in size, I thought of going for a cloud storage service not to fill up my hard drive in the first place. So I finally decided it was time to get a OneDrive subscription and move all my library to the cloud. I followed some guidelines and followed them as much as I could. The only problem is that in the many threads I read on this forum and elsewhere, I never managed to understand if what people was trying to do was the same, i.e. having the library as "File on demand", OR having the library locally stored and on the cloud as well. These are the steps I took: - I moved my Calibre library to the default OneDrive directory (C:\User\*\OneDrive\) - I quit Calibre and ran OneDrive to sync all the files to the cloud (with the exception of the metadata.db and backup, that I kept both locally stored as well) - When OneSync has finished, I opened Calibre. This led to an overlap of, like 5 seconds, when Calibre and OneDrive where running simultaneously (which I understand to be a big no-no), and a very scary message from OneDrive trying to sync "calibre.exe" (idiot me ) - Now, Calibre loads my library, I had no loss of metadata: all my books are there. Except that, perhaps logically, I can click only on those files that are locally stored. So if I need one book, I download it locally from my OneDrive, and it is properly displayed and accessible on Calibre. If on Calibre I select any other cloud-only file, it gives me this message: Code:
calibre, version 5.9.0 ERRORE: Eccezione non gestita: <b>OSError</b>:[Errno 22] Invalid argument calibre 5.9 embedded-python: True is64bit: False Windows-10-10.0.18362 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.18362') Python 3.8.5 Windows: ('10', '10.0.18362', '', 'Multiprocessor Free') Interface language: it Successfully initialized third party plugins: Quality Check (1, 11, 0) Traceback (most recent call last): File "calibre\gui2\library\models.py", line 571, in current_changed File "calibre\gui2\library\models.py", line 556, in get_book_display_info File "calibre\gui2\library\models.py", line 734, in cover File "calibre\db\legacy.py", line 448, in cover File "calibre\db\cache.py", line 723, in cover File "calibre\db\cache.py", line 72, in call_func_with_lock File "calibre\db\cache.py", line 763, in copy_cover_to File "calibre\db\backend.py", line 1445, in copy_cover_to File "shutil.py", line 202, in copyfileobj OSError: [Errno 22] Invalid argument Are they all storing their library locally, and have it ALSO on the cloud?
I know I'm asking a lot, but I also feel that there might be simple answers to what I'm asking. And sorry for being overly long; I feel the more info you have, the more you might be able to help me. This being my first post, please pardon me for inexperience. And sorry in advance to the admins if I'm posting this in the wrong section. Thanks to everyone that might help me! Quote:
|
|
01-21-2021, 09:35 AM | #2 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Samsung Tab S6 Lite
|
Aaand now Calibre doesn't even open anymore
When I runit, the launch window opens up, stops and "Initializing graphic interface" than crashes. Tried to uninstall and reinstall with no success. HELP! Last edited by tweecore; 01-21-2021 at 09:39 AM. |
Advert | |
|
01-21-2021, 09:42 AM | #3 |
creator of calibre
Posts: 43,984
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
01-21-2021, 10:41 AM | #4 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Samsung Tab S6 Lite
|
Kovid,
First of all let me thank you for creating this incredible software and be so much an active part of its community that you take your time to answer me. I did read what you're linking me, and tried to do it all the same. I shouldn't have, but it looked like to me that many other users were doing the same without much issues. As the FAQ says to use a file sync tool like Dropbox instead of a networked drive, I thought I was good enough with OneDrive. Then I'm afraid I f***ed up when I let Calibre and OneDrive run symultaneously before realizing it (really a question of seconds), as the FAQ specifically says it is essential that this must not happen. What can I do now to be able to run Calibre again? I can of course download back all my library to the local drive, but will Calibre be able to launch again? As I said in the previous post, now it crashes at startup. How can I fix this, before I can go back to focus on the issues that I had when start the thread? |
01-21-2021, 10:49 AM | #5 |
creator of calibre
Posts: 43,984
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
simply delete your current library folder (assuming you have a backup) and calibre should start fine. Once it has started, copy your backup somewhere local and point calibre to it by clicking the calibre icon in the main window calibre toolbar and choosing switc to library.
|
Advert | |
|
01-21-2021, 11:02 AM | #6 |
Grand Sorcerer
Posts: 10,390
Karma: 225099840
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
As to other people keeping their library on a cloud drive successfully - I can only speak for myself, but yes, my library in Dropbox is locally stored on all my devices, as well as in the cloud. I never use the Dropbox counterpart of "File on Demand" for my Calibre library.
As my library is over 60GB by now and my whole Dropbox folder over 300GB, I have to choose my laptops and tablets accordingly. The average 256GB of storage just won't cut it. |
01-21-2021, 11:22 AM | #7 |
Addict
Posts: 282
Karma: 2125576
Join Date: Sep 2010
Device: Kobo Forma
|
OT: This is why I'm a cloud-hating Luddite. Hard drives are so inexpensive now that I just can't see myself depending on a cloud-based "whatever". My Library resides on a 4TB RAID-1 internal HDD set, and that's backed up to (2) separate 4TB USB Hard Drives.
Good luck with getting your library restored and working again. Calibre is a wonderful piece of software, and Kovid's been great with his support. |
01-21-2021, 11:31 AM | #8 | ||
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Samsung Tab S6 Lite
|
Quote:
Quote:
The options I have in mind are: - I put my library on an SD card, manage it from Calibre (laptop), and put it in the tablet when I need something. But I wouldn't have the comfort of a Calibre-like catalogue on the tablet – wouldn't I? - Put my library on an SD card, manage it from Calibre (laptop), and choose the SD card as the location of my OneDrive directory. This way I would have the file stored locally AND on the cloud, while occupying no space in the laptop SSD. - I store my library somewhere local, and have OneDrive do planned backups (if it has such a feature) of that directory. Then access the backup in the cloud from the tablet. But it sounds a bit convoluted. In other words, I'm looking for the best solution in order not to have my library on my laptop's SSD, and be able to share it with my tablet in a smooth way. |
||
01-21-2021, 11:38 AM | #9 | |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Samsung Tab S6 Lite
|
Quote:
|
|
01-21-2021, 11:46 AM | #10 |
Grand Sorcerer
Posts: 10,390
Karma: 225099840
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
I don't depend on the cloud, I use it for convenience. All my files are backed up to several external drives as well. But I want to use my files on different devices (at least 2 laptops and a Windows tablet) and nothing beats Dropbox in this. I can't imagine lugging around external drives every time I want to access something, especially if I'm not at home.
|
01-21-2021, 11:48 AM | #11 |
Guru
Posts: 945
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
|
01-21-2021, 11:48 AM | #12 | |
Grand Sorcerer
Posts: 10,390
Karma: 225099840
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
01-21-2021, 12:19 PM | #13 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Samsung Tab S6 Lite
|
I've tried CC before doing the cloud thing, but the app doesn't let me connect to Calibre because I'm on a Public (student housing) network: can't change IP configuration, open ports, none of the sorts...
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why calibre transforms " : " and " .. " into just " _ "??. File name | Latios | Library Management | 11 | 11-09-2018 10:30 PM |
How to activate "Insert metadata as page at start of book" only when sending to devic | Latios | Calibre | 2 | 07-19-2018 12:39 AM |
"Setting up a calibre development environment" documentation suggestion | trying | Development | 1 | 03-30-2014 10:25 PM |
"[Errno 2] No such file or directory" When trying to put books on my nook. Any advice | Shadist | Calibre | 5 | 03-26-2011 10:20 AM |