Hi,
Please follow the below steps to upgrade V13 to V14. Though you already done some of them, you may run all the steps in sequence.
ERPNext upgrade from Version 13 to Version 14 - Ubuntu
- Take backup.
- Make sure you don’t have any custom development without committed on github
- Check the Python version - For version 14 Python 3.10 is required.
- Check the node version. (v16.x is required)
- Check pip or pip3 version (22.x is required)
- Upgrade python version
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.10 python3.10-dev python3.10-distutils
Confirm python version upgrade by
python3.10 --version
Python 3.10.6
Make Python 3.10 the default.
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
Make sure python command executes python3
sudo apt install python-is-python3
python -V
Python 3.10.6
python3 -V
Python 3.10.6
- Upgrade PIP
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
pip3 install --upgrade pip
sudo apt-get remove python3-apt -y
sudo apt-get install python3-apt -y
check the PIP version and confirm.
pip --version
pip 22.2.2 from /home/erpnext/.local/lib/python3.10/site-packages/pip (python 3.10)
pip3 --version
pip 22.2.2 from /home/erpnext/.local/lib/python3.10/site-packages/pip (python 3.10)
- Upgrade Node
curl -sL https://deb.nodesource.com/setup_16.x | bash -
apt-get install nodejs redis-server -y
check node version and confirm
node --version
v16.17.0
- Upgrade NPM
npm upgrade
sudo npm install 16
sudo npm install -g npm@8.19.1
check npm version and confirm
npm --version
8.19.1
- Move your old python env folder to env-archive,
cd /opt/bench/frappe-bench/
mv env env-archive
- Create new virtual env for python-3.10
pip install virtualenv
virtualenv --python python3.10 env
env/bin/pip install -U pip
- Change git upstream from V13 to V14
env/bin/pip install -e apps/frappe -e apps/erpnext
pip3 install frappe-bench
bench switch-to-branch frappe erpnext version-14 ( edited this line. Please see the note 2 ** )
( If the above command don’t work, use this one ) bench switch-to-branch version-14 frappe erpnext --upgrade
check upstream and make sure upstream repository is V14
cd /opt/bench/frappe-bench/apps/erpnext
git status
Your branch is up to date with ‘upstream/version-14’.
cd /opt/bench/frappe-bench/apps/frappe
git status
Your branch is up to date with ‘upstream/version-14’.
- Install and upgrade V14. Please note that monolith is broken on V14 and you must install payments and hrms module in addition to ERPNext
bench get-app payments
bench get-app hrms
bench update --reset
bench --site sitename install-app hrms
bench --site sitename install-app payments
bench --site your_site_name migrate
sudo service supervisor restart
sudo service nginx restart
That is it. Check whether you ERPNext and Frappe upgrade to V14
Thank,
Divyesh Mangroliya