ERPNext upgrade from v13 to v14
I'm going to explain how to upgrade Frappe and ERPNext from v13 to v14.
- Take backup to be on safe side
Make sure all apps are clean and does not contain uncommitted change
git statusCheck python version ( Required Python 3.10 )
python3 -VUpgrade python
sudo apt install software-properties-common -ysudo add-apt-repository ppa:deadsnakes/ppasudo apt install python3.10 python3.10-dev python3.10-distutilshttps://cloudcone.com/docs/article/how-to-install-python-3-10-on-debian-11/
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1sudo update-alternatives --install /usr/bin/python3 python3 /opt/bench/erpnext/Python-3.10.0/python 1Confirm python version
python3.10 --versionSet default python
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1Make sure python command executes python3
sudo apt install python-is-python3Make sure
python -Vandpython3 -Vreturn same versionCheck pip3 version ( Required v22.x )
pip3 --versionUpgrade pip3
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10pip3 install --upgrade pipsudo apt-get remove python3-apt -ysudo apt-get install python3-apt -yVerify pip3
pip --versionandpip3 --versionCheck nodejs version ( Required v16.X )
node --versioncurl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -sudo apt-get install -y nodejshttps://techviewleo.com/install-nodejs-and-npm-on-debian-linux/Upgrade NPM
npm upgradesudo npm install -g npm@8.19.1Verify NPM
npm --versionMove your old python env folder to env-archive, in-case anything goes wrong, you can return to the original
cd /opt/bench/frappe-bench/mv env env-archiveCreate new virtual env for python-3.10
pip install virtualenvvirtualenv --python python3.10 envenv/bin/pip install -U pipenv/bin/pip install -e apps/frappe -e apps/erpnextIf fails,
sudo apt install libpq-dev python3-devsudo apt install libjpeg-dev zlib1g-devhttps://stackoverflow.com/questions/35104097/how-to-install-psycopg2-with-pg-config-error https://computingforgeeks.com/how-to-install-python-on-debian-linux/
Change branch to V14
bench switch-to-branch version-14 frappe erpnext --upgradeInstall 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 paymentsbench get-app hrmsbench update --resetbench --site *sitename* install-app hrmsbench --site *sitename* install-app paymentsbench --site *sitename* migrateUpgrade SSL
sudo certbot --nginx
https://cloud.erpgulf.com/blog/support-forum/erpnext-upgrade-from-version-13-to-version-14-ubnutu
No comments yet. Login to start a new discussion Start a new discussion