Thanks everyone for your assistance. We decided to start with a fresh copy of 3.9 and manually copy over what was still needed.
Installing and upgrading help
Script for upgrading Moodle via command line.
This discussion has been locked so you can no longer reply to it.