Error setup production erpnext!

Why?! Why?! Why?!!!

I need to setup erpnext production, but if setup are completed always error (Sorry …).
I am already reinstal with fresh installation many time but my problem always same like this.

Anyone can help me, please…

I am stuck on this section, I don’t know what to do anymore.

I have searched all forums, but my problem has not been solved.

To get a better response on the forums, I recommend including more information:

  • What installation method did you try: Easy Install, Docker, Manual, or something else?
  • Any warning or error messages in the console?
  • Are you configured in development mode (e.g. ‘bench start’) or production mode?

Generally, a way to begin troubleshooting is by running 'bench migrate' and 'bench clear-cache'. If those are successful, then try running ‘bench start’ again, and watch the output in the console.

You might try this excerpt from my manual install:

Now, due to recent problems it is important to check for the existence of an important configuration file. Execute the following command:

sudo ls /etc/supervisor/conf.d

If supervisor.conf is listed as a file here, then you can skip to the ‘enable scheduler’ step below. However, If there are no files listed then the supervisor.conf file was not transferred properly. To fix this perform the following command:

sudo cp ~/frappe-bench/config/supervisor.conf /etc/supervisor/conf.d/supervisor.conf

This should fix the problem of not being able to get to the login screen. :nerd_face: You can now finish the rest of the install.

bench --site site1.local enable-scheduler

Then restart your system to see if you get the login screen.

Hope this helps :sunglasses:


I am using script manual installation by D-codE

In this case error when i am trying to setup production ERPNext. For developermode over all work normaly.

device spesification:
Ubuntu 22.04
Core 2
Storage 60GB
ERPNext 14

last execute script on my directory prd.frappe-bench : sudo supervisorctl restart all

Error output in console:

Yes, on directory /conf.d file supervisor.conf not exist. and then i follow your intruction copy file supervisor.conf from /config to /conf.d

Now error like this, i already restart system many time and refresh browser but not solved.

try below bench command

bench build --force
bench clear-cache

this command not working, problem not solved. :weary:

check both your browser console and bench logs folder.

I think it is an issue related to your ngnix-config.
Reviewing the instructions you have followed, I wonder what you did to set up production mode, as the given instruction is related to dev-mode.
Can you share what you did, therefore, please?

I guess executing bench setup ngnix should already do the trick.
If you have made any changes manually to your configs, make sure to back up those first, as this command overwrites existing configurations.

oh yeah sorry, I forgot to explain. for installation developermode i follow “D-code”

and for production mode i follow “GEOFFREY KARAI”

because i am browsing not found turorial installation ERPNext from developermode to production mode in one guide.

This my installation command for setup production ERPNext steb by steb. Error on step 16 after execute command sudo supervisorctl restart all and then bench restart

Befor installation ERPNext

sudo apt update
sudo apt upgrade
sudo reboot

STEP 1 Install git
sudo apt-get install git

STEP 2 install python-dev
sudo apt-get install python3-dev

STEP 3 Install setuptools and pip (Python’s Package Manager)
sudo apt-get install python3-setuptools python3-pip

STEP 4 Install virtualenv
sudo apt-get install virtualenv

STEP 5 Install MariaDB

sudo apt-get install software-properties-common
sudo apt install mariadb-server
sudo mysql_secure_installation

STEP 6 MySQL database development files
sudo apt-get install libmysqlclient-dev

STEP 7 Edit the mariadb configuration (unicode character encoding)
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf

#add this to the 50-server.cnf file
user = mysql
pid-file = /run/mysqld/
socket = /run/mysqld/mysqld.sock
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
bind-address =
query_cache_size = 16M
log_error = /var/log/mysql/error.log

character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

default-character-set = utf8mb4

#Now press (Ctrl-X) to exit
sudo service mysql restart

STEP 8 install Redis
sudo apt-get install redis-server

STEP 9 install Node.js 14.X package

sudo apt install curl 
curl | bash
source ~/.profile
nvm install 14.15.0

STEP 10 install Yarn

sudo apt-get install npm
sudo npm install -g yarn

STEP 11 install wkhtmltopdf
sudo apt-get install xvfb libfontconfig wkhtmltopdf

STEP 12 install frappe-bench

sudo -H pip3 install frappe-bench
bench --version

STEP 13 initilise the frappe bench & install frappe latest version

bench init frappe-bench 
cd frappe-bench/
bench start

STEP 14 create a site in frappe bench

bench new-site
bench use

STEP 15 install ERPNext latest version in bench & site

bench get-app erpnext
bench --site install-app erpnext
bench migrate
bench start

STEP 16 setup production

sudo bench setup production triprd
sudo supervisorctl restart all
bench restart

STEP 17 configured post installation site

sudo nano sites/currentsite.txt
bench setup nginx
sudo service nginx restart