New installation failed

Hi nmami,

Pls follow below step to get install ERPNext Version 12.

I have installed fresh ERPNext 12 on Ubuntu 18.0.4LTS on Windows Subsystem Linux
Ran the below command
sudo apt-get update && upgrade
Rebooted server
sudo mkdir -p /run/dbus
sudo service dbus start
sudo apt-get install python3-setuptools python3-minimal redis-server build-essential
created user netmanthan
sudo adduser netmanthan (Adding a new user erpnext)
sudo usermod -aG sudo netmanthan (giving proper permission)
su netmanthan (login as erpnext user)

Download the installation script by running below command:
sudo wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py

Sudo -H python3 install.py --production --site netmanthan.local --user netmanthan

This will install the ERPNEXT. After this I have updated the bench by running below command:

cd erp_bench/
bench update

I have accessed the application using the link http://localhost

Thanks

2 Likes

Hi nmami,

Pls follow below step to get install ERPNext Version 12.

I have installed fresh ERPNext 12 on Ubuntu 18.0.4LTS on Windows Subsystem Linux
Ran the below command
sudo apt-get update && upgrade
Rebooted server
sudo mkdir -p /run/dbus
sudo service dbus start
sudo apt-get install python3-setuptools python3-minimal redis-server build-essential
created user netmanthan
sudo adduser netmanthan (Adding a new user erpnext)
sudo usermod -aG sudo netmanthan (giving proper permission)
su netmanthan (login as erpnext user)

Download the installation script by running below command:
sudo wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py

Sudo -H python3 install.py --production --site netmanthan.local --user netmanthan

This will install the ERPNEXT. After this I have updated the bench by running below command:

cd erp_bench/
bench update

I have accessed the application using the link http://localhost

If you have any query please let me know.

2 Likes

Hi @netmanthan

Thnaks for sharing steps.

I have started, now installation reach this stage and stuck for almost 3 hours,

TASK [bench : Create a new site] ***************************************************************************************
task path: /tmp/.bench/playbooks/roles/bench/tasks/setup_erpnext.yml:17
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /var/tmp/ansible-tmp-1568033272.7070715-132138146809591 `" && echo ansible-tmp-1568033272.7070715-132138146809591="` echo /var/tmp/ansible-tmp-1568033272.7070715-132138146809591 `" ) && sleep 0'
Using module file /usr/local/lib/python3.6/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-6106tl3tiw5k/tmpk1conff7 TO /var/tmp/ansible-tmp-1568033272.7070715-132138146809591/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c 'setfacl -m u:mada:r-x /var/tmp/ansible-tmp-1568033272.7070715-132138146809591/ /var/tmp/ansible-tmp-1568033272.7070715-132138146809591/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /var/tmp/ansible-tmp-1568033272.7070715-132138146809591/ /var/tmp/ansible-tmp-1568033272.7070715-132138146809591/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'chown mada /var/tmp/ansible-tmp-1568033272.7070715-132138146809591/ /var/tmp/ansible-tmp-1568033272.7070715-132138146809591/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -n  -u mada /bin/sh -c '"'"'echo BECOME-SUCCESS-tavqmadgayrpxgipvjfihqpypkvoucbc ; /usr/bin/python3 /var/tmp/ansible-tmp-1568033272.7070715-132138146809591/AnsiballZ_command.py'"'"' && sleep 0'

shall I stopped or wait?

thx

Hi ,

Pls Check your internet connection and wait.

Best regards,

*Jawahar R. Mallah

yes connected, ok I will wait more time.

Thanks

1 Like

it looks endless?

if I stopped now? I can restart installation or I should reset ubuntu wsl from the beginning?

@netmanthan
just now completed with error,

PLAY RECAP *************************************************************************************************************
localhost                  : ok=78   changed=48   unreachable=0    failed=1    skipped=51   rescued=0    ignored=0

Traceback (most recent call last):
  File "install.py", line 413, in <module>
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.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=mada']' returned non-zero exit status 2.

any advice…

Hi @nmami, If you are in root. simply run
sudo python install.py --production

i am not root?

shall I use root ? or continue with my user

Failed step :slight_smile:
mada@LAPTOP-5F23F7J8:/home/nofal$ sudo -H python3 install.py --production --site mada.local --user mada

@vishdha do you recommend to continu with root or stay with mada’s user? and submit command

sudo python install.py --production

thx