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.
[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.
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.
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
Not difficult at all. Takes some time and effort. But few wish to spend that time. Or put in that effort. Therefore the installation has been garbage for years. And likely will continue to be, for a while longer.
For this reason, many of us gave up on “easy install” years ago. We either install ERPNext manually, or maintain our own forks of Bench. Or both.
Interesting thread. I watched the progress of this over the past few weeks.
An strange occurence happened to me today with the latest version installation (v12.5.1)
I went to a dormant Ubuntu server that I had running 18.04.3 and I ran the apt-get update and apt-get upgrade to get it up to v18.04.4 and then I ran the install.
It failed with the exact same error that @Curt.Beck posted.
This didn’t make any sense to me so I wiped the server and spun up an fresh ubuntu 18.04.4 image, ran the update and upgrade. Then I ran the same install script again (just like I had an hour earlier) and it worked.
Mind you this is running the Easy Install method!!
To make sure my results were consistent, I wiped another server I had and rand through the same process (on a different VPS service provider) and again ran the update and upgrade and the erpnext easy install script.
This also works perfectly.
Possible Conclusion…
There may be something amiss in the upgrade process of Ubuntu from 18.04.3 to 18.04.4.
When I tried to upgrade to 18.04.4 and run an install it failed.
When I installed a recent 180.0.4 image and then update and upgraded it to most current the ERPNext Easy Install works perfectly.
Is that definitive proof? um… NO
But it is a curious result because I am very meticulous about doing installs and I notice these things.
So that is my results today. Two successful installs when using a fresh Ubuntu image.