Migrating erpnext from version 12 to 13

Hello,
i have been trying to fresh install frappe+erpnext version 13 and then install my apps and databases on the new version.
My problem starts when im done installing my apps on a fresh site and trying to migrate my database on that site the migration raises errors and all other sites stop working (including the one that comes with fresh installation) when i try to login it throws an error “session failed to start” but with no network errors or console errors.
so my question is: are there patches to migrate the database from v12 to v13 and if no could this be the reason behind the error in other sites?

Yes, there are lots of patches. Please post the exact commands you executed and the error message you got. :slight_smile:

If you have a working installation of v13, the following should restore and migrate the old database:

bench --site [YOUR SITE] restore [YOUR BACKUP] --force
bench --site [YOUR SITE] migrate
bench restart
1 Like

Thank you for you fast response,
i have been trying to replicate the error that appeared previously but this time checking where the error starts to arise.
so this is what i’ve done:
-make a new site
-install all the apps to the site
here is where i got the errors in my site:

the error is from nginx and this is the error log:

2021/10/25 08:22:55 [notice] 14666#14666: signal process started
2021/10/25 08:58:44 [notice] 5860#5860: signal process started
2021/10/25 09:02:19 [error] 5861#5861: *60 connect() failed (111: Connection refused) while connecting to upstream, client: 88.201.76.129, server: site1.local, request: “GET /socket.io/?EIO=3&transport=polling&t=NoshwtV HTTP/1.1”, upstream: “http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=NoshwtV”, host: “15.207.237.205:8001”, referrer: “http://15.207.237.205:8001/app

and when i try to connect to site1.local i can login but as soon as the login is successful:

but this error doesnt show any console or network errors and it doesnt log anything in nginx.

site1.local works fine until i make my site with bench new-site and add my apps to it.