The war in Ukraine was caused the same expansionist tendencies that have characterized Russian history for centuries. Russian nationalists want a bigger, more powerful Russia. These impulses caused Russia in invade the Crimea in 2014.
The high price of oil enabled both invasions and is the proximate cause.