Docs › Upgrades & Flow AI
Upgrade ERPNext v15 to v16
Upgrade ERPNext v15 to v16 safely: new Python 3.14, Node 24 and MariaDB 11.8 requirements, backup, staging test, bench commands, custom apps and fixes.
To upgrade ERPNext v15 to v16, you move a whole bench to a newer stack and then switch every app to its version-16 branch. Version 16 needs Python 3.14, Node.js 24 and MariaDB 11.8, so most of the work happens before you touch ERPNext itself. Always do it on a copy first: the database migration can't be undone without a backup.
What changes between v15 and v16
| Component | v15 | v16 |
|---|---|---|
| Python | 3.10 or newer | 3.14 |
| Node.js | 18 or newer | 24 (22 and older fail when assets are built) |
| MariaDB | 10.6.6 or newer | 11.8 |
| Redis | 6 | 6 or newer |
| Yarn / pip | 1.12+ / 20+ | 1.22+ / 25.3+ |
| Recommended OS | Ubuntu 22.04 / 24.04 | Debian 13+ or Ubuntu 24.04+ |
Inside the apps, v16 brings a new desktop and navigation, a new print designer, a new data import wizard, Insights dashboards and, from v16.60, Frappe Flow, the built-in AI assistant. See what's new in v16.60.
Before you start
- List every installed app with
bench version. Each one, including India Compliance, Frappe HR and your custom apps, needs a branch that supports v16. - Check custom apps. Read the app's README or ask its developer. A custom app with no v16 branch will stop the upgrade.
- Plan downtime. On a small server the branch switch and migration can take 30–60 minutes.
- Use a staging copy. Restore last night's backup on a second server or bench, upgrade that first, and test your daily work on it.
Step-by-step: upgrade ERPNext v15 to v16
- Take a full backup and copy it off the server.
bench --site erp.yourdomain.com backup --with-files
The files are insites/erp.yourdomain.com/private/backups/. Download them before you continue. - Upgrade MariaDB to 11.8. Follow MariaDB's own upgrade notes for your OS. On Ubuntu 24.04 the default package is 10.11, so you add MariaDB's repository with the 11.8 version pinned, upgrade the packages and run
sudo mariadb-upgrade. Keep theutf8mb4settings inmy.cnf. - Install Python 3.14 without touching the system Python, for example with uv:
uv python install 3.14 - Install Node.js 24 and Yarn with nvm:
nvm install 24 && nvm alias default 24 && npm install -g yarn - Update the bench command itself:
uv tool upgrade frappe-bench(orpip install -U frappe-benchif you installed it with pip). - Move the bench to Python 3.14. From the bench folder:
bench migrate-env python3.14
Check it worked with./env/bin/python --version. Your shell'spython3may still point to an older version; the bench environment is what matters. - Switch the apps to version-16.
bench switch-to-branch version-16 frappe erpnext hrms --upgrade
Add every other app that has a version-16 branch to the same command. Switch your custom apps to their v16 branch with git if they use a different branch name. - Install requirements, migrate and build.
bench update --requirementsbench --site erp.yourdomain.com migratebench build
The migrate step runs the v15-to-v16 database patches. If it stops with an error, don't keep retrying on production: fix it on staging first. - Restart. On a production setup:
sudo supervisorctl restart all, orbench restart. - Check the result.
bench versionshould show version 16 for frappe, erpnext and hrms. Log in, clear your browser cache and open your most-used forms.
After the upgrade
- New desktop: on upgraded sites the new "Apps" desktop is opt-in in Desktop Settings.
- Dashboards: new sites use Insights dashboards; upgraded sites keep the classic ones until you change the Dashboards option in System Settings (and install the Insights app).
- Custom fields and print formats: open your important forms and printouts and check field positions and layouts.
- Permissions: v16 releases tightened some user permission checks in accounting and stock. Test with a normal user, not only Administrator.
- Flow AI: after you reach v16.60 or newer, you can connect an AI model. See Frappe Flow AI setup.
Common upgrade problems and fixes
| Problem | Likely cause | Fix |
|---|---|---|
bench build fails | Node 22 or older | nvm use 24, then build again |
| Python syntax or package errors | Bench env still on Python 3.10–3.12 | Run bench migrate-env python3.14 again and check ./env/bin/python --version |
| "branch version-16 not found" | An app has no v16 branch | Remove it from the switch command, update it separately, or ask its developer |
| Database version error during migrate | MariaDB still on 10.x | Upgrade MariaDB to 11.8 first and run mariadb-upgrade |
| Missing styles or blank pages | Old assets in cache | bench build, bench --site yoursite clear-cache, then a hard browser refresh |
New installation instead of an upgrade? See our ERPNext v16 installation guide. Want it done for you? We upgrade ERPNext sites with a staging test and a written rollback plan: ERPNext implementation and support.
Sources
Written from the official documentation and source code below. Menus and fields can differ between versions, so check the docs for your version.
