No upgrade from 2.3.9. to 3.1.2

Hi!
Take a look in this topics, im pretty sure that will help you:

If the error persists, you may need to follow these steps: