If the pilot light starts burning but does not stay lit, you may have air in the lines. To solve this issue, you will need to hold the pilot light button in to let out all of the oxygen that’s in the pipe. The time you will need to purge varies depending on the length of your gas line, but a good way to know it’s clear is to wait for a slight scent of gas, then you should be good.
*If your pilot light has been off all summer this is a good place to start.