I am trying to install ERPNext 7 with the easy install method.
running the script (–production)
I end up in an epic error message
TASK [init bench] **************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["bench", "init", "/home/frappe/frappe-bench", "--frappe-branch", "master"], "delta": "0:10:36.844215", "end": "2016-09-03 18:47:31.797017", "failed": true, "rc": 1, "start": "2016-09-03 18:36:54.952802", "stderr": "INFO:bench.app:getting app frappe\nCloning into 'frappe'...\n
INFO:bench.app:installing frappe\nException:\nTraceback (most recent call last):\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/basecommand.py\", line 215, in main\n status = self.run(options, args)\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/commands/install.py\", line 310, in run\n wb.build(autobuilding=True)\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/wheel.py\", line 750, in build\n self.requirement_set.prepare_files(self.finder)\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py\", line 370, in prepare_files\n ignore_dependencies=self.ignore_dependencies))\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py\", line 587, in _prepare_file\n session=self.session, hashes=hashes)\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py\", line 810, in unpack_url\n hashes=hashes\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py\", line 649, in unpack_http_url\n hashes)\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py\", line 871, in _download_http_url\n _download_url(resp, link, content_file, hashes)\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py\", line 595, in _download_url\n hashes.check_against_chunks(downloaded_chunks)\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/utils/hashes.py\", line 46, in check_against_chunks\n for chunk in chunks:\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py\", line 563, in written_chunks\n for chunk in chunks:\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/download.py\", line 552, in resp_read\n decode_content=False):\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py\", line 353, in stream\n data = self.read(amt=amt, decode_content=decode_content)\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py\", line 320, in read\n flush_decoder = True\n File \"/usr/lib/python2.7/contextlib.py\", line 35, in __exit__\n self.gen.throw(type, value, traceback)\n File \"/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py\", line 242, in _error_catcher\n raise ReadTimeoutError(self._pool, None, 'Read timed out.')\nReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.\nTraceback (most recent call last):\n File \"/usr/local/bin/bench\", line 11, in <module>\n load_entry_point('bench', 'console_scripts', 'bench')()\n File \"/home/frappe/.bench/bench/cli.py\", line 40, in cli\n bench_command()\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 716, in __call__\n return self.main(*args, **kwargs)\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 696, in main\n rv = self.invoke(ctx)\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 1060, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 889, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File \"/usr/local/lib/python2.7/dist-packages/click/core.py\", line 534, in invoke\n return callback(*args, **kwargs)\n File \"/home/frappe/.bench/bench/commands/make.py\", line 19, in init\n verbose=verbose, clone_from=clone_from)\n File \"/home/frappe/.bench/bench/utils.py\", line 56, in init\n get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)\n File \"/home/frappe/.bench/bench/app.py\", line 73, in get_app\n install_app(app=app_name, bench_path=bench_path, verbose=verbose)\n File \"/home/frappe/.bench/bench/app.py\", line 103, in install_app\n find_links=find_links))\n File \"/home/frappe/.bench/bench/utils.py\", line 127, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: /home/frappe/frappe-bench/env/bin/pip install -q -e /home/frappe/frappe-bench/apps/frappe", "stdout": "Already using interpreter /usr/bin/python\ninstalling frappe", "stdout_lines": ["Already using interpreter /usr/bin/python", "installing frappe"], "warnings": []}
to retry, use: --limit @production/install.retry
PLAY RECAP *********************************************************************
localhost : ok=31 changed=17 unreachable=0 failed=1
Traceback (most recent call last):
File "install.py", line 342, in <module>
install_bench(args)
File "install.py", line 111, in install_bench
run_playbook('production/install.yml', sudo=True, extra_vars=extra_vars)
File "install.py", line 292, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'production/install.yml', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2
searching the forum I find a suggestion here
does the output of my ./env/bin/pip install -e ./apps/frappe
speak to anyone? There is a Read Timeout error at the end, does that only mean it couldn’t finish (due to a connection problem maybe)? If so … what could I do, besides trying it again?
frappe@erpn7:~$ cd frappe-bench/
frappe@erpn7:~/frappe-bench$ ./env/bin/pip install -e ./apps/frappe
Obtaining file:///home/frappe/frappe-bench/apps/frappe
Collecting chardet (from frappe==7.0.30)
Using cached chardet-2.3.0.tar.gz
Collecting cssmin (from frappe==7.0.30)
Using cached cssmin-0.2.0.tar.gz
Collecting dropbox (from frappe==7.0.30)
Using cached dropbox-6.7.0-py2-none-any.whl
Collecting gunicorn (from frappe==7.0.30)
Using cached gunicorn-19.6.0-py2.py3-none-any.whl
Collecting httplib2 (from frappe==7.0.30)
Using cached httplib2-0.9.2.zip
Collecting jinja2 (from frappe==7.0.30)
Using cached Jinja2-2.8-py2.py3-none-any.whl
Collecting markdown2 (from frappe==7.0.30)
Using cached markdown2-2.3.1.zip
Collecting markupsafe (from frappe==7.0.30)
Using cached MarkupSafe-0.23.tar.gz
Collecting mysql-python==1.2.5 (from frappe==7.0.30)
Using cached MySQL-python-1.2.5.zip
Collecting python-geoip (from frappe==7.0.30)
Using cached python_geoip-1.2-py27-none-any.whl
Collecting python-geoip-geolite2 (from frappe==7.0.30)
Using cached python_geoip_geolite2-2015.0303-py2-none-any.whl
Collecting python-dateutil (from frappe==7.0.30)
Using cached python_dateutil-2.5.3-py2.py3-none-any.whl
Collecting pytz (from frappe==7.0.30)
Using cached pytz-2016.6.1-py2.py3-none-any.whl
Collecting six (from frappe==7.0.30)
Using cached six-1.10.0-py2.py3-none-any.whl
Collecting termcolor (from frappe==7.0.30)
Using cached termcolor-1.1.0.tar.gz
Collecting werkzeug (from frappe==7.0.30)
Using cached Werkzeug-0.11.11-py2.py3-none-any.whl
Collecting semantic_version (from frappe==7.0.30)
Using cached semantic_version-2.5.0.tar.gz
Collecting rauth>=0.6.2 (from frappe==7.0.30)
Using cached rauth-0.7.2.tar.gz
Collecting requests (from frappe==7.0.30)
Using cached requests-2.11.1-py2.py3-none-any.whl
Collecting redis (from frappe==7.0.30)
Using cached redis-2.10.5-py2.py3-none-any.whl
Collecting selenium (from frappe==7.0.30)
Using cached selenium-2.53.6-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): pdfkit in ./env/src/pdfkit (from frappe==7.0.30)
Collecting babel (from frappe==7.0.30)
Using cached Babel-2.3.4-py2.py3-none-any.whl
Collecting ipython (from frappe==7.0.30)
Using cached ipython-5.1.0-py2-none-any.whl
Collecting html2text (from frappe==7.0.30)
Using cached html2text-2016.5.29.tar.gz
Collecting email_reply_parser (from frappe==7.0.30)
Using cached email_reply_parser-0.5.9.tar.gz
Collecting click (from frappe==7.0.30)
Using cached click-6.6.tar.gz
Collecting num2words (from frappe==7.0.30)
Using cached num2words-0.5.3.tar.gz
Collecting watchdog==0.8.0 (from frappe==7.0.30)
Downloading watchdog-0.8.0.tar.gz (152kB)
100% |████████████████████████████████| 153kB 1.2MB/s
Collecting bleach (from frappe==7.0.30)
Downloading bleach-1.4.3-py2-none-any.whl
Collecting bleach-whitelist (from frappe==7.0.30)
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/bleach-whitelist/
Downloading bleach-whitelist-0.0.7.tar.gz
Collecting Pillow (from frappe==7.0.30)
Downloading Pillow-3.3.1-cp27-cp27mu-manylinux1_x86_64.whl (5.6MB)
100% |████████████████████████████████| 5.6MB 44kB/s
Collecting beautifulsoup4 (from frappe==7.0.30)
Downloading beautifulsoup4-4.5.1-py2-none-any.whl (83kB)
100% |████████████████████████████████| 92kB 37kB/s
Collecting rq (from frappe==7.0.30)
Downloading rq-0.6.0-py2.py3-none-any.whl (48kB)
100% |████████████████████████████████| 51kB 38kB/s
Collecting schedule (from frappe==7.0.30)
Downloading schedule-0.3.2.tar.gz
Collecting cryptography (from frappe==7.0.30)
Downloading cryptography-1.5.tar.gz (400kB)
100% |████████████████████████████████| 409kB 20kB/s
Collecting zxcvbn (from frappe==7.0.30)
Downloading zxcvbn-1.0.tar.gz (354kB)
100% |████████████████████████████████| 358kB 44kB/s
Collecting psutil (from frappe==7.0.30)
Downloading psutil-4.3.1.tar.gz (315kB)
100% |████████████████████████████████| 317kB 27kB/s
Collecting urllib3 (from dropbox->frappe==7.0.30)
Downloading urllib3-1.16-py2.py3-none-any.whl (98kB)
100% |████████████████████████████████| 102kB 18kB/s
Collecting typing>=3.5.2 (from dropbox->frappe==7.0.30)
Downloading typing-3.5.2.2.tar.gz (51kB)
100% |████████████████████████████████| 51kB 20kB/s
Collecting pygments (from ipython->frappe==7.0.30)
Downloading Pygments-2.1.3-py2.py3-none-any.whl (755kB)
100% |████████████████████████████████| 757kB 38kB/s
Requirement already satisfied (use --upgrade to upgrade): setuptools>=18.5 in ./env/lib/python2.7/site-packages (from ipython->frappe==7.0.30)
Collecting backports.shutil-get-terminal-size; python_version == "2.7" (from ipython->frappe==7.0.30)
Downloading backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Collecting pickleshare (from ipython->frappe==7.0.30)
Downloading pickleshare-0.7.4-py2.py3-none-any.whl
Collecting decorator (from ipython->frappe==7.0.30)
Downloading decorator-4.0.10-py2.py3-none-any.whl
Collecting traitlets>=4.2 (from ipython->frappe==7.0.30)
Downloading traitlets-4.2.2-py2.py3-none-any.whl (68kB)
100% |████████████████████████████████| 71kB 4.7kB/s
Collecting simplegeneric>0.8 (from ipython->frappe==7.0.30)
Downloading simplegeneric-0.8.1.zip
Collecting pexpect; sys_platform != "win32" (from ipython->frappe==7.0.30)
Downloading pexpect-4.2.1-py2.py3-none-any.whl (55kB)
100% |████████████████████████████████| 61kB 8.6kB/s
Collecting pathlib2; python_version == "2.7" or python_version == "3.3" (from ipython->frappe==7.0.30)
Downloading pathlib2-2.1.0-py2.py3-none-any.whl
Collecting prompt-toolkit<2.0.0,>=1.0.3 (from ipython->frappe==7.0.30)
Downloading prompt_toolkit-1.0.7-py2-none-any.whl (237kB)
100% |████████████████████████████████| 245kB 64kB/s
Collecting PyYAML>=3.10 (from watchdog==0.8.0->frappe==7.0.30)
Downloading PyYAML-3.12.tar.gz (253kB)
100% |████████████████████████████████| 256kB 28kB/s
Collecting argh>=0.24.1 (from watchdog==0.8.0->frappe==7.0.30)
Downloading argh-0.26.2-py2.py3-none-any.whl
Collecting pathtools>=0.1.1 (from watchdog==0.8.0->frappe==7.0.30)
Downloading pathtools-0.1.2.tar.gz
Collecting html5lib<0.99999999,>=0.999 (from bleach->frappe==7.0.30)
Downloading html5lib-0.9999999.tar.gz (889kB)
67% |█████████████████████▊ | 604kB 20kB/s eta 0:00:15Exception:
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/utils/ui.py", line 139, in iter
for x in it:
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 320, in read
flush_decoder = True
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 242, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.