While routine in nature, upgrading bench can be a little frustrating if you miss some steps. As any of our posts, we assume you are looking for specific details that tend to be left out (assumed) in the ERPNext forums.
In bench directory (frappe-bench typically):
bench update
for further updates:
To update Ubuntu apps:
sudo apt-get update && sudo apt-get upgrade
change directory to apps/frappe (from frappe-bench directory)
git stash (No local changes to save) git reset --hard git pull --rebase
cd to frappe-bench
bench update --reset
bench update --requirements
*** If you get an error about node or yarn please do the following ***
***Node or yarn out of date**
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo n latest
then
bench migrate
bench clear-cache
bench version --format plain
if needed (reference)
sudo supervisorctl restart all
Also, you may go back to apps/frappe and run:
git pull --rebase
you should see the following response at the terminal: Already up to date.
if you have ERPNEXT open, when your return to that tab in your browser you should see a popup of a revised version, please hit refresh. Go ahead and do so.
If you don't do bench requirements and migrate, you may see Website Settings and System Settings blank inside ERPNext, so ensure you check those two sections out first as the rest of ERPNext will work without the HTML running properly for Website and System.
Comments