Change your igniter, had same problem on a State HWH . The igniter will glow and light the tank and then go out, what's happening is the igniter is not producing enough ohms to keep the signal going to the gas valve. Change it on the problem I had and worked great. Good luck