There is a very strange issue on our Magento site. We are performing some custom write operations after order has been placed using checkout_submit_all_after event. These work fine for some order but the code breaks sometimes. I put a log on every step and got this error .

Notice: Redis::exec(): send of 8192 bytes failed with errno=104 Connection reset by peer in vendor/colinmollenhour/credis/Client.php

These errors only show for some random orders. I contacted our AWS server guy and he claimed its a coding issue and not Redis configuration. I don't really know Redis so I don't know the next step.

Please, does anyone has any clue on how I can solve this?? I also notice when we clear Magento cache, the issue will be fixed but if we don't clear cache, the code starts breaking.


1 Answer 1


It's not a magento issue it's a redis and / or sever config issue. Redis is killing the connection. I was typing up a reply and then I spotted this answer on SO


So yeah connection issue. Not coding issue.

  • Thanks @Dominic for your reply. But what's strange is that if we had 400 orders, Redis breaks for only 10-20 out of it. I still don't get why Redis is killing connection only for some orders Jun 3, 2019 at 23:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.