Kobo Aura H2O - SD not work anymore

Bug #1615829 reported by Guido
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Triaged
Undecided
David Forrester

Bug Description

Calibre can not access sd-card on my kobo. Card is showing up in Windows Explorer and I can read an write on it.
Here the Calibre log:

calibre Fehlerdiagnoseprotokoll
calibre 2.64 [64bit] embedded-python: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Starting up...
Storage number map:
{(7L, 1L): [(2L, 'G')],
 (7L, 2L): [(2L, 'D'), (3L, 'E'), (4L, 'F')],
 (7L, 3L): [(1L, 'H')],
 (7L, 4L): [(4L, 'C'), (5L, 'W')],
 (7L, 5L): [(1L, 'L')],
 (7L, 11L): [(1L, 'J')],
 (7L, 12L): [(1L, 'K')],
 (7L, 13L): [(1L, 'M')]}
Storage number for USBSTOR\DISK&VEN_KOBO&PROD_EREADER-3.19.576&REV_0110\N250571016870&1: StorageDeviceNumber(type=7L, number=13L, partition_number=0L)
Storage number for USBSTOR\DISK&VEN_KOBO&PROD_EREADER-3.19.576&REV_0110\N250571016870&0: StorageDeviceNumber(type=7L, number=12L, partition_number=0L)
Failed to get readonly status for drive: K with error: [Error 87] Falscher Parameter.
Drive letters for USBDevice(vendor_id=0x2237 product_id=0x4213 bcd=0x110 devid=usb\vid_2237&pid_4213&rev_0110 devinst=20)
{u'drive_letters': ['K', 'M'],
 u'pnp_id_map': {'K': u'\\\\?\\usbstor#disk&ven_kobo&prod_ereader-3.19.576&rev_0110#n250571016870&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}',
                 'M': u'\\\\?\\usbstor#disk&ven_kobo&prod_ereader-3.19.576&rev_0110#n250571016870&1#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}'},
 u'readonly_drives': set([]),
 u'sort_map': {'K': (12L, 1L), 'M': (13L, 1L)}}
Started up in 10.64 seconds with 524 books
Unable to get free space for drive: K
(87, 'GetDiskFreeSpaceEx', 'Falscher Parameter.')
Ignoring the drive K because failed to get free space for it
Job: 1 Geräteinformationen erhalten started
DeviceJob: 1 Geräteinformationen erhalten done, calling callback
DeviceJob: 1 Geräteinformationen erhalten callback returned
Job: 2 Bibliotheksinformationen festlegen started
DeviceJob: 2 Bibliotheksinformationen festlegen done, calling callback
DeviceJob: 2 Bibliotheksinformationen festlegen callback returned
Job: 3 Liste der Bücher auf dem Gerät erhalten started
DEBUG: 0.0 KoboTouch:books - oncard='None'
DEBUG: 0.0 KoboTouch:books - oncard='None', prefix='M:\'
DEBUG: 0.0 Kobo::get_firmware_version - didn't get firmware version from file'
DEBUG: 0.0 Kobo device: Kobo Aura H2O
DEBUG: 0.0 Version of driver: (2, 3, 0) Has kepubs: True
DEBUG: 0.0 Version of firmware: (0, 0, 0) Has kepubs: True
DEBUG: 0.0 Firmware supports cover image tree: False
DEBUG: 0.0 KoboTouch:books - opts.extra_customization= []
DEBUG: 0.0 KoboTouch:books - driver options= Driver:KoboTouch, Options - format_map: [u'kepub', u'epub', u'pdf', u'txt', u'cbz', u'cbr'], use_subdirs: True, read_metadata: True, use_author_sort: False, save_template: {author_sort}/{title} - {authors}, extra_customization: [], manage_collections: True, collections_columns: , create_collections: False, delete_empty_collections: False, upload_covers: True, keep_cover_aspect: False, upload_grayscale: False, show_archived_books: False, show_previews: False, show_recommendations: False, update_series: True, update_device_metadata: True, modify_css: False, support_newer_firmware: False, debugging_title: , driver_version: 2.3.0
DEBUG: 0.0 KoboTouch:books - prefs['manage_device_metadata']= on_connect
DEBUG: 0.0 KoboTouch:books - set_debugging_title to ''
DEBUG: 0.0 KoboTouch:books - length bl=0
DEBUG: 0.0 KoboTouch:books - length bl after sync=0
DeviceJob: 3 Liste der Bücher auf dem Gerät erhalten done, calling callback
CantOpenError: unable to open database file

Traceback (most recent call last):
  File "site-packages\calibre\gui2\device.py", line 87, in run
  File "site-packages\calibre\gui2\device.py", line 503, in _books
  File "site-packages\calibre\devices\kobo\driver.py", line 1661, in books
  File "site-packages\calibre\devices\kobo\driver.py", line 159, in device_database_connection
CantOpenError: CantOpenError: unable to open database file

DeviceJob: 3 Liste der Bücher auf dem Gerät erhalten callback returned
Job: 2 Bibliotheksinformationen festlegen finished
Keine weiteren Informationen verfügbar.
Job: 1 Geräteinformationen erhalten finished
Keine weiteren Informationen verfügbar.
Job: 3 Liste der Bücher auf dem Gerät erhalten finished
CantOpenError: unable to open database file

 Traceback (most recent call last):
   File "site-packages\calibre\gui2\device.py", line 87, in run
   File "site-packages\calibre\gui2\device.py", line 503, in _books
   File "site-packages\calibre\devices\kobo\driver.py", line 1661, in books
   File "site-packages\calibre\devices\kobo\driver.py", line 159, in device_database_connection
 CantOpenError: CantOpenError: unable to open database file

Tags: kobo-driver
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1615829

Changing the component for this bug.

 assignee davidfor
 tag kobo-driver
 status triaged

Changed in calibre:
assignee: nobody → David Forrester (davidfor)
status: New → Triaged
Revision history for this message
David Forrester (davidfor) wrote :

Is this a Windows 10 machine with the Anniversary Update? If so, the problem is that MS have broken something in how the see the internal storage of the Kobo device. When you try to view the device's drive in Explorer, it will display an error. For Kobo devices with an external SD card, the card is mounted and viewable correctly.

The problem here is that calibre cannot access the main storage of the device properly. That means it cannot access the database on the device. The database is used to identify the books on both the main storage and the external card. As calibre is identifying the Kobo device, but cannot read the database, it cannot work with either the main storage or the external card.

This has to be fixed by either MS or Kobo. The current previews of Win10 do have a fix and I understand this will be released in September. Kobo may also release a fix in their next firmware.

As a workaround, you can disable the KoboTouch device driver. Calibre can then see the external SD card and be able to access it. But, it will not be seen as a Kobo device. This means the extra function such as collection management, setting the series info and uploading covers, will not be done when you send books to the card.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.