Upgrade v15 to v16

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.

4 min read · Updated November 2026 · By Vivek Choudhary

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

Componentv15v16
Python3.10 or newer3.14
Node.js18 or newer24 (22 and older fail when assets are built)
MariaDB10.6.6 or newer11.8
Redis66 or newer
Yarn / pip1.12+ / 20+1.22+ / 25.3+
Recommended OSUbuntu 22.04 / 24.04Debian 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

  1. Take a full backup and copy it off the server.
    bench --site erp.yourdomain.com backup --with-files
    The files are in sites/erp.yourdomain.com/private/backups/. Download them before you continue.
  2. 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 the utf8mb4 settings in my.cnf.
  3. Install Python 3.14 without touching the system Python, for example with uv:
    uv python install 3.14
  4. Install Node.js 24 and Yarn with nvm:
    nvm install 24 && nvm alias default 24 && npm install -g yarn
  5. Update the bench command itself: uv tool upgrade frappe-bench (or pip install -U frappe-bench if you installed it with pip).
  6. 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's python3 may still point to an older version; the bench environment is what matters.
  7. 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.
  8. Install requirements, migrate and build.
    bench update --requirements
    bench --site erp.yourdomain.com migrate
    bench 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.
  9. Restart. On a production setup: sudo supervisorctl restart all, or bench restart.
  10. Check the result. bench version should 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

ProblemLikely causeFix
bench build failsNode 22 or oldernvm use 24, then build again
Python syntax or package errorsBench env still on Python 3.10–3.12Run bench migrate-env python3.14 again and check ./env/bin/python --version
"branch version-16 not found"An app has no v16 branchRemove it from the switch command, update it separately, or ask its developer
Database version error during migrateMariaDB still on 10.xUpgrade MariaDB to 11.8 first and run mariadb-upgrade
Missing styles or blank pagesOld assets in cachebench 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.

Planning ERPNext or a Frappe app for your business? See our ERPNext implementation and Frappe development services, or talk to us.
ERPWork app icon
ERPWork: ERPNext on your phoneFree Android app for your ERPNext site: check in with location, approve documents, see sales and stock dashboards and get notifications.

Get it on Google PlayLearn more →