Same issue for me while upgrading it to v13. I followed exact steps at [Release Notes] ERPNext Version 13 has been released