The simple answer is to read the upgrade guide. It will list all the actions and the tasks to be done prior to the upgrade to avoid all the issues.
You need to make sure that you have a supported OS and DB for the target version of the system.
Regards
RB