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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2023, 03:39 PM   #1
HuckinFappy
Junior Member
HuckinFappy began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle Paperwhite
Question Problems with nginx reverse proxy and calibre

I've recently set up nginx as a front end reverse proxy for all my internal servers (plex, the *arrs, calibre/calibre-web). I'm sure this is probably an nginx config question, but I'm starting here since I got all of the other subdomains to work over HTTPS using certbot and LetsEncrypt, except for calibre 7.2.

All servers run in docker containers on an Ubuntu 23.10 (mantic) host and nginx version 1.24.0-1ubuntu1, and are cleanly accessible from the internal network with no problems without the proxy...the host they run on is not using a firewall at this time (the router is, of course). With ports 443, 8080, 8081, and 8181 open on the router (the latter 3 opened during debugging, probably unnecessary) I get to the server, but I get a KasmVNC error:

(domain name blacked out for privacy)


Here's my basic nginx configuration for this subdomain, based on the Calibre documentation, but with SSL configuration added:



The Chrome developer tools show the following:


I don't know if this is a red herring or if there's websocket configuration I need to add (that is not mentioned in the documentation though), but that would be new to me, so i could use some assistance if so. I suspect this may be the issue, since trying Calibre 6.x and 5.x versions give similar errors.

I was able to set up the proxy to forward to the content server instead (port 8081), but that's not the interface I'm looking for. I use Calibre-web for that functionality, and am looking for the main Calibre UI for full remote library maintenance when on the go

Thanks for any ideas, and let me know if more information is needed.
HuckinFappy is offline   Reply With Quote
Old 12-28-2023, 10:13 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: 44,028
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I have no idea what that is. There is no main.bundle.js in the calibre content server.
kovidgoyal is offline   Reply With Quote
Old 01-01-2024, 02:25 AM   #3
HuckinFappy
Junior Member
HuckinFappy began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle Paperwhite
I was right...it was the websockets. I needed to add the following to the location block for my nginx virtual server:

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
HuckinFappy is offline   Reply With Quote
Old 04-26-2024, 09:24 PM   #4
GinoGinelli
Junior Member
GinoGinelli began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2024
Device: Kobo Libra
Dead post but commenting to say I was having the same problem and this was the solution.

I did not seem to need 2 of the directives mentioned and it worked fine with only
proxy_set_header Upgrade $http_upgrade;

I could remove the following 2 and still load calibre fine:
proxy_http_version 1.1;
proxy_set_header Connection $http_connection;

This was using lscr.io/linuxserver/calibre and I just used NGINX 1.18 from the default ubuntu repo (on ubuntu focal)

Cheers HuckinFappy
GinoGinelli is offline   Reply With Quote
Old 05-09-2024, 06:24 AM   #5
pandako
Junior Member
pandako began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2020
Device: Kobo Clara HD
Adding that I further needed to change the KasmVNC settings (in the web UI where the error is) so that the "websocket path" value was "calibre/websockify" (i.e. prepending my nginx proxy path) instead of the default value "websockify". Otherwise the web GUI was trying to connect to domain.com/websockify instead of domain.com/calibre/websockify.
pandako is offline   Reply With Quote
Old 05-12-2024, 11:40 PM   #6
p8d
Junior Member
p8d began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2024
Device: kindle paperwhite
Quote:
Originally Posted by GinoGinelli View Post
Dead post but commenting
The word here is necro. In use as necro'ing occasionally without apostrophe or necrod.
p8d is offline   Reply With Quote
Old 05-13-2024, 01:24 AM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,913
Karma: 148318164
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by p8d View Post
The word here is necro. In use as necro'ing occasionally without apostrophe or necrod.
Not sure if posting in a thread where the last post from 2023 was on 2023-Dec-31 qualifies as necro posting. And the posts you are complaining about were from a poster on 2024-Apr-26 who found the contents of the thread helped solve their problem and another poster further commenting on changes they made for fix the same issue on 2024-May-09.
DNSB is offline   Reply With Quote
Reply

Tags
https, kasmvnc, nginx, proxy, ubuntu 23.10

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre http to https nginx reverse proxy issue vinuabe4 Server 2 01-20-2020 08:01 AM
Need help: Using NGINX as reverse-proxy for Calibre haertig Related Tools 5 11-18-2017 08:54 PM
Calibre-server reverse proxy issues dom134 Related Tools 12 05-30-2016 04:39 PM
Nginx Calibre Proxy Ackis Calibre 2 04-19-2016 01:48 PM
Aldiko + Calibre-Server + Reverse Proxy dummkauf Related Tools 4 02-02-2016 02:55 PM


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


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