I would imagine it taking out plenty of minerals and nutrients from the soil though, needing constant fertilizer usage which comes with its own set of problems.
The minerals remain in the ashes. Other nutrients may be an issue, but for example when producing biogas, they’re essentially in the leftover parts of the plant. Biogas is mostly methane, so carbon and hydrogen.