Installation fail on Ubuntu 14.04 x86_64 Minimal


I have try to install erpnext on Ubuntu 14.04 x86_64 Minimal (on openvz vps)

Before installation
I have run
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install npm

then follow the easy install command on

Once execute the command I have found this error

    local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.92', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/", line 60, in cli
  File "/usr/local/lib/python2.7/dist-packages/click/", line 700, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 680, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/", line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/", line 508, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/bench-repo/bench/", line 165, in init
    no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch)
  File "/home/frappe/bench-repo/bench/", line 75, in init
  File "/home/frappe/bench-repo/bench/", line 197, in setup_backups
    logfile=os.path.join(get_bench_dir(bench=bench), 'logs', 'backup.log')))
  File "/home/frappe/bench-repo/bench/", line 200, in add_to_crontab
    current_crontab = read_crontab()
  File "/home/frappe/bench-repo/bench/", line 211, in read_crontab
    s = subprocess.Popen(["crontab", "-l"], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
  File "/usr/lib/python2.7/", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Please advice


@hostatom How much RAM does your VM have and do you have any swap partition created?

1 Like

The error seems to not be because of low memory.

Can you post the output of which crontab?

1 Like

Thank you very much for your help

I have run on 2GB Ram VPS
but the problem occur because of crontab

There is no crontab install in Ubuntu 14.04 x86_64 Minimal from openvz template

root@erp:~# which crontab
root@erp:~# cd /
root@erp:/# which crontab

root@erp:/# ps -ef | grep cron
root      2873  1751  0 20:56 pts/1    00:00:00 grep --color=auto cron

After I have install the crontab

sudo apt-get install cron

And hit the easy installation command again everything work great now

Thank you very very much