In what ways can judicial accountability be ensured without undermining the independence of judges?

Recent events show disagreement among judges regarding Supreme Court directives and the debate over impeachment as a disciplinary tool. I want to understand how systems can hold judges accountable while protecting their independence.