A standing pilot is a small safety system. The flame heats a sensor, the sensor tells the gas valve to stay open, and the valve closes when the signal stops. A pilot that lights and then dies is usually that chain reporting a weak link.
The sensor and the valve
The thermocouple is a pair of dissimilar metals that produces a small voltage in the flame. The gas valve needs that voltage to hold the pilot port open. If the thermocouple is dirty, mispositioned, or at the end of its life, the voltage falls and the valve closes.
The checks are sequential: the pilot flame's size and shape, whether it envelops the thermocouple tip, the connection at the valve, and the measured output. Only when those are sound does the gas control valve become the suspect.
Electronic-ignition heaters work differently. They spark, prove flame with a sensor, and lock out after failed attempts. Their fault codes come from the control, and the manufacturer's list is the reference.
Venting and the hillside wind
A gas water heater's vent has to draft. A blocked flue, a vent run that is too long or wrongly sloped, or a termination exposed to gusts can pull the flame or cause spillage. On the ridges, wind is a realistic variable, and the symptom often appears in certain weather rather than constantly.
Combustion air matters too. A heater in a sealed closet or a garage that has been tightened up may not have enough air for a stable flame, and the pilot suffers first.
Gas supply
A pilot that is weak on both a full and an empty tank may be showing a supply problem. Gas pressure is measured at the valve, and the utility is responsible for what happens upstream of the meter.
What the visit covers
The technician checks the pilot flame, cleans or replaces the orifice and thermocouple as needed, verifies the gas valve's hold, inspects the vent and the combustion air, and tests the unit through a full cycle. If the valve is the fault, it is replaced with the correct part for the model.
Safety first
A gas smell is not a pilot problem to troubleshoot. Get everyone out, leave switches and flames alone, and phone 911 or the gas utility once you are clear of the building. A yellow, lazy flame or soot at the vent are reasons to stop using the unit until it is checked.