in fresh ubuntu 14.04 erpnext ease install error
root@food:~# wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
–2015-07-07 03:47:27-- https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 23.235.39.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|23.235.39.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 12883 (13K) [text/plain]
Saving to: ‘setup_frappe.sh’
100%[====================================>] 12,883 --.-K/s in 0s
2015-07-07 03:47:27 (115 MB/s) - ‘setup_frappe.sh’ saved [12883/12883]
root@food:~# sudo bash setup_frappe.sh --setup-production
Installing for Ubuntu trusty amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time…
Installing wkhtmltopdf
- Stopping MariaDB database server mysqld [ OK ]
- Starting MariaDB database server mysqld [ OK ]
- Checking for corrupt, not cleanly closed and upgrade needing tables.
Adding frappe user
Installing frappe-bench
Already using interpreter /usr/bin/python
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Cloning into ‘frappe’…
/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Exception:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/basecommand.py”, line 223, in main
status = self.run(options, args)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/commands/install.py”, line 293, in run
wb.build(autobuilding=True)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/wheel.py”, line 705, 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 334, in prepare_files
functools.partial(self._prepare_file, finder))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 321, in _walk_req_to_install
more_reqs = handler(req_to_install)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py”, line 491, in _prepare_file
session=self.session)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 825, in unpack_url
session,
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 673, in unpack_http_url
from_path, content_type = _download_http_url(link, session, temp_dir)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 886, in _download_http_url
_download_url(resp, link, content_file)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 621, in _download_url
for chunk in progress_indicator(resp_read(4096), 4096):
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py”, line 586, 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 307, 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 243, 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 224, 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 81, in dumps
).encode(“utf8”),
MemoryError
installing frappe
Error: None
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 56, in cli
bench()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invoke
return callback(*args, **kwargs)
File “/home/frappe/bench-repo/bench/cli.py”, line 161, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch)
File “/home/frappe/bench-repo/bench/utils.py”, line 64, in init
get_app(‘frappe’, frappe_path, branch=frappe_branch, bench=path, build_asset_files=False)
File “/home/frappe/bench-repo/bench/app.py”, line 54, in get_app
install_app(app, bench=bench)
File “/home/frappe/bench-repo/bench/app.py”, line 78, in install_app
find_links=find_links))
File “/home/frappe/bench-repo/bench/utils.py”, line 79, in exec_cmd
subprocess.check_call(cmd, cwd=cwd, shell=True)
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe’ returned non-zero exit status 2
root@food:~#