I am trying to mount a ceiling fan directly to an exposed beam on a cathedral ceiling. I will be running the wire in a channel mounted to the side of the beam.

I mounted a 1/2" pancake mounting box directly to the beam. The problem I am having is when I install the mounting bracket to the pancake box, then install the canopy, the 1/2" mounting box is not covered by the canopy.

I have looked everywhere for an answer to how to properly install a ceiling fan to an exposed beam like this, and I havent found anything that helps me out.

Any ideas?