Enterprise Production Setup & Security (ERPNext v16 / Ubuntu 25)

Here is my own guide to fix the issues that has been encountered during the installation

I begin by this guide : Frappe & ERPNext v16 Installation Ubuntu 25 - #20 by poypoy1-dot

When I start my Bench instance, I encountered several little erros, I fix them by upgrading some libs.

After that my Bench start runs correctly and I access the ERP.

I test the ERP by saving some datas and I have issues saving “ADDRESSES”, I post a thread on the forum to have some help → Error in saving Customer Address

I discovered that there was a desynchronisation between my server and the ErpNext Cloud (I had previously created an account to test the application).

So I had DOCTYPEs that were not synchronised, data was missing…

I also checked the versions of all my libraries and Python was only 3.12 instead of 3.14…

So I looked for a solution on the forum and followed this protocol to correctly update FRAPPE, ERPNext and HRMS to v16
Guide to upgrading bench Frappe and ERPNext from v15 to v16 on Debian 12 - #15 by Rick-Hard89

So I ended up with library UPGRADES and UPGRADES in Frappe and ERPNext…

It wasn’t easy because the build takes a long time on my VM…

After a few hours of struggle, I managed to get a stable system.

So I finalised my installation by switching to PRODUCTION mode, following this guide → Enterprise Production Setup & Security (ERPNext v16 / Ubuntu 25)

I restart all the services and my ERPNext runs well. I save some datas : customer, addresses, items, quotation, invoices but an error remain when I want to print a PDF.

An error due to the lack of wkhtmltopdf library…
I decide to install the last version of this library by running some piece of code :

apt install wkhtmltopdf
....
depends of xfont...
apt install xfont...

wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
dpkg --install wkhtmltox_0.12.6.1-2.jammy_amd64.deb

And finally all is running well !