Just talking to a friend yesterday who needs a new roof. The problem is they had solar panels installed on their roof, and a grommet under one of the panels has rotted which allows water to get in. It appears that may have happened because the solar panels weren't installed properly. So they need to replace the roof as well as an inside ceiling. And of course, to do that, they have to remove the solar panels, and then reinstall them after the new roof goes on.
There was a 15 year warranty on the solar panel installation, but the company has gone out of business. So they are out of pocket on everything.