As far as I can remember it, upgrading to the 5.0.x track should've been
done via 4.3.18 as an intermediary track. Also, if you can afford it and
you want to stick to the 5.0.x track rather than go for 5.2.x I would go
to 5.0.11 - 5.0.7 had some issu...