mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[GH-ISSUE #1556] 🐛 [Bug] Cannot login when SESSION_TYPE=REDIS #684
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#684
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @diogovalentte on GitHub (Jun 21, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1556
Originally assigned to: @IrAlfred on GitHub.
🐛 Bug
When I set
SESSION_TYPEtoREDISand try to login, it says that my credentials are wrong. Setting it toDBworks, but it seems cypht doesn't use redis for caching.I tested and the cypht container can connect to the redis container.
Version & Environment
Using docker compose:
Logs
@IrAlfred commented on GitHub (Jul 1, 2025):
Hello @diogovalentte
It seems the issue you are facing is related to Cypht's case-sensitive configuration handling. Try to use lowercase value in your SESSION_TYPE environment variable:
Instead of
Looking forward to your feedback when you have a moment to review this. Thanks !
@diogovalentte commented on GitHub (Jul 1, 2025):
Using low case "redis" worked, and I can log in and use the app, but it seems cypht still doesn't use redis for caching.
Checking redis stats it has 0 misses and hits, and looking at the command logs, it only shows pings:
How exactly is redis being used? I thought clicking to see an account inbox would be faster with redis, or something like that.
@IrAlfred commented on GitHub (Aug 23, 2025):
Hello @diogovalentte,
Thank you for your detailed feedback. You are correct in your observation.
Cypht's primary use of Redis is for session storage, not for caching email content. The PING commands confirm the connection is active, managing your login session data.
This implementation ensures reliability and scalability in multi-server environments but does not accelerate email fetching, which remains dependent on your IMAP server. Therefore, you would not see cache hits/misses for email operations.
@marclaporte commented on GitHub (Aug 25, 2025):
@diogovalentte
You wrote: "I thought clicking to see an account inbox would be faster with redis, or something like that."
The Cypht community has done a lot of work aiming to improve performance, especially on multiple accounts. This will be part of upcoming Cypht 2.5.0: https://github.com/cypht-org/cypht/issues/1624
I look forward to your feedback when it is released.
@IrAlfred commented on GitHub (Nov 11, 2025):
https://github.com/cypht-org/cypht/wiki/Cypht%E2%80%90Redis-setup