The parts have to be clean, which for me would be a steel bristle brush and brake cleaner, which may end up cleaning other things as well so protect surfaces, and let the epoxy cure longer than the package says.
You can see a little of what I did, right in the middle of this picture. And that's just one side of it. There is epoxy and wire everywhere I could put it it without interfering with anything else.