I tried in google cloud and got me similar errors.
We all would benefit from your successful installation experience, if you could write down the exact steps, commands, logs, gotcha notes, in one place, like a how-to guide.
I also have the same issue. The Easy Install fails on:
PLAY RECAP *******************************************************************************************************
localhost : ok=4 changed=1 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 135, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 327, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python3.5/subprocess.py”, line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2
No matter what i try, it fails (Ubuntu 18.04 server)
Run the command on the command line by itself, without the quotes and commas
ansible-playbook -c local site.yml -vvvv -e @/tmp/extra_vars.json –become –become-user=frappe
I had the same problem, tearing my hair trying to figure out the issue.
Done Excellent
this modification to the install got me over the line … after 2 years of misery!
Hi folks,
Is it now possible to install ERPnext? My last try was 2 months ago. I want to use the easy install routine.
Has anyone managed to get it running on Ubuntu 18.04 LTS?
thx to all
Hi Curt,
Possible, but no guarantees. Sometimes the easy install works, for some people. Other times it does not. As our comrade @bkm is fond of saying: Your mileage may vary
Many of us have ERPNext successfully running on Ubuntu 18.04 LTS. I’m finishing an installation on that OS right now, actually. But not using the easy install.
Best way to find out is to give it another try.
It did not work, not 24 days ago and not now. I installed SuiteCRM without any problem on the fly to have something. But i want EPRNext :-(
What’s the error message you’re receiving?
[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’
Traceback (most recent call last):
File “install.py”, line 414, in
install_bench(args)
File “install.py”, line 230, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 351, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’), stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappeuser’]’ returned non-zero exit status 2.
I don’t know enough about Ansible to understand or debug that. Hopefully another forum user does, though!
Please do more searching. This topic has been posted on many times. I’m not going to repeat this here.
This issue is that the ansible-playbook command failed.
The suggestion now is to unpack that command into its various components and run it by youself on the command line. You will then see why the command is failing. (The install script is a wrapper and hides the actual error message.)
Thanks. I’ve searched for a solution since 3 to 4 months. All the “professionals” give no exact and detailed guide with step by step, and all the DIY-users try and try and try. What is so difficult for a pro to code a working installer?
Like you: i don’t know how to unpack an installer and merge it in the command line. Are you able to write step by step a guide of how to install ERPNext in Ubuntu 18.04 LTS? I did it in September 2019 ERPNext DNS-Multitenant - disable recursion on the DNS Server - #4 by Curt.Beck, that worked untill something changed, how ever. I did that because there were no working guides. And the official guide also didn’t worked back than.
Thanks for your help.
Just scroll up this page. I posted exactly how to do that.
And that’s exactly the need AND the problem - to support numerous platforms, versions, environments and so on but these constantly change! As well, of course this an ambitious product that is a victim of it’s own popularity LOL
Crafter refers to post # 34
You need to delete a previous install’s artifacts before doing a fresh install Search results for 'fatal: destination path ‘erpnext’ already exists and is not an empty directory' - Frappe Forum.
Another try with the help of Home · frappe/frappe Wiki · GitHub and How to Install ERPNext on Ubuntu 18.04 - SpeedySense
Fresh ubuntu installation and then step by step:
apt update && apt upgrade -y && apt autoremove -y
ufw allow 22/tcp
ufw enable
ufw allow http
ufw allow https
ufw allow sftp
apt-get install vsftpd
systemctl restart vsftpd
systemctl enable vsftpd
nano /etc/vsftpd.conf
ssl_enable=YES
systemctl restart vsftpd
add-apt-repository ppa:nginx/stable
apt-get update
apt-get install nginx
ufw allow ‘Nginx Full’
apt -y install python-minimal
apt -y install git build-essential python-setuptools python-dev libffi-dev libssl-dev
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install --upgrade pip setuptools
pip install ansible
apt -y install curl
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo “deb https://dl.yarnpkg.com/debian/ stable main” | sudo tee /etc/apt/sources.list.d/yarn.list
apt -y update && sudo apt -y install yarn
apt -y install mariadb-server libmysqlclient-dev
nano /etc/mysql/my.cnf
[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
systemctl restart mariadb
systemctl enable mariadb
mysql_secure_installation
Set root password? [Y/n] y
y
y
y
y
curl --silent --location https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get install -y nodejs
apt -y install nginx nodejs redis-server
systemctl start nginx
systemctl enable nginx
systemctl start redis-server
systemctl enable redis-server
apt -y install libxrender1 libxext6 xfonts-75dpi xfonts-base
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -C /opt
ln -s /opt/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
ln -s /opt/wkhtmltox/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
adduser beck
usermod -aG sudo beck
login beck
mkdir erpnext
cd erpnext/
sudo apt install virtualenv
virtualenv .
source ./bin/activate
git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps bench-repo
sudo pip install -e bench-repo
bench init --frappe-branch master --frappe-path GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript frappe-bench
cd frappe-bench/
bench get-app --branch master erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
bench config dns_multitenant on
sudo mysql -u root -p
UPDATE user SET plugin=‘mysql_native_password’ WHERE User=‘root’;
FLUSH PRIVILEGES;
exit;
bench new-site erp.domain.com
bench --site erp.domain.com install-app erpnext
bench start
bench setup nginx
sudo bench setup production beck
./env/bin/pip install werkzeug==0.16.0
reboot
login beck
sudo service supervisor stopp
sudo service supervisor start
sudo supervisorctl status
sudo systemctl enable supervisor
sudo apt install certbot
sudo -H bench setup lets-encrypt erp.domain.de
bench --site erp.domain.com set-config enable_two_factor_auth true
That worked for me, after 3 months. Maybe someone can check the guide?