Mobileread
Error communicating with device
#1  thegameksk 08-05-2020, 01:32 PM
I keep getting the following:
Device closed the network connection

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 90, in run
File "site-packages\calibre\gui2\device.py", line 594, in _upload_books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 1493, in upload_books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 710, in _put_file
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 648, in _call_client
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 684, in _receive_from_client
ControlError: Device closed the network connection

How do I fix this?
Reply 

#2  PMrev 08-05-2020, 02:10 PM
Quote thegameksk
I keep getting the following:
Device closed the network connection

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 90, in run
File "site-packages\calibre\gui2\device.py", line 594, in _upload_books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 1493, in upload_books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 710, in _put_file
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 648, in _call_client
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 684, in _receive_from_client
ControlError: Device closed the network connection

How do I fix this?
Hello,

Can you send us a debug log?

Also is this happening on wireless connection?

Thanks,
Alex
Reply 

#3  thegameksk 08-05-2020, 06:09 PM
Quote PMrev
Hello,

Can you send us a debug log?

Also is this happening on wireless connection?

Thanks,
Alex
Hi. Yes its on wireless connection.
[txt] tmp7tyto9.txt (2.9 KB, 97 views)
Reply 

#4  PMrev 08-05-2020, 07:07 PM
Quote thegameksk
Hi. Yes its on wireless connection.
Will follow up after looking at the logs.
Reply 

#5  PMrev 08-06-2020, 01:14 AM
Quote thegameksk
Hi. Yes its on wireless connection.
Can you send the CC logs please.
Reply 

#6  thegameksk 08-06-2020, 12:27 PM
Quote PMrev
Can you send the CC logs please.
Here you go.

Edit: Now I sometimes get the error message host machine closed connection. It seems to happen with my picture heavy books which are large in szie and transfer slower.

[Errno 10053] An established connection was aborted by the software in your host machine

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 90, in run
File "site-packages\calibre\gui2\device.py", line 594, in _upload_books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 1493, in upload_books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 728, in _put_file
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 610, in _send_byte_string
error: [Errno 10053] An established connection was aborted by the software in your host machine



Edit 2: calibre, version 4.22.0
ERROR: Error: Error communicating with device

[Errno 10054] An existing connection was forcibly closed by the remote host

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 90, in run
File "site-packages\calibre\gui2\device.py", line 594, in _upload_books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 1493, in upload_books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 728, in _put_file
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 610, in _send_byte_string
error: [Errno 10054] An existing connection was forcibly closed by the remote host
[txt] calibre.companion.debug.log.txt (291.5 KB, 84 views)
Reply 

#7  vikarti 08-10-2020, 05:14 AM
This sometimes (on normal android devices, a lot of likebook mars with eInk) happens for me too.
Calibre's error message
calibre, version 4.22.0
ОШИБКА: Ошибка: Ошибка подключения к устройству

There was a timeout while communicating with the device in function: Device did not respond in reasonable time

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 90, in run
File "site-packages\calibre\gui2\device.py", line 513, in _books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 1295, in books
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 50, in _synchronizer
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 648, in _call_client
File "site-packages\calibre\devices\smart_device_app\driver.p y", line 680, in _receive_from_client
TimeoutError: There was a timeout while communicating with the device in function: Device did not respond in reasonable time

companion log sent via e-mail

~7k books in sync list/on device.
Reply 

#8  codychan 08-17-2020, 12:13 PM
Any updates? calibre suddenly couldn't connect to my Kobo device after I installed the latest version of firmware(Kobo Firmware 4.23.15505) days ago.

Here is the error message when trying to connect:

```
calibre, version 4.22.0
ERROR: Error: Error communicating with device

CorruptError: database disk image is malformed

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 90, in run
File "site-packages\calibre\gui2\device.py", line 543, in _sync_booklists
File "calibre_plugins.kobotouch_extended.device.driver" , line 483, in sync_booklists
File "site-packages\calibre\devices\kobo\driver.py", line 970, in sync_booklists
File "site-packages\calibre\devices\kobo\driver.py", line 2485, in update_device_database_collections
File "site-packages\calibre\devices\kobo\driver.py", line 2973, in set_bookshelf
File "c:\t\t\apsw-47cp24d7\src\cursor.c", line 236, in resetcursor
CorruptError: CorruptError: database disk image is malformed

```

And it failed to backup my database too since it failed to connect:

```
On tree page 425139 cell 61: 2nd reference to page 396348
row 2309 missing from index shelfcontent_datemodified_index
row 2309 missing from index sqlite_autoindex_ShelfContent_1
wrong # of entries in index shelfcontent_datemodified_index
wrong # of entries in index sqlite_autoindex_ShelfContent_1

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 90, in run
File "calibre_plugins.koboutilities.jobs", line 197, in do_device_database_backup
Exception:
*** in database main ***
On tree page 425139 cell 61: 2nd reference to page 396348
row 2309 missing from index shelfcontent_datemodified_index
row 2309 missing from index sqlite_autoindex_ShelfContent_1
wrong # of entries in index shelfcontent_datemodified_index
wrong # of entries in index sqlite_autoindex_ShelfContent_1
```


BUT it actually successfully sent books to my Kobo Forma.
Reply 

#9  vikarti 08-17-2020, 02:25 PM
Quote codychan
Any updates? calibre suddenly couldn't connect to my Kobo device after I installed the latest version of firmware(Kobo Firmware 4.23.15505) days ago.

Here is the error message when trying to connect:

```
calibre, version 4.22.0
ERROR: Error: Error communicating with device

CorruptError: database disk image is malformed
.
Looks like calibre's database is corrupted.
Try with new Calibre library.
Reply 

#10  codychan 08-18-2020, 01:44 AM
Quote vikarti
Looks like calibre's database is corrupted.
Try with new Calibre library.

Maybe the new firmware made some changes to database and calibre cannot hande it since the kobo device itself works totally OK.

I guess the calibre program needs updates.
Reply 

  Next »  Last »  (1/2)
Today's Posts | Search this Thread | Login | Register