Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-12-2018, 12:02 AM   #1
haertig
Addict
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 380
Karma: 2585182
Join Date: Sep 2017
Device: PaperWhite 3, Fire HD8 Gen7, Sansa Clip v2 Rockbox (audiobooks)
Suggestion for improved error message.

Suggestion for improved error message:

Current error message:
Quote:
Failed to load books from calibre library, with error:
Failed to communicate with "/calibre/interface-data/books-init?library_id=calibre&sort=author_sort.asc%2Cser ies.asc&1518410374056", network error, is the server running and accessible?
How about adding the details needed to troubleshoot? For the above error (in my example), the root cause was "No route to host". I had to use "curl" on the URL (as opposed to a web browser) to find out what the problem was so I could troubleshoot.

The URL was:
Code:
 h t t p s://my.domain.net/calibre/#panel=book_list&sort=author_sort.asc,series.asc
BTW, does anyone know what would cause an intermittent "No route to host" problem? Things will be working fine, then all of a sudden, bam, I start getting this error. If I restart the nginx webserver that is fronting calibre-server, then this usually, but not always fixes it. For a while. Then the error reappears. It seems like if I restart calibre-server, then I also have to restart nginx. That fixes it 95% of the time (for a while, then it dies again). But 5% of the time, restarting everything fails to correct the problem. Then at some time in the future I restart things again and all is good again. I'm thinking this is some kind of nginx problem. Not sure. Need to troubleshoot some more. Note that when I am getting the "No route to host" error, then I can go directly to calibre-server at it's local address on port 8080 and get in just fine. So the issue does not appear to be in Calibre (nor would I expect Calibre to be able to create this error even if it wanted to - this is network/routing, not application).

This problem intermittently appears, but it does not intermittently disappear. Once it appears, it looks to be a permanent failure ... until I start restarting things again.

[edit]
Wait, ... hold the phone. Additional information incoming. When I am getting the error, if I go into my web browser and clear ALL content stored locally by calibre-server (cookies, application cache, database storage, local storage, etc.) and try again, after a timeout the browser times out with the following error:

Code:
This site can’t be reached
h t t p s://my.domain.net/calibre/#panel=book_list&sort=author_sort.asc,series.asc is unreachable.
ERR_ADDRESS_UNREACHABLE
That's a more useful error message (it's coming form the browser, not the local data that calibre-server stored).

Then, miraculously after a few seconds of displaying this error message (which I would think would have been permanent) it continues on, all by itself with no other action by me, and successfully accesses the calibre-server website. An automatic reload or something like that.

Now I am totally confused. I have no idea what is going on.

Last edited by haertig; 02-12-2018 at 12:15 AM.
haertig is offline   Reply With Quote
Old 02-12-2018, 01:58 AM   #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: 33,470
Karma: 10205098
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I know of no way to get detailed information on underlying causes of network errors in javascript. If you do, patches are welcome, the relevant function is ajax() in ajax.pyj
kovidgoyal is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Error communicating with device message techie6 Devices 5 04-02-2018 09:25 PM
Embed Metadata - Question, Suggestion and Error ichbindasauge Calibre 2 07-24-2014 03:02 AM
KindleGen error message: E1003 Unknown error in class String. Doitsu Kindle Formats 1 06-25-2014 12:29 PM
Error message: "TEMPLATE ERROR Single '}' encountered in format string" frank14612 Calibre 22 07-02-2013 11:05 AM
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac NewDay ePub 3 10-07-2010 01:47 PM


All times are GMT -4. The time now is 07:15 PM.


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