The exact error below was experienced on GCP, Virtualbox VM and local machine fresh install using the easy install script:
TASK [bench : python3 bench init for develop] *********************************************************************
fatal: [localhost]: FAILED! => {âchangedâ: true, âcmdâ: [âbenchâ, âinitâ, â/home/alvinetstore/frappe-benchâ, ââfra
ppe-pathâ, âhttps://github.com/frappe/frappeâ, ââfrappe-branchâ, âdevelopâ, ââpythonâ, âpython3â], âdeltaâ: â0:01
:28.753495â, âendâ: â2018-07-30 10:48:14.570820â, âmsgâ: ânon-zero return codeâ, ârcâ: 1, âstartâ: â2018-07-30 10:4
6:45.817325â, âstderrâ: âINFO:bench.utils:virtualenv -q env -p /usr/bin/python3\nINFO:bench.utils:./env/bin/pip -q
install --upgrade pip==9.0.3\nINFO:bench.utils:./env/bin/pip -q install wheel\nINFO:bench.utils:./env/bin/pip -q in
stall six\nINFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
nINFO:bench.app:getting app frappe\nINFO:bench.utils:git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch develop -
-origin upstream\nCloning into âfrappeââŚ\nwarning: unable to access â/home/alvinetstore/.config/git/attributesâ:
Permission denied\nINFO:bench.app:installing frappe\nINFO:bench.utils:/home/alvinetstore/frappe-bench/env/bin/pip i
nstall -q -e /home/alvinetstore/frappe-bench/apps/frappe --no-cache-dir\nINFO:bench.app:getting app frappe_io\nINF
O:bench.utils:git clone GitHub - frappe/frappe_io: Website for Frappe --branch master --origin upstream\nCloning into âfrapp
e_ioââŚ\nwarning: unable to access â/home/alvinetstore/.config/git/attributesâ: Permission denied\nINFO:bench.app:
installing frappe_io\nINFO:bench.utils:/home/alvinetstore/frappe-bench/env/bin/pip install -q -e /home/alvinetstor
e/frappe-bench/apps/frappe_io --no-cache-dir\nINFO:bench.utils:yarn install\nerror An unexpected error occurred: "
EACCES: permission denied, scandir â/home/alvinetstore/.config/yarn/linkââ.\nTraceback (most recent call last):\n
File â/usr/local/bin/benchâ, line 11, in \n load_entry_point(âbenchâ, âconsole_scriptsâ, âbenchâ)()\n
File â/home/alvinetstore/.bench/bench/cli.pyâ, line 40, in cli\n bench_command()\n File â/usr/local/lib/py
thon2.7/dist-packages/click/core.pyâ, line 722, in call\n return self.main(*args, **kwargs)\n File â/usr/
local/lib/python2.7/dist-packages/click/core.pyâ, line 697, in main\n rv = self.invoke(ctx)\n File â/usr/loca
l/lib/python2.7/dist-packages/click/core.pyâ, line 1066, in invoke\n return _process_result(sub_ctx.command.inv
oke(sub_ctx))\n File â/usr/local/lib/python2.7/dist-packages/click/core.pyâ, line 895, in invoke\n return ctx
.invoke(self.callback, **ctx.params)\n File â/usr/local/lib/python2.7/dist-packages/click/core.pyâ, line 535, in
invoke\n return callback(*args, **kwargs)\n File â/home/alvinetstore/.bench/bench/commands/make.pyâ, line 30
, in init\n python \t\t = python)\n File â/home/alvinetstore/.bench/bench/utils.pyâ, line 83, in init\n up
date_node_packages(bench_path=path)\n File â/home/alvinetstore/.bench/bench/utils.pyâ, line 449, in update_node_packages\n update_yarn_packages(bench_path)\n File â/home/alvinetstore/.bench/bench/utils.pyâ, line 462, in u
pdate_yarn_packages\n exec_cmd(âyarn installâ, cwd=app_path)\n File â/home/alvinetstore/.bench/bench/utils.py
â, line 159, in exec_cmd\n raise CommandFailedError(cmd)\nbench.utils.CommandFailedError: yarn installâ, âstderr
_linesâ: [âINFO:bench.utils:virtualenv -q env -p /usr/bin/python3â, âINFO:bench.utils:./env/bin/pip -q install --up
grade pip==9.0.3â, âINFO:bench.utils:./env/bin/pip -q install wheelâ, âINFO:bench.utils:./env/bin/pip -q install si
xâ, âINFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkitâ, âINF
O:bench.app:getting app frappeâ, âINFO:bench.utils:git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --branch develop --o
rigin upstreamâ, âCloning into âfrappeââŚâ, âwarning: unable to access â/home/alvinetstore/.config/git/attributesâ
: Permission deniedâ, âINFO:bench.app:installing frappeâ, âINFO:bench.utils:/home/alvinetstore/frappe-bench/env/bin
/pip install -q -e /home/alvinetstore/frappe-bench/apps/frappe --no-cache-dirâ, âINFO:bench.app:getting app frappe
_ioâ, âINFO:bench.utils:git clone GitHub - frappe/frappe_io: Website for Frappe --branch master --origin upstreamâ, âCloning
into âfrappe_ioââŚâ, âwarning: unable to access â/home/alvinetstore/.config/git/attributesâ: Permission deniedâ,
âINFO:bench.app:installing frappe_ioâ, âINFO:bench.utils:/home/alvinetstore/frappe-bench/env/bin/pip install -q -e
/home/alvinetstore/frappe-bench/apps/frappe_io --no-cache-dirâ, âINFO:bench.utils:yarn installâ, âerror An unexpec
ted error occurred: âEACCES: permission denied, scandir â/home/alvinetstore/.config/yarn/linkââ.â, âTraceback (mo
st recent call last):â, " File â/usr/local/bin/benchâ, line 11, in â, " load_entry_point(âbenchâ, âco
nsole_scriptsâ, âbenchâ)()â, " File â/home/alvinetstore/.bench/bench/cli.pyâ, line 40, in cliâ, " bench_comma
nd()â, " File â/usr/local/lib/python2.7/dist-packages/click/core.pyâ, line 722, in callâ, " return self.m
ain(*args, **kwargs)â, " File â/usr/local/lib/python2.7/dist-packages/click/core.pyâ, line 697, in mainâ, " r
v = self.invoke(ctx)â, " File â/usr/local/lib/python2.7/dist-packages/click/core.pyâ, line 1066, in invokeâ, "
return _process_result(sub_ctx.command.invoke(sub_ctx))â, " File â/usr/local/lib/python2.7/dist-packages/click/
core.pyâ, line 895, in invokeâ, " return ctx.invoke(self.callback, **ctx.params)â, " File â/usr/local/lib/pyt
hon2.7/dist-packages/click/core.pyâ, line 535, in invokeâ, " return callback(*args, **kwargs)â, " File â/home
/alvinetstore/.bench/bench/commands/make.pyâ, line 30, in initâ, " python \t\t = python)â, " File â/home/alvi
netstore/.bench/bench/utils.pyâ, line 83, in initâ, " update_node_packages(bench_path=path)â, " File â/home/a
lvinetstore/.bench/bench/utils.pyâ, line 449, in update_node_packagesâ, " update_yarn_packages(bench_path)â, "
File â/home/alvinetstore/.bench/bench/utils.pyâ, line 462, in update_yarn_packagesâ, " exec_cmd(âyarn install
â, cwd=app_path)â, " File â/home/alvinetstore/.bench/bench/utils.pyâ, line 159, in exec_cmdâ, " raise Command
FailedError(cmd)", âbench.utils.CommandFailedError: yarn installâ], âstdoutâ: âwarning: unable to access â/home/alv
inetstore/.config/git/attributesâ: Permission denied\nyarn install v1.9.2\ninfo If you think this is a bug, please
open a bug report with the information provided in â/home/alvinetstore/frappe-bench/apps/frappe/yarn-error.logâ.
ninfo Visit yarn install | Yarn for documentation about this command.\n(âinstallingâ, uâfrappeâ
)\n(âinstallingâ, uâfrappe_ioâ)\nUpdating node packagesâŚâ, âstdout_linesâ: [âwarning: unable to access â/home/alvinetstore/.config/git/attributesâ: Permission deniedâ, âyarn install v1.9.2â, "info If you think this is a bug, ple
ase open a bug report with the information provided in "/home/alvinetstore/frappe-bench/apps/frappe/yarn-error.log
â.â, âinfo Visit yarn install | Yarn for documentation about this command.â, â(âinstallingâ, u
âfrappeâ)â, â(âinstallingâ, uâfrappe_ioâ)â, âUpdating node packagesâŚâ]}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry
PLAY RECAP ********************************************************************************************************
localhost : ok=44 changed=29 unreachable=0 failed=1
Traceback (most recent call last):
File âinstall.pyâ, line 420, in
install_bench(args)
File âinstall.pyâ, line 122, in install_bench
run_playbook(âsite.ymlâ, sudo=True, extra_vars=extra_vars)
File âinstall.pyâ, line 338, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, âplaybooksâ))
File â/usr/lib/python2.7/subprocess.pyâ, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command â[âansible-playbookâ, â-câ, âlocalâ, âsite.ymlâ, â-eâ, â@/tmp/extra_vars.jso
nâ, ââbecomeâ, ââbecome-user=alvinetstoreâ]â returned non-zero exit status 2
Using manual install on a fresh server on all these platforms installed successfully after several failed attempts due to prerequisites which had to be installed multiple times on some instances for the install to go past that stage. however, Bench start fails to start the instance as it gets stuck here in all cases:
Even the OVA downloaded fails to initialize as it gets stuck here as well. As some point i thought it was the hardware specs so for GCP i temporarily boosted my hardware to 4 CPU and allocated 8GB RAM to the instance but nothing changed.