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

Traefik + Authentik = Login loop #2350

Closed
gogo199432 opened this issue Mar 25, 2022 · 7 comments
Closed

Traefik + Authentik = Login loop #2350

gogo199432 opened this issue Mar 25, 2022 · 7 comments
Labels

Comments

@gogo199432
Copy link

Describe the bug/problem
I have calibre-web behind traefik the same way as with my other apps and use authentik for sso (instead of say authelia). The weird issue I'm having is that I can log in through authentik, and I do get redirected to the base library view. However as soon as I try to navigate anywhere else, it instantly redirects me to the login page of calibre-web.

Logfile (not very useful :/ )
calibre-web.log

Expected behavior
Once logged in through reverse proxy it should just work

Environment (please complete the following information):

  • OS: Linux
  • Python: 3.8.10
  • Calibre-Web version: 0.6.17 - c538178
  • Docker container: LinuxServer
  • Browser: Firefox
@AnonTester
Copy link
Contributor

debug log of login-loop on my system may be related. It appears that sometimes the db is locked and thus cannot store login details.
login-issue-locked-db-sesson-not-saved-calibre-web.log

@LordZappZarapp
Copy link

Issue #2350 and #2351 seem to be the same Problem.
The Logs are very similar.

OzzieIsaacs added a commit that referenced this issue Mar 29, 2022
Fix for #2309 (long unicode filenames could get to long)
@OzzieIsaacs
Copy link
Collaborator

If possible for you please try to update to the newest nightly version or alternatively if possible try to uninstall gevent

@LordZappZarapp
Copy link

If possible for you please try to update to the newest nightly version or alternatively if possible try to uninstall gevent

Same here:
I switched to the latest nightly and could not recreate the error. Thanks a lot!

@gogo199432
Copy link
Author

gogo199432 commented Mar 29, 2022 via email

@kurokay
Copy link

kurokay commented Oct 26, 2022

Same here, Traefik + Authentik + Calibre-Web version: 0.6.19 + proxy auth -> same issue

@ahillebrandt
Copy link

Environment (please complete the following information):

  • OS: Linux
  • Python: 3.8.10
  • Calibre-Web version: 0.6.17 - c538178
  • Docker container: LinuxServer
  • Browser: Firefox

Is it possible, that you've proxied your traffic by cloudflare?
I just solved this problem by making an exception for calibre.domain.com in my Class A Record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants