Installation Error on Ubuntu Trusty


I’m trying to install the production version and have been coming the error below, please advice what needs to be done to fix. I am using the latest version of Python 2.7.6

NOTE: Am using following for the installation.

sudo bash --setup-production

Thanks & Regards
Said app frappe
Cloning into ‘frappe’… frappe
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this.
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this.
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/”, line 215, in main
status =, args)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/commands/”, line 310, in run
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/”, line 750, in build
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/”, line 370, in prepare_files
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/”, line 587, in _prepare_file
session=self.session, hashes=hashes)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/”, line 810, in unpack_url
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/”, line 649, in unpack_http_url
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/”, line 871, in _download_http_url
_download_url(resp, link, content_file, hashes)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/”, line 595, in _download_url
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/utils/”, line 46, in check_against_chunks
for chunk in chunks:
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/”, line 563, in written_chunks
for chunk in chunks:
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/”, line 552, in resp_read
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/”, line 353, in stream
data =, decode_content=decode_content)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/”, line 310, in read
data =
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/”, line 54, in read
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/”, line 275, in cache_response
self.serializer.dumps(request, response, body=body),
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/”, line 87, in dumps
installing frappe
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/”, line 40, in cli
File “/usr/local/lib/python2.7/dist-packages/click/”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/commands/”, line 17, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch, verbose=verbose)
File “/home/frappe/bench-repo/bench/”, line 62, in init
get_app(‘frappe’, frappe_path, branch=frappe_branch, bench=path, build_asset_files=False, verbose=verbose)
File “/home/frappe/bench-repo/bench/”, line 57, in get_app
install_app(app, bench=bench, verbose=verbose)
File “/home/frappe/bench-repo/bench/”, line 84, in install_app
File “/home/frappe/bench-repo/bench/”, line 99, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe

It seems some memory exception. What configuration you are using?


You’re correct, initially I was using 512mb/20gb I’ve changed it to 1gb/30gb and its installing fine. I understand you guys did specify 1gb minimum :slight_smile:


Can u please suggest how you changed your memory from 512 mb to 20 gb.
Please suggest me

It really depends where your server is

  1. If its on a VPS/Cloud you can simply increase/change to the requirement you need
  2. If you are using a VM than you can simply do that from the settings
  3. If you are using a dedicated server you’ll need to physically add more RAM and/or increase the paging configuration for the server.

Again depends where and how your server is configured and where its hosted

Thanks for the information.