Water never leaks where it lands
A roof leak travels along beams and only shows up as a stain somewhere else entirely. By the time you can see it, the water has usually been in the timber for months.
Trace the source and fix the flashing and waterproofing first — replacing ceiling boards under a live leak just buys you a few months.