Hi all,
There seem to be some common installation problems with Frappe Insights causing those of us who want to evaluate it, to fall at the first hurdle.
…which is not a slight on the product since the product is basically in beta still. But please understand that many of us here in the community cannot yet commit to going onto Frappe Cloud and without a solid BI/analytics tool we cannot fully sell the entire Frappe solution.
There is a useful thread on the Telegram group (Telegram: Contact @frappeinsights) but it’s a bit repetitious and some of the answers are best stored here.
Would it be ok if we begin a Frappe Insights thread herewith and possibly even a tag?
In the meantime I will begin with the installation problem I have had so far:
bench get-app https://github.com/frappe/insights
.
.
.
eventually does a bench build which runs for a while and then fails on
$ supervisorctl restart frappe:
error: <class ‘PermissionError’>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560
ERROR:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 127, in cli
bench_command()
File “/usr/lib/python3/dist-packages/click/core.py”, line 1128, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1053, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 754, in invoke
return __callback(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/commands/make.py”, line 159, in get_app
get_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 444, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 242, in install
install_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 589, in install_app
bench.reload()
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 151, in reload
restart_supervisor_processes(bench_path=self.name, web_workers=web)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py”, line 304, in restart_supervisor_processes
bench.run(f"{sudo}supervisorctl restart {group}")
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 155, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
From the telegram thread i discerned this might be something to do with how bench was installed and there was a comment to reinstall bench. I wanted to check whether this was indeed the case before committing to that. Or whether there is a cleverer way out…
TIA