Try ERPNext Buy Support Partners Foundation

Upgrade from v11.1.4 to v12 latest

How can I upgrade from v11.1.4 to v12 latest?

have you ever tried a Search on the forum? This should be the first step in such a case. There will be many Topics here which have dealt with this matter.

this i.e. will certainly have some Topics which may be helpful for you.

Please mention me. I have found lot of but they did not work for me. Look at my log ,log told I have switched v12 but still now my old GUI appeared

my last log …

Done in 71.92s.

Your bench was upgraded to version 12
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Port configuration list:

Site site1.local assigned port: 80
nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
As you have setup your bench for production, you will have to reload configuration for nginx and supervisor
To complete the migration, please run the following commands
()
sudo service nginx restart
sudo supervisorctl reload
Switched to version-12
Please run bench update --patch to be safe from any differences in database schema
root@nERPP01:/home/frappe/frappe-bench# bench update --patch
master branch is renamed to version-11 and develop to version-12. Please switch to new branches to get future updates.

To switch to version 11, run the following commands: bench switch-to-branch version-11

#To upgrade to the latest v11.x.x's...
#Since the v11/v12 changes, ERPNext upgrades quite weirdly - gives a bunch of messages which loop on themselves
   #To fix... (thanks to @lasalesi who posted about this on the ERPNext forum)
      #The default .git "config" file has a section...
      [remote "upstream"]
              fetch = +refs/heads/master:refs/remotes/upstream/master
      #"master" needs to become "*" #all occurrences, NB!: without the quotes
      [remote "upstream"]
              fetch = +refs/heads/*:refs/remotes/upstream/*
#Edit the file: apps > erpnext> .git > config :
   #nano ~/frappe-bench/apps/erpnext/.git/config
      #[remote "upstream"]
      #    url = https://github.com/frappe/erpnext
      #    fetch = +refs/heads/*:refs/remotes/upstream/*
#   OR   #
sed -i.bak 's/\/master/\/*/g' ~/frappe-bench/apps/erpnext/.git/config   #replace /master with /* (copy the original file to *.bak)

#IF you want v12, then run....
bench switch-to-branch version-12 frappe erpnext --upgrade
bench update --patch #not generally a requirement, but I prefer to run it anyway
1 Like

That is not clear to me. Could u explain me? I am on verson 11.1.44.

my last log given below

#########################
Building erpnext assets…

:heavy_check_mark: Built js/erpnext-web.min.js
:heavy_check_mark: Built js/item-dashboard.min.js
:heavy_check_mark: Built js/erpnext.min.js
:heavy_check_mark: Built css/erpnext-web.css
:heavy_check_mark: Built css/marketplace.css
:heavy_check_mark: Built css/erpnext.css
:heavy_check_mark: Built js/marketplace.min.js
:sparkles: Done in 16.846s
Done in 79.88s.

Your bench was upgraded to version 12
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Port configuration list:

Site site1.local assigned port: 80
nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
As you have setup your bench for production, you will have to reload configuration for nginx and supervisor
To complete the migration, please run the following commands
()
sudo service nginx restart
sudo supervisorctl reload
Switched to version-12
Please run bench update --patch to be safe from any differences in database schema
frappe@vNTDACLSnERPP01:~/frappe-bench$ sudo service nginx restart
frappe@vNTDACLSnERPP01:~/frappe-bench$ sudo supervisorctl reload
Restarted supervisord
frappe@vNTDACLSnERPP01:~/frappe-bench$ bench update --patch
master branch is renamed to version-11 and develop to version-12. Please switch to new branches to get future updates.

To switch to version 11, run the following commands: bench switch-to-branch version-11

If you run these commands…

sed -i.bak 's/\/master/\/*/g' ~/frappe-bench/apps/erpnext/.git/config   #replace /master with /* (copy the original file to *.bak)

#IF you want v12, then run....
bench switch-to-branch version-12 frappe erpnext --upgrade
bench update --patch #not generally a requirement, but I prefer to run it anyway

then the system should upgrade to v12