GE range help

oven does not light but ignitor glows bright. Is it the ignitor, Thermostat or the safety valve? It worked last night but have been smelling gas when lighting for a couple of times