For this evaluation, customer stated unit shut off randomly and then came back on late at night on its own. When we went to the attic there was water in the primary drain line and a lot in the secondary drain line. The vent to the primary was capped not allowing water to drain properly. Once that was cut and water poured down the line it started to drain like normal. We checked under the sink at the p-trap and there was a clog in there. Once cleared all the water came pouring out.