Also in addition to other posters' input, you mention that there is no AC power available when you run the generator. Do you mean no AC power from either the Inverter output (feeding the inverter/emergency AC panel circuits) nor any AC power from the Shore/Gen fed AC panel? As the previous poster says, the pedestal AC breaker could have tripped which would remove shore power from coming through your transfer switch. If there is no AC power at all, even with gen running, then the problem could be your transfer switch; bad wiring connections; or a breaker tripped on your main AC panel that is fed from the output of the transfer switch. Sometimes breakers trip off but they don’t look tripped. Turn off and then on the breakers if there is any doubt especially the breaker between transfer switch and your main AC panel input as a start.
I ripped off a basic schematic from one of the inverter/charger vendors to help visualize a basic setup for you. It is likely not exactly what you have but should be "similar". Note the two separate AC Panels....one for loads that power from the inverter AC output / or from normal shore/gen AC when it is available (passes through the inverter bypass relay typically); and the other Main AC panel that operates from shore/gen power only. Gen, transfer switch and shore power are shown in the lower center of the simplified diagram. Hope that helps a bit.
__________________
|