01-10-2022, 06:00 PM | #1 |
Enthusiast
Posts: 30
Karma: 24
Join Date: May 2009
Device: Sony PRS-505, Kobo Aura H2O, Kobo Sage
|
"Failed: Backing up Kobo device database" - brand new Sage
Hi there,
I have a brand new Kobo Sage, and I'm getting this error when I connect it to Calibre: "Failed: Backing up Kobo device database" I read in some threads here on Mobileread that a factory reset may fix it, so I did a factory reset (even though this is a brand new device), but I still get the error. The device also has the latest firmware version. This is on Linux, running Calibre 5.34. When I click "Show details", I get: [Error 2] No such file or directory: '/Users/xxxxx/Documents/KoboBackups/KoboReader-KoboSage-N778190001972-20220110-174828.sqlite' Note: I replaced my username with xxxxx Can anyone let me know how to fix this problem? Thanks in advance. -jcf |
01-10-2022, 07:16 PM | #2 |
Enthusiast
Posts: 30
Karma: 24
Join Date: May 2009
Device: Sony PRS-505, Kobo Aura H2O, Kobo Sage
|
I solved the problem by doing the following:
- The directory in the error message does not exist. - First, there is no /Users directory, so I did a symbolic link to /home - There is also no KoboBackups directory under Documents, so I created that as well After doing the above, I no longer get the error |
Advert | |
|
01-10-2022, 07:24 PM | #3 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
That should be the location of the backup of the database. It is unlikely to be a problem with the deivce. It is probably something with the destination. Does the path exist? If not, you need to create it. And do you have permissions to write there?
Also, that does not look like the full error message. When you click the details button, it should show a traceback and other details. They are there to help debug problems like this as the traceback tells me exactly where the problem is in the code. Please post the full message by clicking the copy button and then pasting that from the clipboard. |
01-10-2022, 08:20 PM | #4 |
Enthusiast
Posts: 30
Karma: 24
Join Date: May 2009
Device: Sony PRS-505, Kobo Aura H2O, Kobo Sage
|
Hi davidfor,
I'm not sure if you saw post #2, where I mentioned that it is now fixed. I suspect that the program hardcodes the path, starting with '/Users'. I am running an old version of Lubuntu, and there is no '/Users' directory. So here's what I did: sudo ln -s /home /Users mkdir -p $HOME/Documents/KoboBackups So, while my setup now works, I think that the program should use $HOME instead of a hardcoded '/Users/<username>' -jcf |
01-10-2022, 09:13 PM | #5 |
Well trained by Cats
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Hard coded? Click the 3dot and navigate anyplace you are allowed.
And $Home does not work on Windows |
Advert | |
|
01-10-2022, 09:37 PM | #6 | |
Enthusiast
Posts: 30
Karma: 24
Join Date: May 2009
Device: Sony PRS-505, Kobo Aura H2O, Kobo Sage
|
Quote:
Let me just say to others who might read this thread that all I did to fix the error I encountered (on a Lubuntu 18.04 machine) is to issue these commands: sudo ln -s /home /Users mkdir -p $HOME/Documents/KoboBackups Restart Calibre and all is fine after that. |
|
01-10-2022, 11:04 PM | #7 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
And while links are good ideas in some places, I do not think they make sense here. The directory can be configured, suggesting that links are the way to handle it is not good. |
|
01-11-2022, 06:21 AM | #8 |
Enthusiast
Posts: 30
Karma: 24
Join Date: May 2009
Device: Sony PRS-505, Kobo Aura H2O, Kobo Sage
|
OK, fair enough. I did not configure the plugin because I was focused on just putting books onto the new device.
But the question remains - where did the '/Users' come from? It seems to me that there is some default value set elsewhere that the plugin assumes when it is not configured. If this is so, does it not make sense to use $HOME (for *nix systems) instead of '/Users' as the default? |
01-11-2022, 06:33 AM | #9 |
Enthusiast
Posts: 30
Karma: 24
Join Date: May 2009
Device: Sony PRS-505, Kobo Aura H2O, Kobo Sage
|
I think I found the root cause.
I have a Mac, but it is quite old, and this is where Calibre used to reside. It was fine before I got the Sage (I was using it with an Aura H2O). But when I got the sage, I came to the conclusion that I had to upgrade Calibre, but the highest version of Calibre that would run on my Mac is 3.48. So I installed Calibre on my Lubuntu laptop and then did an export from the Mac and then import into the Lubuntu laptop. The '/Users' came from the Mac. |
01-11-2022, 07:24 PM | #10 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
01-12-2022, 10:36 AM | #11 |
Enthusiast
Posts: 30
Karma: 24
Join Date: May 2009
Device: Sony PRS-505, Kobo Aura H2O, Kobo Sage
|
Thanks, davidfor.
I currently don't have the time to research how to file a feature request right now, so allow me to leave a request here, hoping that the right people see it. Because of my experience, perhaps some modifications can be made, maybe during the export/import process. It does not have to be a major modification; even just a pop-up message would be really helpful... one that says something like: "Please make sure your file paths are valid in the destination machine...". Since it's just a message, it will be a safe and easy modification, one that does not alter the logic of the program. I think the most logical place to put this message would be the import process, so this is not going to go into this Kobo-specific plugin. Thank you very much. -jcf Edited for clarity. Last edited by jcf; 01-12-2022 at 04:17 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Backing up Kobo device database never stops | ServerManDann | Devices | 2 | 10-01-2021 01:22 AM |
Error communicating with device: "CorruptError: database disk image is malformed" | maxxal22 | Calibre | 4 | 08-26-2020 08:03 AM |
[Kobo Glo] Updated firmware→Calibre:"Kobo database version unsupported" | 22217 | Devices | 10 | 06-25-2020 07:02 PM |
Bugs "Sanity Check epub" and "Failed Release date" on V 0.91 | qkiazd | Sigil | 5 | 12-03-2015 04:01 AM |
Kobo Aura HD: "database disk image is malformed" | cbrace | Devices | 3 | 01-21-2014 05:38 AM |