I would like to share my installation steps which i took to install ERPNEXT on Amazon EC2 instance and also installed Let’s Encrypt certificate install.
This worked without flaw. Perhaps you can give it a try if you are failing to install ERPNEXT.
AWS EC2 Instance which i used: AMI - Ubuntu Focal -20.04-amd64-server Instance Type: t3a.large (2 vcpu - 8gb Memory) - Tried on free tier, but it never installed SSD: 50GB
Installation Steps:
created sudo user [newuser]
sudo adduser [newuser]
changed root password:-
sudo passwd root
Changed to “root” account
su
Ran apt-get update and upgraded
apt-get update && apt-get upgrade
Changed user to the newly created user
su - [newuser]
Now the easy install script will be run under this newly created user account only.
Please run following commands in terminal.
sudo localectl set-keymap us && sudo localectl set-locale LANG=en_US.utf8
Below command will open a file in the nano editor.
sudo nano /etc/environment
Now add following lines in the file which is opened by nano
Now, automated install will take place. It will ask for mysql root password & default admin password halfway down. Give input to machine when promted (and also save for future ref).
If everything goes fine, bench will be installed in the production version.
Bench will be installed with default site “site1.local” which you may want to change as you want to install erpnext on your subdomain (Website). To achieve this, follow below:-
mv sites/site1.local sites/erp.yourdomain.com
bench setup nginx
sudo service nginx reload
Setup Multitenancy in order to use the letsencrypt
bench use examplesitename
bench config dns_multitenant on
Now, point your subdomain to your public ip address of AWS EC2 instance (in short, add “A” record in your dns) like below:-
Type: A
Name: whatever subdomain as you like, for example: “erp”, “crm”, “mail” erp.thesourcerers.co (#this is what i used as i own domain thesourcerers.co)
value: ip address of your ec2 instance
TTL: 1 hour
–DONE–
Now, follow below instructions from Certbot for further configuration of letsencrypt. This will install https access to your website.
but i am facing some issues while installing
I am trying to install the ERPNext on ubunutu 20 but getting the below error and exiting without completing the installation process
[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 497, in
install_bench(args)
File “install.py”, line 278, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 413, in run_playbook
success = subprocess.check_call(args, cwd=playbooks_folder, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.8/subprocess.py”, line 364, 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.