I would check the safety switch, it is actually located along the edge of the roof(unless Jayco changed something). It is designed to kill the power to the ceiling lights when the roof is closed, ours got "stuck" a couple times. It should be on the off door side, just ahead of the rear lifter post, make sure it is down and you can hear it click when pushed up.
2013 Starcraft Travel Star 229TB
2011 Jayco X17Z(traded in)
2010 Jayco Jay Series 1207(traded for the 17Z)
2011 Chevrolet Silverado 2500HD Z71 CC 6.0L/3.73
Reese "Pro Series" 800lb Trunnion WDH w/sway control