The way this question is framed suggests you might be hitting the same wall most people hit with history.
Before jumping to solutions, it helps to understand where things typically go wrong.
**Most likely culprit:** a misunderstanding of the core requirement. This accounts for roughly 40% of cases I have seen.
**Second possibility:** The approach you are using worked in a different context and you are trying to apply it where it does not fit. slave has specific conditions where it works well and conditions where it falls apart.
**Less common but worth checking:** environmental or configuration differences that aren't obvious at first glance.
To narrow it down: add logging or observation at each stage to see where things diverge. That will tell you which of these you are dealing with.
by isabellabruneau64810