I tried since last 2 days.
Can anyone help to get ride over erpnext on gcp free tier?
I have registered google Cloud for 1 year free for experiment.
Thanks
I tried since last 2 days.
Can anyone help to get ride over erpnext on gcp free tier?
I have registered google Cloud for 1 year free for experiment.
Thanks
Use the easy install script
Its amazing !!! Just took 30 min and done.
âInstallation configuration
Google Cloud Platform (tried on 1 Year Free tier)
Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-1078-gcp x86_64)
smthakor1979@instance-2:~$ sudo su
root@instance-2:/home/smthakor1979# apt-get update
root@instance-2:/home/smthakor1979# apt-get upgrade
root@instance-2:/home/smthakor1979# wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
root@instance-2:/home/smthakor1979# sudo python install.py --production
âBenchâs CLI needs these to be defined!
âRun the following commands in shell:
root@instance-2:/home/smthakor1979# export LC_ALL=C.UTF-8
â run again
root@instance-2:/home/smthakor1979# sudo python install.py --production
âFirst password for Mysql
âSecond password for ERPNext Login
root@instance-2:/home/smthakor1979# sudo su - frappe
frappe@instance-2:~ cd frappe-bench/sites
frappe@instance-2:~ mv site1.local mytesterp.com
frappe@instance-2:~ nano mycompany.com/site_config.json
âAdd This Line below MariaDB
âhost_nameâ: âhttp://mytesterp.comâ,
âsave and close nano
frappe@instance-2:~/frappe-bench$ sudo bench config dns_multitenant on
frappe@instance-2:~/frappe-bench$ sudo bench setup add-domain mysite.com
Site: mysite.com
frappe@instance-2:~/frappe-bench$ sudo -H bench setup lets-encrypt mysite.com
Do you want to continue? [y/N]: y
(A)gree/(C)ancel: A
frappe@instance-2:~/frappe-bench$
unfortunately i could make it happen ![]()
File âinstall.pyâ, line 143, in install_prerequisites
âpython3â: âsudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pipâ
I tried:
sudo python install.py --production
sudo python3 install.py --production
upgraded pip
both get lead to the same error above
Same persistent issue with me
I done it smoothly by switching to ubuntu 18.04 with V13 as directed :
1- sudo apt -y install git vim libffi-dev python-pip python3-distutils python-dev libssl-dev wkhtmltopdf
2- export LC_ALL=C.UTF-8
3- wget https://raw.githubusercontent.com/frappe/bench/develop/install.py sudo python3 install.py --verbose --production --user USER --mariadb-version 10.5 --frappe-branch version-13 --erpnext-branch version-13
I thought he had directed Ubuntu 16.04, it has persistently given the same error with Ubuntu 16. Did you mean that i switch to Ubuntu 18.04?
This what i have done, switch to 18.04 , it was just a new GCP instance for me.
When I run this command, it shows as follows:
It is recommended to run this script with Python 3
Do you still wish to continue? [Y/n]: y
Logs are saved under /tmp/logs/easy-install__2021-04-13__12-43.log
Checking System CompatibilityâŚ
ubuntu 16 is compatible!
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
/usr/bin/python: No module named pip
Traceback (most recent call last):
File âinstall.pyâ, line 436, in
install_prerequisites()
File âinstall.pyâ, line 143, in install_prerequisites
âpython3â: âsudo -H python -m pip install --upgrade setuptools cryptography ansible==2.8.5 pipâ
File âinstall.pyâ, line 118, in run_os_command
returncode = subprocess.check_call(command, shell=True, stdout=log_stream, stderr=sys.stderr)
File â/usr/lib/python2.7/subprocess.pyâ, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command âsudo -H python -m pip install --upgrade setuptools cryptography ansible==2.8
.5 pipâ returned non-zero exit status 1
Python version is 2.7.12
sudo apt-get install python3-dev
sudo apt-get install python3-setuptools python3-pip
sudo -H python -m pip install --upgrade setuptools
sudo python3 install.py --production
Try this, Iâve just installed two instances on GCP - it worked for me.
Hi there, I followed your steps on GCP, it took root and erpnext admin password.
What is the next step after âsudo python3 install.py --verbose --production --user USER --mariadb-version 10.5 --frappe-branch version-13 --erpnext-branch version-13â?
did it run without errors ?
if no error try to access your ipadress and login using set password
jycob, steps completed without any error. But while trying to access using my external ipaddress, it shows âThis site canât be reachedâ.
sudo systemctl restart nginx
Doesnât help!
After running âsudo python3 install.py --verbose --production --user USER --mariadb-version 10.5 --frappe-branch version-13 --erpnext-branch version-13â
do I need to also run remaining steps from your post viz:
> root@instance-2:/home/smthakor1979# sudo su - frappe
> frappe@instance-2:~ cd frappe-bench/sites
> frappe@instance-2:~ mv site1.local mytesterp.com
> frappe@instance-2:~ nano mycompany.com/site_config.json
> âAdd This Line below MariaDB
> âhost_nameâ: âhttp://mytesterp.com â,⌠??
sudo su - frappe : this command for change user [frappe is user]
cd frappe-bench/sites : go to directory where site folder is located.
mv site1.local [site name] : site1.local is default and this command move it to your domain name.
âhost_nameâ: âhttp://mytesterp.com â, add this line in ur site config.
Hi Aditya, followed your steps given on ERPNext Installation. Got this error:
Traceback (most recent call last):
File âinstall.pyâ, line 498, in
install_bench(args)
File âinstall.pyâ, line 279, in install_bench
run_playbook(âsite.ymlâ, sudo=True, extra_vars=extra_vars)
File âinstall.pyâ, line 414, in run_playbook
success = subprocess.check_call(args, cwd=playbooks_folder, 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=frappeâ]â returned non-zero exit status 2.
@Aditya_Bagarka
It worked seamlessly when I retried using ubuntu20.04 (previously i was trying with 16.04).
Thanks a lot