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-05-2024, 07:26 AM   #1
Fox1977
Junior Member
Fox1977 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2024
Location: Tours, France
Device: Kobo Forma
Issue between Calibre and Kobo Forma

Hello all,

I'm facing an issue that i cannot explain.
I'm adding books from Calibre to my Kobo Forma. They appear with the green tick showing that they are on my reader, and if i check the metadata.calibre file on the reader, the books appear on it.
If i eject the reader, i can see the books on it.
When I replug the reader, Calibre rebuilds the metadata.calibre file and deletes the books from it, and therefore Calibre considers that the books i added are not on the reader.

Anyone has a clue of what's going on and how i can do to fix the problem ?
Thanks
Fox1977 is offline   Reply With Quote
Old 01-05-2024, 10:58 AM   #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: 29,949
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
What Version of Calibre? What OS?

Do you have the Reading List Plugin installed? <<<
theducks is online now   Reply With Quote
Advert
Old 01-05-2024, 07:14 PM   #3
Fox1977
Junior Member
Fox1977 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2024
Location: Tours, France
Device: Kobo Forma
I'm using the latest version of Calibre (7.3) as well as the latest Kobo firmware.
I tried adding a book from my wife's Calibre on her computer and it does the same (but if she adds a book on her own Kobo reader, everything is fine).
I suppose something got wrong on the database on my Kobo, but i don't understand what.
If i delete the koboreader.sqlite to rebuild the database, then it's fine, but it's not the first time it behaves this way and i cannot rebuild the whole database every time i want to add a book.
There must be an expanation, but i don't see which one...
Fox1977 is offline   Reply With Quote
Old 01-05-2024, 10:15 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Its not calibre deleting your book. Your reader is failing to index it. On re-connect calibre reads the updated index from the device. Since the book is not present in that index, calibre shows it as not on the device.

Why your device is not indexing the book, only Kobo can tell you. You can try resetting the device and also try doing an epub to epub conversion to fix any issues in the file itself.
kovidgoyal is offline   Reply With Quote
Old 01-05-2024, 10:45 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,515
Karma: 145748890
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
You may want to try rebooting your Forma to force the on-disk and in memory database copies to sync though is is more of a bandaid over an underlying issue.

If you have Windows and calibre on your computer, do you get the Windows "There's a problem with this drive. Scan the drive now and fix it." popup when you connect your Forma? This suggests either you are not safely ejecting your Forma or you are running into the database corruption issue with 4.38.21908 firmware. That error seems to worse on the Sage and Elipsa models but has been seen on most models and is the reason I now use a NickelMenu command to reboot my Sage before connecting to my computer.
DNSB is offline   Reply With Quote
Advert
Old 01-06-2024, 07:35 AM   #6
Fox1977
Junior Member
Fox1977 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2024
Location: Tours, France
Device: Kobo Forma
I don’t get any error message, neither from Windows, nor from Calibre. I always eject the reader with the button in Calibre before disconnecting it from the computer.
I will reset once more the reader, and try to see if there is a pattern when the problem comes back.
I will also look into this NickelMenu that is mentioned, I don’t know what it is but if it can help, why not…

@kividgoyal when you say that my device is not indexing the book, it’s then possible that the book is not indexed but still appears on it ? Because I’m currently reading the book on my Kobo, but if I plug it on my computer, Calibre doesn’t show that it’s on it (no green tick)
Fox1977 is offline   Reply With Quote
Old 01-14-2024, 03:28 PM   #7
chsf35
Junior Member
chsf35 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2020
Device: Kobo Clara HD
Quote:
Originally Posted by Fox1977 View Post
I
If i delete the koboreader.sqlite to rebuild the database,
I've got the same issue. How do you delete the koboreader.sqlite ? Where ?
Thanks for your help
chsf35 is offline   Reply With Quote
Old 01-14-2024, 04:30 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,543
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Fox1977 View Post
I don’t get any error message, neither from Windows, nor from Calibre. I always eject the reader with the button in Calibre before disconnecting it from the computer.
I will reset once more the reader, and try to see if there is a pattern when the problem comes back.
I will also look into this NickelMenu that is mentioned, I don’t know what it is but if it can help, why not…

