I've also had this problem, after the gas has been turned of for a couple of weeks.
The obvious cause is the thermocouple, although there could be several other possible causes, which have already been mentioned.
After this had happened to me several times, I checked the old thermocouples...