ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Erpnext installation issue on 16.04 and 18.04



I have been trying over the last couple of days to get a clean install done to test V11 and V12 but have problems getting past the “bench init frappe-bench” command.

I have tried the script as well as most of the manual install instructions I can find, but all have the same result.

Running the script on a new 18.04 server has the following issues:-

Error: “msg”: “error getting key id from url:
Resolved with: wget -qO - “” | apt-key add -

Error: “msg”: “Connection failure: The read operation timed out”,
“url”: “
Resolved with: cd /tmp
mv wkhtmltox-0.12.3_linux-generic-amd64.tar.xz wkhtmltox.tar.xz

Stops at:
TASK [bench : python3 bench init for production] *************************************************************************************************
task path: /tmp/.bench/playbooks/roles/bench/tasks/main.yml:37
<> EXEC /bin/sh -c ‘echo ~root && sleep 0’
<> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /var/tmp/ansible-tmp-1564388112.916724-180630193921522” && echo ansible-tmp-1564388112.916724-180630193921522="echo /var/tmp/ansible-tmp-1564388112.916724-180630193921522" ) && sleep 0’
Using module file /usr/local/lib/python3.6/dist-packages/ansible/modules/commands/
<> PUT /root/.ansible/tmp/ansible-local-15786brkrkajg/tmp33svyfmo TO /var/tmp/ansible-tmp-1564388112.916724-180630193921522/
<> EXEC /bin/sh -c ‘setfacl -m u:corepos:r-x /var/tmp/ansible-tmp-1564388112.916724-180630193921522/ /var/tmp/ansible-tmp-1564388112.916724-180630193921522/ && sleep 0’
<> EXEC /bin/sh -c ‘sudo -H -S -n -u corepos /bin/sh -c ‘"’"‘echo BECOME-SUCCESS-yauvixjrrsjqyctxskciyijrwcdrruyi ; /usr/bin/python3 /var/tmp/ansible-tmp-1564388112.916724-180630193921522/’"’"’ && sleep 0’

Would appreciate any advice.


How to install erpnext version 12 on ubuntu 18.04

May we see your installation command?


I used your command:-
sudo -H python3 --production --site --user erpnext --mysql-root-password whatever_you_fancy --admin-password whatever_you_fancy --bench-name bench_you_would_like_to_call

substituted the relevant passwords and user etc. The user is sudo

This method solved the first error with the ubuntu key, but the wkhtmltox error and the stall on bench init still occur



The following may shed more light on the issue:

  • If possible, how did you get there before Easy Install
  • try adding check_certificate = off to /etc/wgetrc file
  • If you know the root password, please try it with root user, the user you are installing may need to be added to several other groups as well
  • Please do not define erpnext user before you run the Easy Install
  • In case of an error, you can always go to the installation file where the error occurs and adjust the relevant line according to your system if it is not harmful towards the installed system. There are some installation criteria that I find obsolete.


Just an update to close this thread. I have finally managed to find out what was causing the various issues preventing me from installing on a fresh 18.04.

After testing on Digital Ocean using US, India and Singapore data-centres, and successfully installing without any issue, it seems that the ISP in Singapore I am using for one of our connections either keeps stale records for DNS or the cache is too long, but after changing the server DNS Server entry to & I was easily able to install using the following:-

New 18.04.3 Server on Proxmox (8GB Ram, 4CPU) - as “root” user

apt update && apt -y upgrade
apt -y install python-minimal python3-minimal build-essential python-setuptools python3-setuptools
adduser [your-sudo-username]
usermod -aG sudo [your-sudo-username]
sudo python --production --user [your-sudo-username]

Hope this helps someone