Getting an error when trying to install frappe 15 on ubuntu 22.04

I’m following this tutorial on how to install frape/erpnext on the Ubuntu 22.04 server.

I followed the steps without errors until this bench initialization bench init --frappe-branch version-15 frappe-bench , where I’m getting this error:

frappe@ubuntu-s-1vcpu-512mb-10gb-sfo3-01:~$ bench init --frappe-branch version-15 frappe-bench
Setting Up Environment
$ python3 -m venv env
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone --branch version-15 --depth 1 --origin upstream
Cloning into 'frappe'...
remote: Enumerating objects: 3258, done.
remote: Counting objects: 100% (3258/3258), done.
remote: Compressing objects: 100% (2927/2927), done.
remote: Total 3258 (delta 407), reused 1490 (delta 217), pack-reused 0
Receiving objects: 100% (3258/3258), 15.39 MiB | 12.42 MiB/s, done.
Resolving deltas: 100% (407/407), done.
Installing frappe
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe 
subprocess.CalledProcessError: Command '/home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe ' died with <Signals.SIGKILL: 9>.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/bench/commands/", line 75, in init
  File "/usr/local/lib/python3.10/dist-packages/bench/utils/", line 105, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/bench/utils/", line 87, in init
  File "/usr/local/lib/python3.10/dist-packages/bench/", line 772, in get_app
    app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
  File "/usr/local/lib/python3.10/dist-packages/bench/utils/", line 126, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/bench/", line 255, in install
  File "/usr/local/lib/python3.10/dist-packages/bench/", line 904, in install_app
  File "/usr/local/lib/python3.10/dist-packages/bench/", line 48, in run
    return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
  File "/usr/local/lib/python3.10/dist-packages/bench/utils/", line 169, in exec_cmd
    raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe 

ERROR: There was a problem while creating frappe-bench

The bench version is 5.22.3, ubuntu version Ubuntu 22.04.4 LTS.

Please can someone help me to fix this problem?


May we know the hosting environment resources - cpu/ram/disk?

cpu: 1 virtual cpu
ram: 512mb
disk: 10gb

Karani’s tutorial say you need 4GB RAM and 40GB Hard Disk. Try upgrading to meet the hardware requirements and you may have better experience.

1 Like