The electrode should be clean to start with, and the plating should be done under dim light. After all, you are forming a silver halide. It is light sensitive.

PE