Adding another Frappe BENCH on same instance

This is a continuation of ( https://cloud.erpgulf.com/blog/support-forum/installing-erpnext-version-15-on-ubuntu-23+ ) and part of a series. The explanation can be seen on Youtube.com/ERPGulf

 · 2 min read

Two empty benches



This blog is a continuation of the following and part of a Six part training series. Watch all on Youtube.com/ERPGulf


https://cloud.erpgulf.com/blog/support-forum/installing-erpnext-version-15-on-ubuntu-23+


Here we are adding another BENCH on the same installation.


su - erpgulf

cd /opt

sudo mkdir bench2

sudo chown -R erpgulf:erpgulf /opt/bench2

cd /opt/bench2

yarn add node-sass

pip3 install frappe-bench

sudo apt install python3.11-venv

bench init frappe-bench --frappe-branch version-15

cd frappe-bench

sed -i '/web:/ s/$/ --noreload/' Procfile

bench start  ( This will throw error becasue the default ports like 8000,9000, 13000 are already used )

vim Procfile  ( and change port 8000 to 8010 or anything else )

vim config/redis_cache.conf ( change port from 13000 to 13010 )

vim config/redis_queue.conf ( Change port from 11000 to 11010 )

vim sites/common_site_config.json ( change port from 13000 to 13010 , 11000 to 11010 , 9000 to 9010 , 8000 to 8010 )


bench start ( Now it starts on 8010 )

bench new-site siteonbench2.erpgulf.com

bench setup supervisor --yes

bench setup nginx


cd config

mv nginx.conf ngix-siteonbench2.conf

mv supervisor.conf supervisor-siteonbench2.conf

vim supervisor-siteonbench2.conf

( change every programs, groups, and programs under groups names. Just add a "-2" at the end of every programs and groups. DOnt forget to change the programs named under groups also.)

sudo service supervisor restart ( Now ports 8000 and 8010 are open. check it by using telnet )


certbot certonly -d siteonbench2.erpgulf.com


vim ngix-siteonbench2.conf

change upstreams names there. and all other configuration we have explained in previous articles )

** There upstream names there inside nginx configuration, not just on the header ( on proxy-pass )


sudo cp ngix-siteonbench2.conf /etc/nginx/conf.d/

sudo service nginx restart


If you want to restart on a section of supervisor for one particular bench, without disturbing others, use the following.

sudo supervisorctl restart frappe-bench-web-33:* ( assming your bech is on group 33 )


or to clear python caching on gunicorn on one bench only

sudo supervisorctl restart frappe-bench-web-33:frappe-bench-frappe-web-33


To see all supervisor processes/ programs

supervisorctl status





That't it

If you face any problem there, send a mail to support@ERPGulf.com we will try to help you.


Cloud support

Cloud support team provides hosting related support and technology updates. Cover technology like cloud printing, Cloud PBAX, VoIP, Kubernetes, Ubuntu, Linux etc. Contact us on support@ERPGulf.com

No comments yet

No comments yet. Start a new discussion.

Add Comment