@kividgoyal when you say that my device is not indexing the book, it’s then possible that the book is not indexed but still appears on it ? Because I’m currently reading the book on my Kobo, but if I plug it on my computer, Calibre doesn’t show that it’s on it (no green tick)
There is 1 of 2 things you need to do before you connect your Kobo to the computer.

1st thing to try is to go to the home screen before you plug in your reader.
If that fails to work then the 2nd thing to do is to go to the home screen and then reboot your Kobo by holding the power button until it reboots.

Please let us know which option works for you.
JSWolf is offline   Reply With Quote
Old 01-14-2024, 07:07 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,515
Karma: 145748890
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For what it may be worth, here is the current content of my nm_config.txt file:

The relevant lines for reboot and shutdown are ( <location> is which screen the menu item shows on (i.e. main for the Home, library for My Books, etc.):

Code:
menu_item : <location>     : Reboot            : power          : reboot
menu_item : <location>     : Shutdown          : power          : shutdown

Code:
#
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
menu_item : main    : Dump Syslog        : cmd_spawn      : logread > /mnt/onboard/.adds/syslog.log
menu_item : main    : Free Memory        : cmd_output     : 500  : free -m
menu_item : main    : Kernel Version     : cmd_output     : 500  : uname -a
menu_item : main    : IP Address         : cmd_output     : 500  : /sbin/ifconfig | /usr/bin/awk '/inet addr/{print substr($2,6)}'
menu_item : main    : Telnet             : cmd_spawn      : quiet: /bin/mount -t devpts | /bin/grep -q /dev/pts || { /bin/mkdir -p /dev/pts && /bin/mount -t devpts devpts /dev/pts; }
     chain_success  : cmd_spawn          : quiet: /usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 1023" || true && exec /usr/bin/tcpsvd -E 0.0.0.0 1023 /usr/sbin/telnetd -i -l /bin/login
     chain_success  : dbg_toast          : Started Telnet server on port 1023.
menu_item :main     :Typography          :cmd_output      :500   :/mnt/onboard/.adds/fontcheck.sh
#
menu_item : main    : Dark Mode          : nickel_setting : toggle : dark_mode
menu_item :main     : Invert & Reboot    : nickel_setting :toggle: invert
    chain_success   : power              : reboot
#
menu_item : main    : Screenshots        : nickel_setting : toggle : screenshots
menu_item : main    : Import books       : nickel_misc    : rescan_books_full
menu_item : main    : Toggle Auto USB    : nickel_setting : toggle : auto_usb_gadget
menu_item : main    : USB Connect        : nickel_misc    : force_usb_connection
menu_item : main    : Screensaver Status : cmd_output     : 500: quiet : test -e /mnt/onboard/.kobo/screensaver_old
      chain_success    : dbg_toast       : Screensaver is off
      chain_failure    : dbg_toast       : Screensaver is on
#
menu_item : main : Toggle screensaver    : cmd_output     : 500: quiet: test -e /mnt/onboard/.kobo/screensaver_old
      chain_failure  : skip : 3
      chain_success  : cmd_spawn         : quiet: mv /mnt/onboard/.kobo/screensaver_old /mnt/onboard/.kobo/screensaver
      chain_success  : dbg_toast         : Screensaver on
      chain_always   : skip              : -1
      chain_failure  : cmd_spawn         : quiet          : mv /mnt/onboard/.kobo/screensaver /mnt/onboard/.kobo/screensaver_old
      chain_success  : dbg_toast         : Screensaver off
menu_item : main     : Reboot            : power          : reboot
menu_item : main     : Shutdown          : power          : shutdown
#
menu_item : main    : Force WiFi on      : nickel_setting  : toggle: force_wifi
     chain_success  : nickel_wifi        : autoconnect
	 
menu_item : main    : Pocket             : nickel_open     : library: pocket

# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

menu_item : reader  : Dark Mode          : nickel_setting : toggle : dark_mode
menu_item : reader  : Invert & Reboot    : nickel_setting : toggle : invert
    chain_success   : power              : reboot
#
menu_item : reader  : Pocket             : nickel_open     : library: pocket
menu_item : reader  : Screenshots        : nickel_setting : toggle : screenshots
menu_item : reader  : Free Memory        : cmd_output     : 500: free -m
menu_item : reader : Reboot             : power          : reboot
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

menu_item : browser : Invert & Reboot    : nickel_setting : toggle: invert
    chain_success   : power              : reboot
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #

menu_item : library : Dark Mode          : nickel_setting : toggle : dark_mode
menu_item : library : Free Memory        : cmd_output     : 500: free -m
menu_item : library  : Invert & Reboot   : nickel_setting : toggle: invert
    chain_success   : power              : reboot
#
menu_item : library : Pocket             : nickel_open     : library: pocket
menu_item : library : Screenshots        : nickel_setting : toggle : screenshots
menu_item : library : Import books       : nickel_misc    : rescan_books_full
menu_item : library : Toggle Auto USB    : nickel_setting : toggle : auto_usb_gadget
menu_item : library : USB Connect        : nickel_misc    : force_usb_connection
menu_item : library : Reboot             : power          : reboot
menu_item : library : Shutdown           : power          : shutdown
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #
#
DNSB is offline   Reply With Quote
Old 01-15-2024, 03:24 AM   #10
Fox1977
Junior Member
Fox1977 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2024
Location: Tours, France
Device: Kobo Forma
Thanks for your messages.
I am not familiar with NickelMenu. I can try it on my Kobo. What does extra convenient features does it bring ?
Fox1977 is offline   Reply With Quote
Old 01-15-2024, 02:56 PM   #11
Fox1977
Junior Member
Fox1977 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2024
Location: Tours, France
Device: Kobo Forma
Quote:
Originally Posted by chsf35 View Post
I've got the same issue. How do you delete the koboreader.sqlite ? Where ?
Thanks for your help
The KoboReader.sqlite file is in the .kobo folder
Fox1977 is offline   Reply With Quote
Old 01-15-2024, 04:06 PM   #12
Fox1977
Junior Member
Fox1977 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2024
Location: Tours, France
Device: Kobo Forma
I hadn't plug the reader back to my computer since last time as i had two books to read. I finished the second today and wanted to follow your suggestions, but now i get :
CorruptError: database disk image is malformed

Traceback (most recent call last):
File "calibre\gui2\device.py", line 104, in run
File "calibre\gui2\device.py", line 558, in _books
File "calibre\devices\kobo\driver.py", line 2028, in books
File "C:\t\t\apsw-42s16m2x\src\cursor.c", line 240, in resetcursor
apsw.CorruptError: CorruptError: database disk image is malformed

I couldn't do anything, kept getting this error, so i deleted the Kobo.sqlite file to have the database rebuilt.
Now, it's fine but till when... I have no idea what causes this issue to happen. It's the 3rd of 4th time it happens over the last few months. Last time, i think it happened at the beginning of November.
I took a new USB cable, in case...
Fox1977 is offline   Reply With Quote
Old 01-15-2024, 04:31 PM   #13
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,515
Karma: 145748890
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
There is a known issue with Kobo's 4.38.21908 firmware which allows the ereader to connect to the computer without first closing all the SQLite databases. My solution has been to do a reboot before connecting, hence, the NickelMenu stuff in a previous message.
DNSB is offline   Reply With Quote
Old 01-15-2024, 05:55 PM   #14
Fox1977
Junior Member
Fox1977 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jan 2024
Location: Tours, France
Device: Kobo Forma
I installed NickelMenu and used your config file, thanks. So, you recommend that i reboot first the reader everytime i need to connect it to the computer ?
Fox1977 is offline   Reply With Quote
Old 01-15-2024, 11:28 PM   #15
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,515
Karma: 145748890
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Fox1977 View Post
I installed NickelMenu and used your config file, thanks. So, you recommend that i reboot first the reader everytime i need to connect it to the computer ?
For me, I reboot anytime I've been reading. It keeps me from getting database errors while waiting for a new firmware to drop. I haven't seen database corruption after book imports but some others have reported this.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo forma not connecting with Calibre Happy_Reader Kobo Reader 3 07-02-2021 06:47 PM
Kobo Forma Calibre communication issue jmmcg9 Devices 2 06-03-2020 01:00 AM
Kobo forma battery issue, it drains when switched off k-alex Kobo Reader 2 02-23-2020 12:42 PM
Calibre books loaded to Kobo Forma not showing up in Calibre maf654321 Kobo Reader 4 09-10-2019 08:54 AM
Forma kobo forma screen rotation issue b.binnenweg Kobo Reader 5 09-07-2019 06:05 AM


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


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