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
[server]
user = mysql
pid-file = /run/mysqld/mysqld.pid
socket = /run/mysqld/mysqld.sock
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
bind-address = 127.0.0.1
query_cache_size = 16M
log_error = /var/log/mysql/error.log
[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
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 https://raw.githubusercontent.com/creationix/nvm/master/install.sh | 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 sds.co.id
bench use sds.co.id
STEP 15 install ERPNext latest version in bench & site
bench get-app erpnext
bench --site sds.co.id 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