-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento fails to unserialize config value from Redis in HA setup #32237
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
Comments
Hi @peimanja. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
I think I figured this out as soon as I post this. I notice there is a
|
It worked! |
I'm facing a similar issue on EKS with redis, even with all the pods having the same app/etc/env.php with same crypt key. Can you please share more of your finding or your env.php |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Magento works fine without setting redis as the default cache.
When deploy Magento and configure to use redis as cache, only the first pod that comes up and writes to redis works properly but if a request get routed to rest of the pods it fails:
Here are logs from problematic pods:
/opt/bitnami/magento/htdocs/var/log/exception.log
Same in the system.log
/opt/bitnami/magento/htdocs/var/log/system.log
From my observation, looks like when cache is enabled, Magento reads some of the config from Redis on each request:
By running
magento config:show
on pods with issue, I noticed they are failing at getting one of the configs:The problematic path looks like to be
payment/authorizenet_acceptjs/currency
.I am pretty much stuck as this does not makes sense to me where the first pod can read and unserialize all values from redis without any issue while other pods fail at this specific path.
on the the first pod it shows the config on this path without any issue:
I have tried flushing the redis cache and multiple fresh installs and no luck passing this issue.
The text was updated successfully, but these errors were encountered: