Try ERPNext Buy Support Partners Foundation

Easy Install of ERPNext on Debian 10 - FAILED!

Hi,

Trying to make a script to install the latest version of ERPNext on to Debian 10:

# create ERPNext on debian 10 net install {debian-10.4.0-amd64-netinst.iso}
# only install ssh and standard tools
# https://github.com/frappe/bench#easy-install-script
# install with root pw = root
# added user sysadmin with pw = sysadmin

# login as root

apt update
apt -y upgrade
apt install sudo net-tools resolvconf

usermod -aG sudo sysadmin

nano /etc/network/interfaces

iface eth0 inet static
   address 192.168.1.8
   broadcast 192.168.1.255
   netmask 255.255.254.0
   gateway 192.168.0.1
   dns-nameservers 192.168.0.3

reboot

# login as sysadmin

sudo apt install -y python3-minimal build-essential python3-setuptools

wget https://raw.githubusercontent.com/frappe/bench/develop/install.py

export LC_ALL=C.UTF-8

sudo python3 install.py --production

Error:

erpnext@erp:~$ sudo python3 install.py --production

We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

 #1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for erpnext:

Logs are saved under /tmp/logs/easy-install__2020-06-24__13-06.log

Checking System Compatibility...
debian 10 is detected
   Install on debian 9 instead

curl already installed!
wget already installed!
git already installed!
pip3 already installed!

[WARNING]: No inventory was parsed, only implicit localhost is available

[WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'

Input MySQL and Frappe Administrator passwords:
Passwords saved at ~/passwords.txt

[WARNING]: No inventory was parsed, only implicit localhost is available

[WARNING]: provided hosts list is empty, only localhost is available. Note
that the implicit localhost does not match 'all'

[WARNING]: Could not find aptitude. Using apt-get instead

Traceback (most recent call last):
File "install.py", line 440, in <module>
install_bench(args)
File "install.py", line 241, in install_bench
run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 365, in run_playbook
success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_strea           m, stderr=sys.stderr)
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'sit           e.yml', '-vvvv', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frapp           e']' returned non-zero exit status 2.

tried on Debian 9.

https://pastebin.com/bSD3Fey2

Why not try a manual install on Debian 10?

# https://murgatroyd.za.net/?p=764
# ERPNext on Debian 10 container
# root pw=password
# erpnext001 pw=password

# ---[ Pre-Setup ]---

# Login as root
apt update
apt -y upgrade
apt -y install sudo net-tools

# sed -i '/#Port 22/Port 22022/' /etc/ssh/sshd_config
# systemctl restart ssh

useradd -m -d /home/frappe -s /bin/bash erpnext001
passwd erpnext001
usermod -aG sudo erpnext001

reboot

# Login as erpnext001 

#Set some variables to make life a bit easier - NB!!! these values are NOT safe for live systems, so please don't use them
RootPWD="password"
ERPNextPWD="password"
MySQLpwd="password"
echo "root:$RootPWD;ssh:$sshPWD;erpnext:$ERPNextPWD;mysql:$MySQLpwd;"  #uncomment to show these for debug/info

sudo apt install -y sshfs gcc wget binutils net-tools dnsutils lsof dirmngr \
  curl ca-certificates apt-transport-https software-properties-common \
  mc git-core build-essential network-manager;

#Add MySQL server: 1) Signing key for mariaDB, and then 2) Install
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xF1656F24C74CD1D8
sudo apt install -y mariadb-client mariadb-server

#1) Test the install: 
mysql -u root

change:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8

to:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xF1656F24C74CD1D8

error:
erpnext001@erp:~$ mysql -u root
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
erpnext001@erp:~$

Have you confirmed that mysql is running?