Small Engine Troubleshooting Problems? Ask a Mechanic Now.
This could be a lot of different things, depending on which model of genset it is.
It could be a bad oil pressure switch, a bad SSR, possible a bad carburetor, or a bad vent in the fuel tank.
Check the oil level and make sure it is full.