Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 03-12-2021, 02:47 AM   #1
moorekbk
Junior Member
moorekbk began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2021
Device: none
Question Files Not Found Error

I have a weird issue, I think.

I am able to successfully download books from inside and outside my private network, provided I connect to calibre-server via the appropriate IP address and port.

If I try to use the nginx reverse proxy that I set up, I am unable to download any books, even though the library will load along with the "thumbnails" and metadata of all of my books.

The error report from calibre-web and the error logs for nginx always center around the content server being unable to find jpegs, css files, and other resources in the library:

Code:
[error] 1086#1086: *3890 open() "/usr/share/nginx/html/book-file/95/EPUB/4158303/16138093020/images/00052.jpeg" failed (2: No such file or directory)
Setting this up seems like it should be straight-forward, as described in the content server section of the manual, but I am in need of new ideas. I thought that maybe I could add a root directive to my virtual host directive, but that does not seem to be suggested in any of the tutorials I have read. Also, I do not know where to find the resources that are "missing" to add the directive.

If it helps, my server OS is Ubuntu 20.04.

Last edited by moorekbk; 03-12-2021 at 02:48 AM. Reason: typo
moorekbk is offline   Reply With Quote
Old 03-12-2021, 09:48 PM   #2
moorekbk
Junior Member
moorekbk began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2021
Device: none
Well, it was a weird issue...

After tinkering around a bit, I decided to dive in and watch the debug logs for nginx to see if I could glean any info from that. Set nginx up for debugging, started a tail on nginx's error.log...and I was able to access the server using nginx. Not on my computer or tablet, but my phone.

After that, I cleared my desktop's browser cache of references to calibre, restarted the network manager, restarted my tablet, and now everything is working on all three devices it seems.

Honestly, I am not 100% sure what made it work.
moorekbk is offline   Reply With Quote
Old 03-12-2021, 10:01 PM   #3
moorekbk
Junior Member
moorekbk began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2021
Device: none
Seemingly Fixed

Well, it was a weird issue...

Sat down to watch nginx logs and figure this out.

Set up nginx for debugging, added a tail to nginx's error log...and the browser was able to access the server via the nginx proxy without issue. Not on my desktop or tablet, but on my phone.

Seeing that it worked there, I restarted the desktop's network-manager, cleared the browser cache of any reference to the virtual host, cleared the desktop hosts file of the commented out references to the virtual host, restarted calibre-server, restarted the tablet, and everything was coming up roses.

Honestly not 100% on what was causing the issue. I do know that I now have a much greater respect for how many different pieces make up my ebook-serving environment and how each one need to be carefully considered when doing something like this.
moorekbk is offline   Reply With Quote
Reply

Tags
calibre, nginx, ubuntu 20.04


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GoComics - Conversion Error / No articles found, aborting (Error Code: 1) Purple Lady Recipes 18 04-08-2018 04:05 PM
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" oren ePub 8 02-20-2012 07:20 AM
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" oren Android Devices 1 02-20-2012 04:10 AM


All times are GMT -4. The time now is 03:39 PM.


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