Install erpnext version 12 error, please help, tried many times and has been wrong, thank you!

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-1573616950.24262-215678952634960” && echo ansible-tmp-1573616950.24262-215678952634960=“echo /var/tmp/ansible-tmp-1573616950.24262-215678952634960” ) && sleep 0’
Using module file /usr/local/lib/python3.6/dist-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT /home/luyuan1890/.ansible/tmp/ansible-local-2694agurho_c/tmp0pip62e2 TO /var/tmp/ansible-tmp-1573616950.24262-215678952634960/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c ‘setfacl -m u:luyuan:r-x /var/tmp/ansible-tmp-1573616950.24262-215678952634960/ /var/tmp/ansible-tmp-1573616950.24262-215678952634960/AnsiballZ_command.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘sudo -H -S -n -u luyuan /bin/sh -c ‘"’“‘echo BECOME-SUCCESS-tifxxemodttvdauxygnnshftbyosdfhc ; /usr/bin/python3 /var/tmp/ansible-tmp-1573616950.24262-215678952634960/AnsiballZ_command.py’”’"’ && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /var/tmp/ansible-tmp-1573616950.24262-215678952634960/ > /dev/null 2>&1 && sleep 0’

The automatic installation script execution starts to go to this position and the error message is as follows:

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

Traceback (most recent call last):
File “install.py”, line 413, in
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/python2.7/subprocess.py”, line 190, 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=luyuan’]’ returned non-zero exit status 2

operating system:Ubuntu 18.04 LTS
hard disk:50g
RAM:3.75 GB

sudo apt-get install python-minimal
sudo apt-get install build-essential python-setuptools

wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo adduser luyuan
sudo usermod -aG sudo luyuan
sudo python install.py --production --user luyuan

If you replace the following command, installing version 11 will succeed. The above error occurs with the default installation version 12.

sudo python install.py --production --user luyuan --site erpmp --version 11

Me too. Right then and there :stuck_out_tongue_winking_eye: but on 16.04

At this point I’m almost assuming Frappe is pushing us to use the Hosted version of ERPNext :stuck_out_tongue_winking_eye:

But oh man, I really hope they start figuring this out.

sudo apt-get install python-minimal
sudo apt-get install build-essential python-setuptools

wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --production --user luyua

Do not create user. Install bench part will fail if user already exists.

guilty all the same; everything throws error

Easy Installation fails every time for v12. Haven’t tried the v11 and neither v12 manual installation.

Are you sure about this?

No effect, just tried, or the same error message, unsuccessful

1 Like

This is absurd; v11 successfully works while v12 with so many different tries fail every time. I did install v12 successfully multiple times some time back. Why is this happening now?

I had issues with easy install as well and posted about it here: Easy Install is definitely bugged on Ubuntu 18.04 - #7 by Tufan_Kaynak2

Joseph_Marie_Alba’s response worked for me.

Well, there errors don’t match. I’m not sure the solution in your post would apply here as well.

The method you said also showed an error and it has just been tried.

Clean Ubuntu 18.04

 sudo apt install python-minimal
 wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
 sudo python install.py --production --user frappe
   (mariadb password and admin password)

Error
======= ]",
“Updating DocTypes for frappe : [================================ ======= ]”,
“Updating DocTypes for frappe : [================================ ======= ]”,
“Updating DocTypes for frappe : [================================ ======= ]”,
“Updating DocTypes for frappe : [================================ ========]”
]
}

PLAY RECAP *********************************************************************
localhost : ok=83 changed=50 unreachable=0 failed=1 s kipped=48 rescued=0 ignored=0

Traceback (most recent call last):
File “install.py”, line 413, in
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/python2.7/subprocess.py”, line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘sit e.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frapp e’]’ returned non-zero exit status 2

To continue setup in develop mode

    sudo service supervisor stop
    sudo service nginx stop
    sudo service redis stop

Open a separate terminal console start develop mode

  sudo usermod -aG sudo frappe
  sudo passwd frappe
    (enter password for frappe user)
  su - frappe
  cd frappe-bench
  bench start

Go back to original terminal console

    su - frappe
    cd frappe-bench
    bench --site site1.local reinstall
       (enter mariadb password and new admin password)
    bench --site site1.local install-app erpnext

Go to the other terminal console with develop server running (bench start)
to stop develop mode

    Ctrl-c

Turn on production mode

      sudo bench setup production frappe

you may setup your production server using http protocol (you may also checkout https tutorials on lets encrypt if you wish)

On web browser>

         http://localhost
         or http://sitename.com

whichever is applicable.

(At this point this is single site erp. You may have multi-tenant setup if you want by performing the multi-tenant steps.)

1 Like

Hi, this issue should be fixed now.

Fix: fix(notification_log): skip enqueue_create_notification during new si… · frappe/frappe@f8da1df · GitHub

Can you try again and update us with the results?

I confirm that the --production option is okay.

But the --develop option does not start with bench start. It does not have Procfile
After

  bench setup procfile

bench start does not start.

It gives out error message of:

10:16:42 redis_socketio.1 | 26209:C 15 Nov 10:16:42.113 # Fatal error, can’t open config file ‘config/redis_socketio.conf’

   bench setup redis

also gives out error. So, to have develop mode, I guess you still have to go the

   bench setup production frappe 

route, and stop the supervisor, nginx, and redis services before bench start

I just now installed erpnext using the easy install script on a fresh servr and was successful in doing so.

Command Used:

python install.py --develop --user frappe --version 12

1 Like

Please try to start the server using bench start

Error installing version12 still exists

bench --site site1.local install-app erpnext

Tip Could not find app “erpnext”

%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20191116203011-erpnext

erpnext is present in the app directory

%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20191116203401app

1 Like

I had the same exact issue, but This only happened when I installed erpnext 12 on Virtual box.

I ran this command:

sudo apt install locales && sudo locale-gen en_US.UTF-8

and run installation again.

1 Like

This happens when you do sudo apt update and sudo apt upgrade before installation.
This creates installation problems. I do these commands only after installation.

2 Likes