Hii There, for this there is possible that in Some of customization there is some of variable due to which its giving error. as in upgrade process its not able to proced,
you can check below link and follow steps.
If you Found answer mark it verified, Answered.
Thank you.
Kamal Khakhkhar.