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?
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.
However, as always⌠Your mileage may vary.
BKM
Thatâs very strange. Iâm struggling to think of what OS-specific changes (18.04.3 to 18.04.4), might yield these installation errors. The problems Iâve encountered during installation have been:
- Python dependency errors. Outdated PyPI packages. Python3 changes.
- Nodejs dependency errors. yarn vs. npm differences. Some headaches with Nodejs 13 and node-gyp.
- MariaDB update issues (but only once or twice; itâs usually very stable)
Iâve never encountered a situation where my OS was the problem, and had to be patched forward/backward. Iâve done installations on Ubuntu 16 through 18, Debian 9 and 10.
But of course, Iâm not running easy install, and calling those Ansible playbooks.
Regardless, I agree with @Curt.Beck. Itâs unfair to expect ERPNext users to know how to âunpack commandsâ into sub-components, hack the installation scripts, and debug the installer process. No other business software application expects its users to troubleshoot Bash, Python, and JavaScript code. Yet ERPNext appears to require it.
As I mentioned a few weeks ago: ERPNext increasingly appears to be an application -by- Python developers, -for- Python developers. If youâre not already a *nix Pythonista, youâre at a large disadvantage.
Itâs something that needs to change.
WTF!?
With the step by step guide i reached the login screen two days ago. Today I wanted to create a company, but i only got a time out message. Now i burn down the house!!!
The error is shown in Setup Wizard Request Timeout - Problem Solution - #2 by revant_one or Time out error for creating new companies - #9 by Ahmed.Khater or [Solved] Setup failed >> Could not start up: Error in setup - #2 by pipech.
Unfortunately all named solutions, time out 6000 or bench update --patch or many tries didnât work for me.
The log of Google Chrome is
request.js:274 SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Object.frappe.request.report_error (request.js:408)
at 500 (request.js:187)
at Object. (request.js:267)
at i (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at z (jquery.min.js:4)
at XMLHttpRequest. (jquery.min.js:4)
(anonymous) @ request.js:274
Please, can anybody help for the last steps? Thank you.
Yeah, I have seen that every time I try to run the startup wizard on a new install. The error presents itself in a separate pop-up box. Once you acknowledge the error you get to another pop-up box that has a very tiny link near the bottom that says âRetryâ that you can use to run the last steps of the wizard again. This has always allowed it to finish. Not sure why, but it has been that way for me since starting to use v12.
As for the OS patching scenarioâŚ
I am not so sure it has much to do with patching as it does with possibly something being accidentally left our of the "apt-get upgrade process from 18.04.3 to 18.04.4
This is actually the second time I have seen this. The first time I simply attributed the problem to my having installed other unrelated packages to the OS before running the apt commands to update and upgrade. I thought it may have been some odd package tripping up other important OS functions. So when I loaded a 18.04.4 image and did the apt commands again, ERPNext installed just fine. That was in mid-January.
This time I had another fresh Ubuntu server on a dormant VPS that I had created in late November of last year (about 3 months ago) and it was just a spun up 18.04.3 image that I had not done anything with it yet. So I was surprised to see the same error that I had previously attributed to something I had done now popping up when I know there had been no activity at all. Simply the act of running apt-get update and apt-get upgrade from root and creating the accounts for a ERPNext install, the install would fail. I was quite surprised.
I no longer have access to the older 18.04.03 images to spin up and investigate further, but the limited evidence is mounting that there may have been something left out of the OS upgrade service.
It would be interesting to hear from others that have encountered the error to see if they were also going from 18.04.3 to 18.04.4 before the attempted the ERPNext install.
Not trying to point fingers here, but more data would sure be nice.
BKM
Back to the basics:
Are you installed on VM?
How much RAM you have? The minimum now is 4GB.
If it is less then your mashine get slow and stuck.
Hope it helps.
Yes, cloud server at www.hetzner.de with 2 VCPU, 4 GB RAM and 40 GB disk space. Bevor I had installed multitenant WordPress und SuiteCRM, everything worked absolutely fine. For single ERPNext it should be enough power.
Is there a log or protocol where I can find the internal server error? Last year in October ERPNext worked on the server. Just because fo changes in software it does not run, I think.
Thanks.
Iâm not a Linux or Python specialist, but I can choose different OS rebuilds for my cloud server:
Ubuntu 16.04
Ubuntu 18.04
Debian 9
Debian 10
CentOS 7
CentOS 8
I only have DIY experience in Ubuntu 18.04. Is there a 100% sure chance that ERPNext will run properly on another operating system mentioned?
Thanks.
I have been doing my installs over the past week using Ubuntu 18.04.4
When you select the operating system on your VPS providers site, they do not typically tell you anything beyond the â18.04â so you will not know the sub-point release versions.
At three of the VPS providers that I am using, the version of the image that I have been using has been 18.04.4
In November and early December my servers were getting an image version 18.04.3
It was the 18.04.3 that (at least form me) would fail ERPNext installs if I ran apt-get update and apt-get upgrade before running the Easy Install for ERPNext.
So, to answer your question⌠No, there is no guaranteed successful install. The variables are constantly changing (sometimes by the hour) and nobody has control over all of the variables.
In my case (and in my âopinionâ) I ran into a possible condition where Ubuntu nay not have upgraded itself properly. Other variables that can affect a successful install also includes possible changes to the multitude of packages that frappe/erpnext depends on to build their system. All of those packages are also constantly being updated by their respective authors and foundations. We never know what is changing unless the package authors announce it publicly.
Installing ERPNext is NOT anything like installing some MS Windows program. Microsoft packages everything together into a single installation file. During their installs the large install file unpacked itself into temproary holding area and then installs everything from the contents. That means everything is all contained and controlled by the stuff in the single install file.
Microsoft also controls the operating system so they know exactly what is available to them to use during the install process.
Ubuntu is built from mainly opensource packages. The foundation that controls the OS does pull together everything together into a collection of known source versions in order to make a specific version install. This usually makes the Ubuntu OS just as stable as any Microsoft operating system.
ERPNext does NOT create a single install file for their application. They use a script that systematically reaches out to the repositories of all of the packages they depend on to build a ERPNext installation, and they do this âon-the-flyâ as the actual installation is progressing on your server. The developer team does their best to try to request specific versions of the packages in the script that installs your ERPNext application. However, they sometimes forget to pin down a version or something and errors happen. We have also seen time when one of the packages the install script tries to access during the install is not available because it has been moved, altered, or even completely taken out of circulation by the original authors.
All of these variables are constantly changing and even more so with opensource projects.
Everything that makes up almost all Linux versions are opensource projects making the particular OS and opensource project itself (like Ubuntu, Debian, CentOS, Fedora, etc.).
Add to that the ERPNext project which is opensource and built from all opensource packages and the list of variables is beyond calculation.
Is our world perfect? No.
But is worth the discomfort we sometimes experience? Well, you will have to answer that for yourself.
BKM
I fully understand your point of view. If someone spends so much time creating such a program, we have to ask why? I think itâs made for users who need an ERP system that is more open and editable. But if this person have to be an absolutely professional programmer just to install the software (not to use it), I would say that the developers missed their target OR created ERPNext for their own purposes. Then it is logical that all ERPNext users can also program properly in Linux etc.
Nevertheless, what is a solution for this problem? Is there a solution for this at all? Is there a log file somewhere in which I can find the error?
PS: I checked my Ubuntu version: âWelcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-74-generic x86_64)â, managed with https://landscape.canonical.com.
Thanks