Whataday,
WOW!!! THAT is a LOT of fuel to leak out.
I'm not sure if your Onan 400 shares a similar design to our Onan Marquis Gold 7kWatt (also gas). I'm going back a number of years here, so hopefully my memory isn't too far off. I can tell you that originally my generator had two fuel filters: one right on the generator and another before the generator fuel pump. It was kind of strange, but that's the way they did it.
Well, getting the fuel lines on the filter on the generator tight enough so they wouldn't leak was a bit of a trick. It was behind the air cleaner housing. If you completely removed the air cleaner housing assembly, you could generally get things tight enough. But if you tried to take a shortcut and not remove the air cleaner assembly, you couldn't get the connections tight enough and it would eventually vibrate loose and leak. I noticed mine leaking one time. This was a couple of weeks after I did the fuel filter change. It didn't leak immediately after I changed the filter.
When I went to the local Onan parts distributor, he sold me a "new" filter kit. It only had the one filter that went down by the fuel pump and a little doodad (technical term) which permanently replaced the filter mounted on the generator. It was a short length of tube which had six sides (like a nut) so that it could easily be tightened with the air cleaner assembly in place. Apparently, the leaking was a very common problem, so they removed one of the filters from the system and replace it with this new part. Since this new "doodad" didn't have to be serviced, it minimized that leaking issue once it was installed properly.
Here's a link which talks about the Onan gas fuel filters. Again, this was for the Onan Marquis Gold generators.
Again, I have no idea if your 4000 series is similar, but if it is, perhaps that's the problem. Check to see if there is a filter mounted on the generator and if it's leaking fuel, or looks like the source of the leak. Perhaps your generator never got the update kit.
Good Luck,
~Rick
2005 Georgie Boy Cruise Master 3625 DS on a Workhorse W-22
Rick, Gail, 1 girl (27-Angel since 2008), 1 girl (22), 2 boys (23 & 20).
2001 Honda Odyssey, Demco Aluminator tow bar & tow plate, SMI Silent Partner brake controller.