Cant create App

Hello guys,

before I posted this topic, I checked in this forum for topics with the same problem. Found same problem, but no solutions.

My problem:

I’am trying to create an app on ERPNext, but evreytime i get the same report.

‘test_app’ created at /home/bench/frappe-bench/apps/test_app
INFO:bench.app:installing test_app
$ ./env/bin/pip install -q -U -e ./apps/test_app
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
You should consider upgrading via the ‘/home/bench/frappe-bench/env/bin/python3 -m pip install --upgrade pip’ command.
$ bench build --app test_app
yarn run v1.22.5
$ FRAPPE_ENV=production node rollup/build.js --app test_app
Production mode
:heavy_check_mark: Built js/moment-bundle.min.js
:heavy_check_mark: Built js/libs.min.js
Done in 0.85s.
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/opt/bench/.local/lib/python3.8/site-packages/bench/cli.py”, line 41, in cli
bench_command()
File “/opt/bench/.local/lib/python3.8/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/opt/bench/.local/lib/python3.8/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/opt/bench/.local/lib/python3.8/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/opt/bench/.local/lib/python3.8/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/opt/bench/.local/lib/python3.8/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/opt/bench/.local/lib/python3.8/site-packages/bench/commands/make.py”, line 69, in new_app
new_app(app_name)
File “/opt/bench/.local/lib/python3.8/site-packages/bench/app.py”, line 169, in new_app
install_app(app, bench_path=bench_path)
File “/opt/bench/.local/lib/python3.8/site-packages/bench/app.py”, line 190, in install_app
restart_supervisor_processes(bench_path=bench_path)
File “/opt/bench/.local/lib/python3.8/site-packages/bench/utils.py”, line 519, in restart_supervisor_processes
supervisor_status = subprocess.check_output([‘sudo’, ‘supervisorctl’, ‘status’], cwd=bench_path)
File “/usr/lib/python3.8/subprocess.py”, line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/lib/python3.8/subprocess.py”, line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘sudo’, ‘supervisorctl’, ‘status’]’ returned non-zero exit status 3.

what I’ve already tried after the report:

clear the Entry in the text file apps.txt wich is in \sites
deleting the directory for the new app (test_app)

gave the user write permissions for the folder “apps”

and then trying again with:

command inputs:
sudo bench --site [Sitename] remove-from-installed-apps test_app
bench new-app test_app

but same effect/issue

can someone help me?

best greets