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, 01:02 AM   #1
haertig
Groupie
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: 178
Karma: 1187954
Join Date: Sep 2017
Device: Nook ST, Fire Gen7, PaperWhite3
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 01:15 AM.
haertig is offline   Reply With Quote
Advert
Old 02-12-2018, 02: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: 32,266
Karma: 9826458
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
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 2 02-16-2018 01:48 PM
Embed Metadata - Question, Suggestion and Error ichbindasauge Calibre 2 07-24-2014 04:02 AM
KindleGen error message: E1003 Unknown error in class String. Doitsu Kindle Formats 1 06-25-2014 01:29 PM
Error message: "TEMPLATE ERROR Single '}' encountered in format string" frank14612 Calibre 22 07-02-2013 12:05 PM
error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac NewDay ePub 3 10-07-2010 02:47 PM


All times are GMT -4. The time now is 03:52 AM.


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