Redis flakiness


Using CircleCI 2.0, Redis appears to randomly fail to start properly. We get this:

Error connecting to Redis on (Errno::ECONNREFUSED)

Sometimes tests would pass (redis starts OK), sometimes they fail with this error. It seems to be completely random. Has anyone encountered this and if so, is there a workaround or fix?



It’s probably a race condition where Redis isn’t fully up yet.


Do you have a recommendation to avoid the race condition? Some kind of wait/sleep?


Our senior dev has specifically tried to resolve this issue with the suggestion from this previous discussion:

Redis was still intermittent afterwards.


Using Dockerize and --wait solved this issue for us.


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.