Check to make sure the fuel bulb is firm and if not pump pump pump, release air out of schrader valve in fuel lines near top of Gen, pump bulb. The bulb needs to feel firm like the one in the fuel line to OB. If the system has air in it, the gen will run for a few, start to sound a little like a diesel and maybe even a little back fire, pop pop. Then the auto shutdown will trip, lights flash (oil included) then all becomes quiet.
What now? Start looking, 108 hours on Gen. Old owner just had the oil changed and both fuel filters before I purchased. Dates written on filters and oil in Gen so clean hard to read the level. All looks good and OB runs great. Old saying is if it work well before servicing and now you have a new problem, ask yourself, did I breed this problem into the situation? Maybe?
I suggest when changing filters, fill them with fuel or oil (common sense will help you decide which) if you can and install if possible without spilling. It will save you lots of time and frustration. If you are changing a diesel fuel filter and you fail to do this, in most cases you will have problems bleeding the air out and getting it to run correct again.
Gen runs great now, starts fast and easy and works excellent under a load. What works for me might not work for you but I offer it as an easy option to try.