Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2022, 06:00 PM   #1
jcf
Enthusiast
jcf began at the beginning.
 
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
jcf is offline   Reply With Quote
Old 01-10-2022, 07:16 PM   #2
jcf
Enthusiast
jcf began at the beginning.
 
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
jcf is offline   Reply With Quote
Old 01-10-2022, 07:24 PM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
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.
davidfor is offline   Reply With Quote
Old 01-10-2022, 08:20 PM   #4
jcf
Enthusiast
jcf began at the beginning.
 
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
jcf is offline   Reply With Quote
Old 01-10-2022, 09:13 PM   #5
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: 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
theducks is offline   Reply With Quote
Old 01-10-2022, 09:37 PM   #6
jcf
Enthusiast
jcf began at the beginning.
 
Posts: 30
Karma: 24
Join Date: May 2009
Device: Sony PRS-505, Kobo Aura H2O, Kobo Sage
Quote:
Originally Posted by theducks View Post
Hard coded? Click the 3dot and navigate anyplace you are allowed.
And $Home does not work on Windows
Sure. I am not here to debate with you.

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.
jcf is offline   Reply With Quote
Old 01-10-2022, 11:04 PM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jcf View Post
Sure. I am not here to debate with you.

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.
You might not be here to debate the issue, but, you are posting incorrect information. The plugin needs to be configured to suit the user. This includes deciding whether to do a backup and then setting the directory to use. The directory will only be read only of neither of the options for when to do a backup is select. Which means that one of the checkboxes at the top of the "Device Database Backup" group is selected. The field will be enabled and you can type a path into the field or use the button next to it to select the directory you want to use. That uses the OSes directory picker which should have a way to create the desired directory.

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.
davidfor is offline   Reply With Quote
Old 01-11-2022, 06:21 AM   #8
jcf
Enthusiast
jcf began at the beginning.
 
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?
jcf is offline   Reply With Quote
Old 01-11-2022, 06:33 AM   #9
jcf
Enthusiast
jcf began at the beginning.
 
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.
jcf is offline   Reply With Quote
Old 01-11-2022, 07:24 PM   #10
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jcf View Post
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.
Yes, that would be the case. The plugin does not have a default value for the destination directory. If you copied the configuration from another machine, then you would have inherited the previous value.
davidfor is offline   Reply With Quote
Old 01-12-2022, 10:36 AM   #11
jcf
Enthusiast
jcf began at the beginning.
 
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.
jcf is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 12:05 AM.


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