As well noticed above, lubes seem to work well for a lot of long-distance runners and tri-athletes.
Back in my athletic days, petroleum jelly was the go-to goop. It had a lot of downsides* but was better than nothing (*stained clothes and skin, outgasses small amounts of volatile-organic-compounds, dissolves some plastics and weakens some synthetic fabrics).
But that’s ancient history and today I’d definitely try the engineered goops mentioned above.
Pre-taping (with smooth cloth tape, not the rough sprained-ankle kind) and close-fitting, slippery fabrics are also effective for athletes, in whatever combination works.
Coarser fabrics can work for a while but they will wear holes right at the chafe zones.
Personally I found pre-taping to be very effective for long events. You’ll want to develop a taping strategy that can avoid coming off or bunching up during your day if you