I am trying to explore frappe and erpnext product and its features.
As part of the first step, I am trying to install the frappe framework. I have created a small script to install complete pre-requisities. After successful installation, I am getting the below errors.
While running the command “bench init frappe-bench” – Error 1
DONE Total Build Time: 51.806s
WARN Cannot connect to redis_cache to update assets_json
** WARN Cannot connect to redis_cache to update assets_json**
** WARN Cannot connect to redis_cache to update assets_json**
Done in 54.22s.
SUCCESS: Bench frappe-bench initialized
Since I am newbie I am not sure whether it can cause any issue later point in time. Please help.
Can anyone please help me to resolve this error?
Script:
root@FrappeVM:~# cat install
#Update System
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update -y
#Installing Python
sudo apt install python3.11 -y
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1
sudo apt install python-setuptools python3.11-dev python3.11-venv python3.11-distutils python3.11-gdbm python3.11-tk python3.11-lib2to3 python3-venv -y
#Installing NodeJS
sudo apt install curl -y
sudo curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g npm@latest
#Installing Redis Server
sudo apt update -y
sudo apt install redis-server -y
echo " " >> /etc/redis/redis.conf
echo “maxmemory 256mb” >> /etc/redis/redis.conf
echo “maxmemory-policy allkeys-lru” >> /etc/redis/redis.conf
sed -i ‘s/supervised no/supervised systemd/g’ /etc/redis/redis.conf
#Installing Frappe PreReq
sudo apt-get -y install supervisor
sudo apt install git python3-pip -y
sudo apt install software-properties-common -y
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository ‘deb [arch=amd64,i386,ppc64el] Index of /mirror/mariadb/repo/10.3/ubuntu/ xenial main’
sudo apt-get update -y
sudo apt-get install mariadb-server -y
mysql_secure_installation
apt-get install mariadb-client -y
echo " " >> /etc/mysql/my.cnf
echo “[mysqld]” >> /etc/mysql/my.cnf
echo “character-set-client-handshake = FALSE” >> /etc/mysql/my.cnf
echo “character-set-server = utf8mb4” >> /etc/mysql/my.cnf
echo “collation-server = utf8mb4_unicode_ci” >> /etc/mysql/my.cnf
echo " " >> /etc/mysql/my.cnf
echo “[mysql]” >> /etc/mysql/my.cnf
echo “default-character-set = utf8mb4” >> /etc/mysql/my.cnf
service mysql restart
npm install -g yarn
apt-get install xvfb libfontconfig wkhtmltopdf -y
#sudo -H pip3 install frappe-bench==5.10.1
sudo -H pip3 install frappe-bench==5.16
#pip3 install frappe-bench
#bench init frappe-bench --frappe-branch version-14
#Display Versions
python --version
node -v
npm -v
redis-server -v
Regards,
Chidhambaram