Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛Calibre-Web errors in CF tunnel #1387

Open
ljo123 opened this issue Jan 2, 2025 · 0 comments
Open

🐛Calibre-Web errors in CF tunnel #1387

ljo123 opened this issue Jan 2, 2025 · 0 comments
Labels
Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working

Comments

@ljo123
Copy link

ljo123 commented Jan 2, 2025

Describe the bug
I'm running calibre-web in docker alongside a cloudflared container. Calibre-web works perfectly on the LAN and also works behind nginx proxy manager with LetsEncrypt certs. However, when I access through my public domain and the cloudflare tunnel I get errors when trying use the "read in browser" and "send ebook to kindle" functions. Either nothing happens (send to kindle) or the new window opens but remains blank (read in browser). Calibre-web gives no errors. This setup has been working correctly for several years and I'm not sure when the issue started.

To Reproduce
Steps to reproduce the behavior:

  1. Spin up Calibre-Web container and set up a public hostname in zero trust
  2. Log in, browse to any book, click the "read in browser" button
  3. See error

If it's an issue with Cloudflare Tunnel:
5. cloudflared config (compose):

cloudflared: image: cloudflare/cloudflared:latest container_name: cloudflared command: tunnel run --token <my-token> restart: unless-stopped

Expected behavior
The new window should display the ebook contents or the button should queue up the book for emailing.

Environment and versions

  • OS: Ubuntu 22.04.5 LTS
  • Architecture: x64
  • Docker: latest
  • Cloudflared:latest
  • Calibre-web:latest

Logs and errors
This is the only error that I can see in the tunnel and calibre-web logs:

ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp LAN-IP:8083: connect: connection refused" connIndex=1 event=1 ingressRule=1 originService=LAN-IP:8083

Additional context
All my config is pretty basic. I even tried spinning up fresh containers for the tunnel and calibre-web with all default settings and still get the same error. I've also tried turning off compression and chunked encoding.

Any help with diagnosing or fixes to try would be greatly appreciated!

@ljo123 ljo123 added Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Normal Minor issue impacting one or more users Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant