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 09-03-2017, 07:17 PM   #1
macdoggie
Junior Member
macdoggie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2017
Device: iPad
Download from web server to iPad fails

I've been having a problem downloading pdfs from Calibre server via the web server using an iPad or iPhone (any browser). Up to 2.85 it worked great but since v3 it has not worked. I can get to the Calibre library fine and select a book. But when I try to download a pdf, it says "Safari cannot open the page because the connection was lost." There is no problem if it's an ePub. It doesn't matter if I'm inside my LAN or coming in from outside.

The server error log says (x's in ip address are mine):

"Error in SSL handshake, terminating connection: sendfile() failed to write any bytes to the socket
Unhandled exception in state: State: write_buf Client: 142.xxx.xx.xxx:61901 Request: GET /get/PDF/4523/Calibre HTTP/1.1
Traceback (most recent call last):
File "site-packages/calibre/srv/loop.py", line 565, in tick
File "site-packages/calibre/srv/http_response.py", line 572, in write_buf
File "site-packages/calibre/srv/http_response.py", line 388, in write
IOError: sendfile() failed to write any bytes to the socket

Error in SSL handshake, terminating connection: sendfile() failed to write any bytes to the socket"

Anyone have any thoughts on what is going wrong here? I'm stuck at 2.85 because I use this feature a lot.

Thanks!
macdoggie is offline   Reply With Quote
Old 09-05-2017, 09:43 PM   #2
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1) What version of iOS and calirbe are these?

2) Are you using authentication? If so does it work without auth?

3) Does it work if you turn off SSL?
kovidgoyal is offline   Reply With Quote
Old 09-08-2017, 04:48 PM   #3
macdoggie
Junior Member
macdoggie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2017
Device: iPad
Hi
1) iOS 10.3.3, Calibre 3.7
2) Doesn't work either way
3) No
It's odd as ePubs almost always work but no success with PDFs.
macdoggie is offline   Reply With Quote
Old 09-08-2017, 10:40 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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What OS are you running calibre itself on? One more thing to try is turning off sendfile in the server settings (it's called zero copy file transfers).
kovidgoyal is offline   Reply With Quote
Old 09-09-2017, 08:33 AM   #5
macdoggie
Junior Member
macdoggie began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2017
Device: iPad
Turning off zero copy transfer did the trick! Works now! Thanks so much!
It is on El Capitan.
macdoggie is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use with Calibre 3 beta content server fails theducks Calibre Companion 1 05-11-2017 11:41 AM
ebook-meta fails when used via Apache web server tigran Related Tools 3 02-02-2015 02:55 PM
Porting Calibre's built-in web server to a remote server? perryja Related Tools 6 05-02-2013 09:05 AM
calibre-server OPDS catalog - manual move to web server HaakonME Related Tools 5 09-21-2012 03:11 AM
Cannot Download eBooks to iPad 2 from Calibre Server Frank Lowney Calibre 5 03-06-2012 05:33 PM


All times are GMT -4. The time now is 04:49 PM.


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