If your gas water heater keeps turning off, the problem most likely lies with the thermocouple. This vital component detects when the pilot light is lit and then allows gas to flow to the burner. A faulty thermocouple will shut off gas to the burner as well as the pilot.
Why does my hot water heater reset button keep tripping?
In some cases, the water heater reset button will repeatedly trip. This is a warning sign of a larger issue such as a faulty thermostat, loose wiring, corroded parts, a grounding problem, or a malfunctioning high limit switch.May 28, 2021