Installation Error on Ubuntu Trusty

Hello,

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.

wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
sudo bash setup_frappe.sh --setup-production

Thanks & Regards
Said

INFO:bench.app:getting app frappe
Cloning into ‘frappe’…
INFO:bench.app:installing frappe
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: 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/ssl.py:122: 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.
Exception:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/commands/install.py”, line 310, in run
wb.build(autobuilding=True)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/wheel.py”, line 750, in build
self.requirement_set.prepare_files(self.finder)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 370, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 587, in _prepare_file
session=self.session, hashes=hashes)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 810, in unpack_url
hashes=hashes
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 649, in unpack_http_url
hashes)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, 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/download.py”, line 595, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/utils/hashes.py”, line 46, in check_against_chunks
for chunk in chunks:
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 563, in written_chunks
for chunk in chunks:
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 552, in resp_read
decode_content=False):
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py”, line 353, in stream
data = self.read(amt=amt, decode_content=decode_content)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py”, line 310, in read
data = self._fp.read(amt)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py”, line 54, in read
self.__callback(self.__buf.getvalue())
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/controller.py”, 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/serialize.py”, line 87, in dumps
).encode(“utf8”),
MemoryError
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/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/commands/make.py”, 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/utils.py”, 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/app.py”, line 57, in get_app
install_app(app, bench=bench, verbose=verbose)
File “/home/frappe/bench-repo/bench/app.py”, line 84, in install_app
find_links=find_links))
File “/home/frappe/bench-repo/bench/utils.py”, 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?

@saurabh6790

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:

Thanks

Hello,
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.
saidsl